You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Bernard Ligny <be...@gmail.com> on 2016/02/03 17:49:19 UTC

XmlRpc marshalling issue

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.

Re: XmlRpc marshalling issue

Posted by Bernard Ligny <be...@gmail.com>.
Apparently, the issue has been recently fixed in v2.18.

See:
https://issues.apache.org/jira/browse/CAMEL-10223




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