Class WSDLUtil

java.lang.Object
com.predic8.membrane.core.util.WSDLUtil

public class WSDLUtil extends Object
  • Constructor Details

    • WSDLUtil

      public WSDLUtil()
  • Method Details

    • getService

      public static com.predic8.wsdl.Service getService(com.predic8.wsdl.Definitions definitions, String serviceName)
      Searches a service in a WSDL. Does not consider namespaces
      Parameters:
      definitions - Parsed WSDL
      serviceName - local name component of the attribute definitions.service.@name
      Returns:
      Service
    • getPortTypes

      public static Set<com.predic8.wsdl.PortType> getPortTypes(com.predic8.wsdl.Service service)
    • getPossibleSOAPElements

      public static Set<QName> getPossibleSOAPElements(com.predic8.wsdl.Service service, WSDLUtil.Direction direction)
      A schema can have lots of toplevel elements but not all elements are valid toplevel elements in SOAP requests. Only the elements referenced from service->port->binding->porttype->msg->types-schema->element are valid toplevel elements in SOAP requests.
      Parameters:
      service - service for that elements should be searched
      Returns:
      Set of elements that are allowed in this service as soap elements
    • getPossibleSOAPElements

      public static Set<QName> getPossibleSOAPElements(com.predic8.wsdl.PortType portType, WSDLUtil.Direction direction)
    • getSOAPVersion

      public static Constants.SoapVersion getSOAPVersion(com.predic8.wsdl.Port port)
      SOAP version of a WSDL port
      Parameters:
      port - of definitions.service object
      Returns:
      SOAP version enum