Hi ,

Current CXF endpoint with PAYLOAD data format need to specify the SEI class, since the ServerFactoryBean can't create the service model without the SEI class.

Willem

david_geary wrote:
Im trying to use camel as a dynamic mechanism to transform xml and use this
as message to send to external webservices (not cxf). Ie use camel as a glue
between our system and other webservices where the configuration is done at
deploy time in xml. Is this possible?

As a test im trying to code an endpoint using camel cxf to consume a non cxf
web service by sending the xml request.
My code is:

CxfEndpoint endpoint = new CxfEndpoint(
"http://host:8080/active-bpel/services/clientService";, "http://host:8080/active-bpel/services/clientService";, new CxfComponent());
                
endpoint.setWsdlURL("http://host:8080/active-bpel/services/clientService?wsdl";);
endpoint.setServiceName("{http://eclipse.org/bpel/sample}clientService";);
endpoint.setDataFormat("PAYLOAD");
                
URL request = this.getClass().getResource("RequestBody.xml");
File requestFile = new File(request.toURI());
FileInputStream inputStream = new FileInputStream(requestFile); XMLStreamReader xmlReader = StaxUtils.createXMLStreamReader(inputStream); DOMSource source = new DOMSource(StaxUtils.read(xmlReader));
template.sendBody(endpoint, source);

But this seems to generate a null pointer when attempting to access the
'service class' which i dont have. Also I'm using the same thing for URI and
address which doesnt seem right. As anyone a code example of getting this to
work?

Thanks
Dave



Reply via email to