Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
@WebServiceProvider()
@ServiceMode(value = Service.Mode.PAYLOAD)
public class RestSourcePayloadProvider implements Provider<DOMSource> {
public DOMSource invoke(DOMSource request) {
if (httpMethod.equalsIgnoreCase("POST")) {
if (path.equals("/cxf/"+PATH+"/contract/search")) {
System.out.println("---Invoking searchContracts---");
return searchContracts(request);
}
}
}
}
<?xml version="1.0" encoding="utf-8" ?>
<Customer>
<name>John</name>
<id>123456</id>
</Customer>
<Customer>
<name>John</name>
<id>123456</id>
</Customer>
Hi
Do you call the rest webservice in browser or in Talend Studio with ESB component? If I call a rest webservice with tRestClient or tRest component, I can see the XML declaration in the response.
Shong