Ok, now I have this two endpoints: CxfEndpoint wsLocal = new CxfEndpoint(); wsLocal.setAddress("http://localhost:9090/camel-ws/GeoIPService"); wsLocal.setPortName(new QName("http://www.webservicex.net/", "GeoIPServiceSoap")); wsLocal.setServiceClass(net.webservicex.GeoIP.class.getCanonicalName()); wsLocal.setServiceName(new QName("http://www.webservicex.net/", "GeoIPService")); wsLocal.setWsdlURL("http://www.webservicex.net/geoipservice.asmx?WSDL"); wsLocal.setCamelContext(getContext()); wsLocal.setDataFormat(DataFormat.RAW); wsLocal.setSynchronous(true);
CxfEndpoint wsRemoto = new CxfEndpoint(); wsRemoto.setCamelContext(this.getContext()); wsRemoto.setAddress("http://www.webservicex.net/geoipservice.asmx"); wsRemoto.setWsdlURL("http://www.webservicex.net/geoipservice.asmx?WSDL"); wsRemoto.setServiceName(new QName("http://www.webservicex.net/", "GeoIPService")); wsRemoto.setPortName(new QName("http://www.webservicex.net/", "GeoIPServiceSoap")); wsRemoto.setDataFormat(DataFormat.RAW); Whit this route: from(wsLocal).to(wsRemoto) And they work! What I'm looking for is to get the response from "wsRemoto" to be converted to a POJO or mapped to a POJO, that already exist because of the wsdl2java plugging on my pom.xml In this case "GeoIP.java" I want to achieve this using a Processor(); But I haven't found a way to do this, I tried to do it like this: GeoIP ip = exchange.getIn.getBody(GeoIP.class); whit this I could do: ip.getCountryName(); ip.getIpAddress(); etc. Any Idea! Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Working-with-POJO-in-with-a-cxc-endpoint-tp5741630p5741689.html Sent from the Camel - Users mailing list archive at Nabble.com.