Class SOAPBinding

  • Direct Known Subclasses:
    SOAPBindingImpl

    public abstract class SOAPBinding
    extends Object
    Models soap:binding in a WSDL document or a SOAPBinding annotation. This can be the return of JavaMethod.getBinding().
    Author:
    Vivek Pandey
    • Field Detail

      • use

        protected jakarta.jws.soap.SOAPBinding.Use use
      • style

        protected jakarta.jws.soap.SOAPBinding.Style style
      • soapAction

        protected String soapAction
    • Constructor Detail

      • SOAPBinding

        public SOAPBinding()
    • Method Detail

      • getUse

        public jakarta.jws.soap.SOAPBinding.Use getUse()
        Get SOAPBinding.Use such as literal or encoded.
      • getStyle

        public jakarta.jws.soap.SOAPBinding.Style getStyle()
        Get SOAPBinding.Style - such as document or rpc.
      • isDocLit

        public boolean isDocLit()
        Returns true if its document/literal
      • isRpcLit

        public boolean isRpcLit()
        Returns true if this is a rpc/literal binding
      • getSOAPAction

        public String getSOAPAction()
        Value of wsdl:binding/wsdl:operation/soap:operation@soapAction attribute or WebMethod.action() annotation.
         For example:
         <wsdl:binding name="HelloBinding" type="tns:Hello">
           <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
           <wsdl:operation name="echoData">
               <soap12:operation soapAction=""/>
         ...
         
        It's always non-null. soap message serializer needs to generated SOAPAction HTTP header with the return of this method enclosed in quotes("").
        See Also:
        Packet.soapAction