Hi guys This story is like this, we are using CXF and I'm not very good with it, however I've been given a task to create a WS endpoint for a third party who do not have WSDL but will give me a specific SAOP request.
The request looks like this : <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <getEtickets> <credentials> <userName>aaa</userName> <password>bbb</password> </credentials> <external>TESTPIC</external> </getEtickets> </SOAP-ENV:Body> </SOAP-ENV:Envelope> How do I create a SOAP endpoint that can take this request and have the XML elements wrapped in the Body as a String parameter to the implement method ? so far no success with the attempt below : /// @WebService @SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL, parameterStyle = ParameterStyle.BARE) public interface ClientTicketCreditService { public String getClientTicketCredit(String bodyElementContent); } //// @WebService(endpointInterface = "com.example") @SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL, parameterStyle = ParameterStyle.BARE) public class ClientTicketCreditServiceImpl implements ClientTicketCreditService { public String getClientTicketCredit(String bodyElementContent) { // expecting the bodyElementContent to be the XML and so I can do my own parsing here return response; } } //// The response I've got testing with the request : <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <soap:Fault> <faultcode>soap:Client</faultcode> <faultstring>Message part getEtickets was not recognized. (Does it exist in service WSDL?)</faultstring> </soap:Fault> </soap:Body> </soap:Envelope> -- View this message in context: http://cxf.547215.n5.nabble.com/Writting-a-SPAO-endpoint-for-a-given-request-tp4389593p4389593.html Sent from the cxf-user mailing list archive at Nabble.com.
