org.eclipse.datatools.enablement.oda.ws.util
Class WSDLAdvisor

java.lang.Object
  extended by org.eclipse.datatools.enablement.oda.ws.util.WSDLAdvisor

public class WSDLAdvisor
extends java.lang.Object

A utility class that handles all wsdl-involved operations


Field Summary
static java.lang.String BASE
           
static java.lang.String CHOICE
           
static java.lang.String COMPLEX_TYPE
           
static java.lang.String EMPTY_STRING
           
static java.lang.String NAME
           
static java.lang.String NS_DEFAULT
           
static java.lang.String NS_KEY_DEFAULT
           
static java.lang.String NS_KEY_SOAP_ENC
           
static java.lang.String NS_KEY_SOAP_ENV
           
static java.lang.String NS_KEY_XSD
           
static java.lang.String NS_KEY_XSI
           
static java.lang.String NS_SOAP_ENC
           
static java.lang.String NS_SOAP_ENV
           
static java.lang.String NS_XSD
           
static java.lang.String NS_XSI
           
static java.lang.String RE_DELIMITER_OPEARTION
           
static java.lang.String REF
           
static java.lang.String SIMPLE_TYPE
           
static java.lang.String SOAP_BODY_END
           
static java.lang.String SOAP_BODY_START
           
static java.lang.String SOAP_ENVELOPE_END
           
static java.lang.String SOAP_ENVELOPE_START
           
static java.lang.String SOAP_HEADER_END
           
static java.lang.String SOAP_HEADER_START
           
static java.lang.String TYPE
           
static java.lang.String XML_DECLARATION
           
 
Constructor Summary
WSDLAdvisor()
           
 
Method Summary
 WSNonLeafNode generateNode(java.lang.String nodeName, org.w3c.dom.Element[] element, java.lang.String[] parentNode, java.lang.String complexTypeName)
           
static javax.wsdl.Definition getDefinition(java.lang.String wsdlURI)
          Gets the definition, this is the starting point to browse a operation tree
static javax.wsdl.Definition getDefinitionWithoutExcpe(java.lang.String wsdlURI)
           
 java.lang.String getLocalSOAPResponseTemplate(java.lang.String wsdlURI, java.lang.String operationTrace)
          Generates the Response template when the system can not get the response from the target wsdlURI,will use the sample data to generate the template
static java.lang.String getLocationURI(java.lang.String wsdlURI, java.lang.String operationTrace)
          Retrieves the locationURI
static java.lang.String getSOAPActionURI(java.lang.String wsdlURI, java.lang.String operationTrace)
          Retrieves the SOAPActionURI
 java.lang.String getSOAPRequestTemplate(java.lang.String wsdlURI, java.lang.String operationTrace)
          Generates the template (WSDL 1.1, SOAP 1.2 compliant) based on the given location of wsdlFile and the selected opeartion.
static java.lang.String retrieveDocument(javax.wsdl.Operation operation)
          Retrieves the document of the operation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RE_DELIMITER_OPEARTION

public static final java.lang.String RE_DELIMITER_OPEARTION
See Also:
Constant Field Values

XML_DECLARATION

public static final java.lang.String XML_DECLARATION
See Also:
Constant Field Values

SOAP_ENVELOPE_START

public static final java.lang.String SOAP_ENVELOPE_START
See Also:
Constant Field Values

SOAP_ENVELOPE_END

public static final java.lang.String SOAP_ENVELOPE_END
See Also:
Constant Field Values

SOAP_HEADER_START

public static final java.lang.String SOAP_HEADER_START
See Also:
Constant Field Values

SOAP_HEADER_END

public static final java.lang.String SOAP_HEADER_END
See Also:
Constant Field Values

SOAP_BODY_START

public static final java.lang.String SOAP_BODY_START
See Also:
Constant Field Values

SOAP_BODY_END

public static final java.lang.String SOAP_BODY_END
See Also:
Constant Field Values

