org.apache.axis2.wsdl.builder
Interface WOMBuilder

All Known Implementing Classes:
WSDL1ToWOMBuilder, WSDL2ToWOMBuilder

public interface WOMBuilder


Method Summary
 WSDLVersionWrapper build(InputStream in)
          Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper.
 WSDLVersionWrapper build(InputStream in, WSDLComponentFactory wsdlComponentFactory)
          Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper.
 WSDLVersionWrapper build(String uri)
          Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns as a wrapper object WSDLVersionWrapper.
 WSDLVersionWrapper build(String uri, WSDLComponentFactory wsdlComponentFactory)
          Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper.
 

Method Detail

build

public WSDLVersionWrapper build(String uri)
                         throws javax.wsdl.WSDLException
Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns as a wrapper object WSDLVersionWrapper.

Parameters:
uri - URI pointing to the WSDL document.
Returns:
Returns WSDLVersionWrapper which contains both the WSDL 2.0 and WSDL 1.1 object models.
Throws:
javax.wsdl.WSDLException

build

public WSDLVersionWrapper build(String uri,
                                WSDLComponentFactory wsdlComponentFactory)
                         throws javax.wsdl.WSDLException
Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper. A WSDL Component Factory can be passed into the builder using which the WOM component can be built. For example: The Engine uses the WOM's components in the context hierarchy but those are extended components. (AxisService extends WSDLService.) So when deployment build the WOM it would prefer to get a AxisService built in place of a WSDLService. This can be achieved by passing the correct Component Factory that will instantiate the correct object for the WOM builder.

Parameters:
uri - URI pointing to the WSDL document.
wsdlComponentFactory - The ComponentFactory that will be used to create the WOM components out of.
Returns:
Returns WSDLVersionWrapper which contains both the WSDL 2.0 and WSDL 1.1 object models.
Throws:
javax.wsdl.WSDLException

build

public WSDLVersionWrapper build(InputStream in)
                         throws javax.wsdl.WSDLException
Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper.

Parameters:
in - InputStream from which the WSDL document can be read in.
Returns:
Returns WSDLVersionWrapper which contains both the WSDL 2.0 and WSDL 1.1 object models.
Throws:
javax.wsdl.WSDLException

build

public WSDLVersionWrapper build(InputStream in,
                                WSDLComponentFactory wsdlComponentFactory)
                         throws javax.wsdl.WSDLException
Builds a WOM and a WSDL4J object model given the URI of the WSDL file and returns a wrapper object WSDLVersionWrapper. A WSDL Component Factory can be passed into the builder using which the WOM component can be built. For example: The Engine uses the WOM's components in the context hierarchy but those are extended components. (AxisService extends WSDLService.) So when deployment build the WOM it would prefer to get a AxisService built in place of a WSDLService. This can be achieved by passing the correct Component Factory that will instanciate the correct object for the WOM builder.

Parameters:
in - InputStream from which the WSDL document can be read in.
wsdlComponentFactory - The ComponentFactory that will be used to create the WOm components out of.
Returns:
Returns WSDLVersionWrapper which contains both the WSDL 2.0 and WSDL 1.1 object models.
Throws:
javax.wsdl.WSDLException