Class Soap.SoapMessageBuilder

  • Enclosing class:
    Soap

    public static class Soap.SoapMessageBuilder
    extends Object
    • Method Detail

      • addHeader

        public javax.xml.soap.SOAPHeaderElement addHeader​(String name,
                                                          String prefix)
      • createName

        public javax.xml.soap.Name createName​(String name)
      • getBytes

        public byte[] getBytes()
      • build

        public javax.ws.rs.core.Response build()
      • buildHttpPost

        public org.apache.http.client.methods.HttpPost buildHttpPost​(URI uri)
        Build method for testing, generates an appache httpcomponents HttpPost
        Parameters:
        uri - the URI to which to POST the soap message
        Returns:
        an HttpPost containing the SOAP message
      • call

        public javax.xml.soap.SOAPMessage call​(String url)
                                        throws javax.xml.soap.SOAPException
        Performs a synchronous call, sending the current message to the given url
        Parameters:
        url - a SOAP endpoint url
        Returns:
        the SOAPMessage returned by the contacted SOAP server
        Throws:
        javax.xml.soap.SOAPException - Raised if there's a problem performing the SOAP call
      • getMessage

        public javax.xml.soap.SOAPMessage getMessage()