I am trying to issue a (very) basic request using:

   @Override
    public void configure() {
                
                XmlRpcDataFormat xmlrpcRequest = new XmlRpcDataFormat();
                xmlrpcRequest.setRequest(true); 
                ..
                
                from("direct:processMsg")
                        .id("process-route2"
                        .marshal(xmlrpcRequest)
                        .log(INFO, "About to post: ${body}")
                
.to("xmlrpc:http://"+backendHost+backendServiceUrl+"?synchronous=true&defaultMethodName=test";);
    }


When a see the log, it seems that the original body (an "Hello world"
string) is marshalled as a *response* although the setRequest(true) on the
XmlRpcDataFormat...

17:35:27,235 INFO  [process-route2] (Camel (esb) thread #1 - About to post:
<methodResponse><params><value>Hello world</value></params></methodResponse>


What am I doing wrong ??

Bernard.





--
View this message in context: 
http://camel.465427.n5.nabble.com/XmlRpc-marshalling-issue-tp5777193.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to