Try something like

InOut exchange =
getContext().getDeliveryChannel().createExchangeFactory().createInOutExchange();
DocumentFragment epr =
URIResolver.createWSAEPR("http://localhost:8080/ServiceMixTest/MockServlet?KEY1=VALUE1";);
ServiceEndpoint se = getContext().resolveEndpointReference(epr);
exchange.setEndpoint(se);
NormalizedMessage msg = exchange.createMessage();
msg.setContent(new StringSource("<value>TEST</value>"));
exchange.setInMessage(msg);
getContext().getDeliveryChannel().send(exchange);


You will need an installed servicemix-http component for this to work.

Cheers,
Guillaume Nodet

On 6/19/06, apinke <[EMAIL PROTECTED]> wrote:


Hi Guillaume ,

I too have this requirement but I am not able to understand how to apply
whats mentioned on
http://servicemix.goopen.org/site/uris.html.

I am currently creating messages like this :
   InOut inout = createInOutExchange(new QName(Constants.MY_NAMESPACE,
Constants.HSERVICE), null, null);
        inout.setProperty(Constants.PROPERTY_CORRELATIONID, id);

inout.setProperty("locationURI","
http://localhost:8080/ServiceMixTest/MockServlet?KEY1=VALUE1";);
//this did not work

        NormalizedMessage msg = inout.createMessage();
        msg.setContent(new StringSource("<value>TEST</value>"));
        inout.setInMessage(msg);
     send(inout);

I was expecting that I could change the locationURI of the InOut but that
is
not working.

Can you explain how I can change the URL that I am setting in the
servicemix.xml ?

Thanks
Pat
--
View this message in context:
http://www.nabble.com/passing-key-value-pairs-for-posting-into-HttpInvoker-t1786326.html#a4936024
Sent from the ServiceMix - User forum at Nabble.com.


Reply via email to