THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The following route supports marshalling the request and unmarshalling a response or fault.
Code Block |
---|
String WS_URI = "cxf://http://myserver/customerservice?serviceClass=com.example.customerservice&dataFormat=MESSAGE"; SoapJaxbDataFormat soapDF = new SoapJaxbDataFormat("com.example.customerservice", new ServiceInterfaceStrategy(CustomerService.class)); from("direct:customerServiceClient") .onException(Exception.class) .handled(true) .unmarshal(soapDF) .end() .marshal(soapDF) .to("http://myserver/customerservice"WS_URI) .unmarshal(soapDF); |
The below snippet creates a proxy for the service interface and makes a SOAP call to the above route.
...