Class WSDLExtensionUtils

java.lang.Object
org.apache.axis2.jaxws.util.WSDLExtensionUtils

public class WSDLExtensionUtils extends Object
This utility class stores methods that can be used to fetch extension elements from wsdl and will be used from RespectBindingConfigurator on Client and Server.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    static void
    search(javax.wsdl.WSDLElement element, Set<WSDLValidatorElement> set, List<QName> unusedExtensions)
    This method will search for all wsdl extensibility elements marked as required=true in wsdl:bindings As per the wsdl 2.2 specification section 2.5 here is how a wsdl:binding is defined: <wsdl:definitions .... > <wsdl:binding name="nmtoken" type="qname"> * <-- extensibility element (1) --> * <wsdl:operation name="nmtoken"> * <-- extensibility element (2) --> * <wsdl:input name="nmtoken"?

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WSDLExtensionUtils

      public WSDLExtensionUtils()
  • Method Details

    • search

      public static void search(javax.wsdl.WSDLElement element, Set<WSDLValidatorElement> set, List<QName> unusedExtensions)
      This method will search for all wsdl extensibility elements marked as required=true in wsdl:bindings As per the wsdl 2.2 specification section 2.5 here is how a wsdl:binding is defined: <wsdl:definitions .... > <wsdl:binding name="nmtoken" type="qname"> * <-- extensibility element (1) --> * <wsdl:operation name="nmtoken"> * <-- extensibility element (2) --> * <wsdl:input name="nmtoken"? > ? <-- extensibility element (3) --> </wsdl:input> <wsdl:output name="nmtoken"? > ? <-- extensibility element (4) --> * </wsdl:output> <wsdl:fault name="nmtoken"> * <-- extensibility element (5) --> * </wsdl:fault> </wsdl:operation> </wsdl:binding> </wsdl:definitions> we will look for wsdl extensions in binding root, wsdl:operation, wsdl:input, wsdl:output and wsdl:fault. If the extensibility element is defines outside of these sections it will not be picked up by this method.
      Parameters:
      wsdlBinding - - WSDLBinding Object read from WSDL Definition.
      set - - Set that will be filled with list of required=true extension elements.
    • processExtensions

      public static void processExtensions(EndpointDescription endpointDescription)