HPSearch

cgl.hpsearch.nb4ws.WSDL
Class WSDLParser

java.lang.Object
  extended bycgl.hpsearch.nb4ws.WSDL.WSDLParser

public class WSDLParser
extends Object

A class that defines methods for building components to invoke a web service by analyzing a WSDL document.

Author:
Jim Winfield

Field Summary
static String DEFAULT_SOAP_ENCODING_STYLE
          The default SOAP encoding to use.
 List serviceList
           
 TypesParser typesParser
           
 
Constructor Summary
WSDLParser(String wsdl)
           
 
Method Summary
 void buildComponents()
          Builds a List of ServiceInfo components for each Service defined in a WSDL Document.
protected  org.exolab.castor.xml.schema.Schema createSchemaFromTypes(javax.wsdl.Definition wsdlDefinition)
          Creates a castor schema based on the types defined by a WSDL document
static void main(String[] a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceList

public List serviceList

typesParser

public TypesParser typesParser

DEFAULT_SOAP_ENCODING_STYLE

public static final String DEFAULT_SOAP_ENCODING_STYLE
The default SOAP encoding to use.

See Also:
Constant Field Values
Constructor Detail

WSDLParser

public WSDLParser(String wsdl)
Method Detail

main

public static void main(String[] a)

buildComponents

public void buildComponents()
                     throws Exception
Builds a List of ServiceInfo components for each Service defined in a WSDL Document.
A List of SoapComponent objects populated for each service defined in a WSDL document. The List is null if the document can't be read.

Throws:
Exception

createSchemaFromTypes

protected org.exolab.castor.xml.schema.Schema createSchemaFromTypes(javax.wsdl.Definition wsdlDefinition)
Creates a castor schema based on the types defined by a WSDL document

Parameters:
wsdlDefinition - The WSDL4J instance of a WSDL definition.
Returns:
A castor schema is returned if the WSDL definition contains a types element. null is returned otherwise.

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006