JavaXT

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

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

Methods

addSchema( org.w3c.dom.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( org.w3c.dom.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.
getListOfMethods( String ServiceName ) returns String[]
getListOfServices( ) returns String[]
Returns a list of service names found in this WSDL.
getMethod( String MethodName ) returns javaxt.webservices.Method
getMethod( String ServiceName, String MethodName ) returns javaxt.webservices.Method
getService( String ServiceName ) returns javaxt.webservices.Service
getService( int i ) returns javaxt.webservices.Service
getServices( ) returns javaxt.webservices.Service[]
Returns a list of web services found in this WSDL.
getSSD( ) returns org.w3c.dom.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.