Announcement Announcement Module
Collapse
No announcement yet.
How can I get the full Soap message inside of AbstractDomPayloadEndpoint ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can I get the full Soap message inside of AbstractDomPayloadEndpoint ?

    I am new to this Spring-WS, so please be nice.

    I have my own endpoint implementation:

    public class MyEndpoint extends AbstractDomPayloadEndpoint
    {

    }

    Is there anyway I can get the whole Soap request message like:

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:schema="http://www.mycompany.com/service">
    <soap:Body>
    .....
    </soap:Body>
    </soap:Envelope>

    Thanks
    Bobby

  • #2
    got it...

    SOAPMessage message = MessageFactory.newInstance().createMessage();
    SOAPPart sp = message.getSOAPPart();
    Element imported = (Element) sp.importNode(requestElement, true);
    SOAPBody sb = message.getSOAPBody();
    sb.appendChild(imported);
    message.writeTo(System.out);

    Comment

    Working...
    X