NS_SOAP_ENV

public static final java.lang.String NS_SOAP_ENV
See Also:
Constant Field Values

NS_SOAP_ENC

public static final java.lang.String NS_SOAP_ENC
See Also:
Constant Field Values

NS_XSI

public static final java.lang.String NS_XSI
See Also:
Constant Field Values

NS_XSD

public static final java.lang.String NS_XSD
See Also:
Constant Field Values

NS_KEY_SOAP_ENV

public static final java.lang.String NS_KEY_SOAP_ENV
See Also:
Constant Field Values

NS_KEY_SOAP_ENC

public static final java.lang.String NS_KEY_SOAP_ENC
See Also:
Constant Field Values

NS_KEY_XSI

public static final java.lang.String NS_KEY_XSI
See Also:
Constant Field Values

NS_KEY_XSD

public static final java.lang.String NS_KEY_XSD
See Also:
Constant Field Values

NS_KEY_DEFAULT

public static final java.lang.String NS_KEY_DEFAULT
See Also:
Constant Field Values

NS_DEFAULT

public static final java.lang.String NS_DEFAULT
See Also:
Constant Field Values

EMPTY_STRING

public static final java.lang.String EMPTY_STRING
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

REF

public static final java.lang.String REF
See Also:
Constant Field Values

BASE

public static final java.lang.String BASE
See Also:
Constant Field Values

SIMPLE_TYPE

public static final java.lang.String SIMPLE_TYPE
See Also:
Constant Field Values

COMPLEX_TYPE

public static final java.lang.String COMPLEX_TYPE
See Also:
Constant Field Values

CHOICE

public static final java.lang.String CHOICE
See Also:
Constant Field Values
Constructor Detail

WSDLAdvisor

public WSDLAdvisor()
Method Detail

getDefinition

public static javax.wsdl.Definition getDefinition(java.lang.String wsdlURI)
                                           throws javax.wsdl.WSDLException
Gets the definition, this is the starting point to browse a operation tree

Parameters:
wsdlURI -
Returns:
Throws:
javax.wsdl.WSDLException

getDefinitionWithoutExcpe

public static javax.wsdl.Definition getDefinitionWithoutExcpe(java.lang.String wsdlURI)

getLocationURI

public static java.lang.String getLocationURI(java.lang.String wsdlURI,
                                              java.lang.String operationTrace)
Retrieves the locationURI

Parameters:
wsdlURI -
operationTrace -
Returns:

getSOAPActionURI

public static java.lang.String getSOAPActionURI(java.lang.String wsdlURI,
                                                java.lang.String operationTrace)
Retrieves the SOAPActionURI

Parameters:
wsdlURI -
operationTrace -
Returns:

retrieveDocument

public static java.lang.String retrieveDocument(javax.wsdl.Operation operation)
Retrieves the document of the operation

Parameters:
operation -
Returns:

getSOAPRequestTemplate

public java.lang.String getSOAPRequestTemplate(java.lang.String wsdlURI,
                                               java.lang.String operationTrace)
Generates the template (WSDL 1.1, SOAP 1.2 compliant) based on the given location of wsdlFile and the selected opeartion. The following attributes and their combinations are recognizable 1. style: document|rpc 2.header: with|without 3. dataType: simple|complex 4.complexType: value|reference [5.complexType: sequence|choice]

Parameters:
wsdlURI -
operationTrace -
Returns:

getLocalSOAPResponseTemplate

public java.lang.String getLocalSOAPResponseTemplate(java.lang.String wsdlURI,
                                                     java.lang.String operationTrace)
Generates the Response template when the system can not get the response from the target wsdlURI,will use the sample data to generate the template

Parameters:
wsdlURI -
operationTrace -
Returns:

generateNode

public WSNonLeafNode generateNode(java.lang.String nodeName,
                                  org.w3c.dom.Element[] element,
                                  java.lang.String[] parentNode,
                                  java.lang.String complexTypeName)