Hi

I suggest to re-read the eip page and the xml examples
http://camel.apache.org/recipient-list.html

Your syntax is wrong, you cannot have <to> inside <recipientList>. It
should be an expression such as any of the languages
http://camel.apache.org/languages

For example the built-in simple language.

 <recipientList>
  
<simple>http://10.210.7.193:8880/startsurvey/?AppCode=${header.AppCode}&amp;ToNumber=${header.ToNumber}&amp;ShortMessage=${header.ticketid},${header.tickettype}
  </simple>
</recipientList>


On Tue, Oct 30, 2012 at 1:27 PM, atiato <[email protected]> wrote:
> Dears,
>
> I want to send the following with http endpoint using receiptlist as below :
>
> <recipientList>
> <to
> uri="http://10.210.7.193:8880/startsurvey/?AppCode=${header.AppCode}&amp;ToNumber=${header.ToNumber}&amp;ShortMessage=${header.ticketid},${header.tickettype}"/>
> </recipientList>
>
> appreciate helping me sending the below request :
>
> http://10.210.7.193:8880/startsurvey/?AppCode=remedy&ToNumber=2348028912317&ShortMessage=ANG1,1
>
>
>
> i.e support comma seperated values , when i remove the parameter with comma
> it works , I'm using receiptlist to support dynamic URI (endpoints) .
>
>
> When I send the request I'm getting the below error where uri=100 is the
> header.tickettype ,
>
>
> org.apache.camel.NoSuchEndpointException: No endpoint could be found for:
> 100, please check your classpath contains the needed Camel component jar.
>         at
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)[camel-core-2.8.0.jar:2.8.0]
>         at
> org.apache.camel.util.ExchangeHelper.resolveEndpoint(ExchangeHelper.java:82)[camel-core-2.8.0.jar:2.8.0]
>         at
> org.apache.camel.processor.RecipientListProcessor.resolveEndpoint(RecipientListProcessor.java:218)[camel-core-2.8.0.jar:2.8.0]
>         at
> org.apache.camel.processor.RecipientListProcessor.createProcessorExchangePairs(RecipientListProcessor.java:158)[camel-core-2.8.0.jar:2.8.0]
>         at
> org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:207)[camel-core-2.8.0.jar:2.8.0]
>         at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[camel-core-2.8.0.jar:2.8.0]
>         at
> org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList.java:144)[camel-core-2.8.0.jar:2.8.0]
>         at
> org.apache.camel.processor.RecipientList.process(RecipientList.java:105)[camel-core-2.8.0.jar:2.8.0]
>         at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[camel-core-2.8.0.jar:2.8.0]
>         at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[camel-core-2.8.0.jar:2.8.0]
>         at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[camel-core-2.8.0.jar:2.8.0]
>         at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[camel-core-2.8.0.jar:2.8.0]
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Http-query-string-comma-seperated-values-tp5721773.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to