WSDL Class

Used to parse a WSDL return information about the web services documented in the WSDL including service name and description, web methods, and input parameters.
javaxt.webservices.WSDL wsdl = new javaxt.webservices.WSDL(url);
for (javaxt.webservices.Service service : wsdl.getServices()){
    System.out.println(service.getName());
    for (javaxt.webservices.Method method : service.getMethods()){
        System.out.println(" - " + method.getName());
        javaxt.webservices.Parameters parameters = method.getParameters();
        if (parameters!=null){
            for (javaxt.webservices.Parameter parameter : parameters.getArray()){
                System.out.println("   * " + parameter.getName());
            }
        }
    }
}
  

Constructors

WSDL( java.net.URL url )
WSDL( String url )
WSDL( java.net.URL url, String HttpProxyServer )
WSDL( Document wsdl )
WSDL( Document wsdl, String HttpProxyServer )
WSDL( Document wsdl, Document[] xsd )

Public Methods

getSSD( ) returns Document
Returns a Simple Service Description (SSD) - an xml document which outlines all the web methods and input parameters defined in the WSDL. This document is significantly easier to parse and understand than the original WSDL.
toString( ) returns String
Returns a string representing an XML document containing a Simple Service Description (SSD). Please see the getSSD() for more information.
addSchema( Document xsd, boolean followImports ) returns void
Used to add an external XSD.
xsd
followImportsFlag used to indicate whether to download/parse XSD files referenced by the schema/import nodes.
addSchema( Document[] xsd, boolean followImports ) returns void
Used to add multiple external XSDs.
xsd
followImportsFlag used to indicate whether to download/parse XSD files referenced by the schema/import nodes.
getServices( ) returns Service[]
Returns a list of web services found in this WSDL.
getListOfServices( ) returns String[]
Returns a list of service names found in this WSDL.
getService( String ServiceName ) returns Service
getService( int i ) returns Service
getMethod( String ServiceName, String MethodName ) returns Method
getMethod( String MethodName ) returns Method
getListOfMethods( String ServiceName ) returns String[]