Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is there an example that shows how to make a SOAP call in a Route with cCXF component with PAYLOAD mode selected?
The only requirement is to have some text in your message body that fits the WSDL for your service/operation.
What is your issue ?
So I need to provide in the body to the cCXF component the body of the SOAP envelope?
Where do I put all the elements that are in my SOAP body element
<S:Body xmlns:ns2=...>
...
</S:Body>
When I select RAW in the component and send entire SOAP to the component I get back 0 from the service.
When I tried with only SOAP body and select PAYLOAD mode I get an error.
How do I add all the XML elements from the SOAP?
You will have to be more precise if you want some help : what error do you get ?
I confirm sending the soap body in exchange body and letting the cxf component do the rest works fine.
this is what I send to the exchange body:
<S:Body xmlns:ns2="....">
<ns2:upload>
<arg0>
<credentials>
<password>...</password>
<username>...</username>
</credentials>
<document>
<content>j</content>
<name>1.xml</name>
</document>
<documentType>12</documentType>
<formatType>19</formatType>
</arg0>
</ns2:upload>
</S:Body>
and the error I get
com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "S"
at [row,col {unknown-source}]: [1,61]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:614)
...
the route for testing