Hi to all,
This is my first time Posting!
In my lack of experience I'm trying to use a simple route that uses two
endpoints: the first one is a proxy the second one is the actual remote web
service.
What i'm trying to do is to add a processor in the middle of the endpoints,
to access de SOAP parameters
To do this im setting the value wsLocal.setDataFormat(DataFormat.POJO);
And I receive this message:
Message part {http://www.webservicex.net/}GetGeoIP was not recognized.
(Does it exist in service WSDL?)
The local CxfEndpoint is this:
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.GetGeoIP.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.POJO);
wsLocal.setSynchronous(true);
And the Remote CxfEndpoint is this:
CxfEndpoint wsRemote = new CxfEndpoint();
wsRemote.setAddress("http://www.webservicex.net/geoipservice.asmx");
wsRemote.setPortName(new QName("http://www.webservicex.net/",
"GeoIPServiceSoap"));
wsRemote.setServiceClass(net.webservicex.GetGeoIP.class
.getCanonicalName());
wsRemote.setServiceName(new QName("http://www.webservicex.net/",
"GeoIPService"));
wsRemote.setCamelContext(getContext());
wsRemote.setDataFormat(DataFormat.POJO);
wsRemote.setSynchronous(true);
The route is this one:
from(wsLocal).to(wsRemote);
When I run this route I get this message:
Message part {http://www.webservicex.net/}GetGeoIP was not recognized.
(Does it exist in service WSDL?)
I don't quite understand what is happening!
this is my pom File:
pom.xml <http://camel.465427.n5.nabble.com/file/n5741630/pom.xml>
The route is pretty simple but It doesn't work.
Thanks for your help!
--
View this message in context:
http://camel.465427.n5.nabble.com/Working-with-POJO-in-with-a-cxc-endpoint-tp5741630.html
Sent from the Camel - Users mailing list archive at Nabble.com.