Hi,

I have develop a xmlrpc component example but i am unable to get response

Main Class:
 XmlRpcComponent        xrpc    =       new XmlRpcComponent();
 xrpc.setCamelContext(camelContext);
                         
 camelContext.addRoutes(new XmlRpcRouteBuilder());
 camelContext.addComponent("xrpc",xrpc);
 camelContext.start();

RouteBuilder:

from("timer://foo?delay=0&period=25000")
.process(new MyProcessor())
.to("xmlrpc:http://x.x.x.x:110/Air?synchronous=true&basicEncoding=iso-8859-1&basicUserName=xx";
+ "&basicPassword=xx&encoding=UTF-8&userAgent=xx")
.process(new ResultProcessor())
.end();

MyProcess:

public void process(Exchange exchange) throws Exception {
                
                System.out.println("In my processor");
        
                Map<String, Object> params = new HashMap<String, Object>();
                params.put("user", "xxx");
                
        exchange.getIn().setHeader(XmlRpcConstants.METHOD_NAME,
"GetDetails");
        exchange.getIn().setBody( new Object [] { params } );
                
        }

ResponseProcessor:

public void process(Exchange exchange) throws Exception {
                System.out.println("in result");
                System.out.println("in result="+exchange.getIn().getBody());
                System.out.println("in out 
result="+exchange.getOut().getBody());
        }

I have enable ethereal trace and this application send and saw successful
request and response from xmlrpc server but i am not able to capture it,
infact ResponseProcessor is not called.

Regards



--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-xmlrpc-response-not-showing-tp5748275.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to