org.pentaho.di.trans.steps.webservices.wsdl
Class Wsdl

java.lang.Object
  extended by org.pentaho.di.trans.steps.webservices.wsdl.Wsdl
All Implemented Interfaces:
Serializable

public final class Wsdl
extends Object
implements Serializable

Wsdl abstraction.

See Also:
Serialized Form

Constructor Summary
Wsdl(URI wsdlURI, QName serviceQName, String portName)
          Loads and parses the specified WSDL file.
Wsdl(URI wsdlURI, QName serviceQName, String portName, String username, String password)
           
Wsdl(javax.wsdl.xml.WSDLLocator wsdlLocator, QName serviceQName, String portName)
          Loads and parses the specified WSDL file.
Wsdl(javax.wsdl.xml.WSDLLocator wsdlLocator, QName serviceQName, String portName, String username, String password)
           
 
Method Summary
 WsdlComplexTypes getComplexTypes()
          Get the WsdlComplexTypes instance of this wsdl.
 WsdlOperation getOperation(String operationName)
          Find the specified operation in the WSDL definition.
 List<WsdlOperation> getOperations()
          Get a list of all operations defined in this WSDL.
 String getPortName()
          Get the name of the current port.
 QName getPortTypeQName()
          Get the PortType name for the service which has been specified by serviceName and portName at construction time.
 String getServiceEndpoint()
          Get the service endpoint.
 String getServiceName()
          Get the name of this service.
 String getTargetNamespace()
          Get the target namespace for the WSDL.
 WsdlTypes getWsdlTypes()
          Returns this objects WSDL types.
 void setPort(QName portName)
          Change the port of the service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wsdl

public Wsdl(URI wsdlURI,
            QName serviceQName,
            String portName)
     throws org.apache.commons.httpclient.auth.AuthenticationException
Loads and parses the specified WSDL file.

Parameters:
wsdlURI - URI of a WSDL file.
serviceQName - Name of the service in the WSDL, if null default to first service in WSDL.
portName - The service port name, if null default to first port in service.
Throws:
org.apache.commons.httpclient.auth.AuthenticationException

Wsdl

public Wsdl(URI wsdlURI,
            QName serviceQName,
            String portName,
            String username,
            String password)
     throws org.apache.commons.httpclient.auth.AuthenticationException
Throws:
org.apache.commons.httpclient.auth.AuthenticationException

Wsdl

public Wsdl(javax.wsdl.xml.WSDLLocator wsdlLocator,
            QName serviceQName,
            String portName)
     throws org.apache.commons.httpclient.auth.AuthenticationException
Loads and parses the specified WSDL file.

Parameters:
wsdlLocator - A javax.wsdl.WSDLLocator instance.
serviceQName - Name of the service in the WSDL.
portName - The service port name.
Throws:
org.apache.commons.httpclient.auth.AuthenticationException

Wsdl

public Wsdl(javax.wsdl.xml.WSDLLocator wsdlLocator,
            QName serviceQName,
            String portName,
            String username,
            String password)
     throws org.apache.commons.httpclient.auth.AuthenticationException
Throws:
org.apache.commons.httpclient.auth.AuthenticationException
Method Detail

getComplexTypes

public WsdlComplexTypes getComplexTypes()
Get the WsdlComplexTypes instance of this wsdl. WsdlComplex types provides type information for named complextypes defined in the wsdl's <types> section.

Returns:
WsdlComplexTypes instance.

getOperation

public WsdlOperation getOperation(String operationName)
                           throws KettleStepException
Find the specified operation in the WSDL definition.

Parameters:
operationName - Name of operation to find.
Returns:
A WsdlOperation instance, null if operation can not be found in WSDL.
Throws:
KettleStepException

getOperations

public List<WsdlOperation> getOperations()
                                  throws KettleStepException
Get a list of all operations defined in this WSDL.

Returns:
List of WsdlOperations.
Throws:
KettleStepException

getPortName

public String getPortName()
Get the name of the current port.

Returns:
Name of the current port.

getPortTypeQName

public QName getPortTypeQName()
Get the PortType name for the service which has been specified by serviceName and portName at construction time.

Returns:
QName of the PortType.

getServiceEndpoint

public String getServiceEndpoint()
Get the service endpoint.

Returns:
String containing the service endpoint.

getServiceName

public String getServiceName()
Get the name of this service.

Returns:
Service name.

getTargetNamespace

public String getTargetNamespace()
Get the target namespace for the WSDL.

Returns:
The targetNamespace

setPort

public void setPort(QName portName)
Change the port of the service.

Parameters:
portName - The new port name.
Throws:
IllegalArgumentException - if port name is not defined in WSDL.

getWsdlTypes

public WsdlTypes getWsdlTypes()
Returns this objects WSDL types.

Returns:
WsdlTepes