|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.connector.axis2.util.WSUtils
public class WSUtils
Utility class , providing various methods for managing Axis 2 web services.
| Constructor Summary | |
|---|---|
WSUtils()
|
|
| Method Summary | |
|---|---|
static Vector |
createAllAxisServicesFromWSDLFile(String wsdl)
Returns all services from the given WSDL file. |
static Vector |
createAllAxisServicesFromWSDLFile(String wsdl,
boolean isServerSide)
Returns all services from the given WSDL file. |
static org.apache.axis2.description.AxisService |
createAxisServiceFromWSDLFile(String wsdlFile,
String serviceName)
Creates a specified service object from the WSDL file. |
static org.apache.axis2.description.AxisService |
createAxisServiceFromWSDLFile(String wsdlFile,
String serviceName,
boolean isServerSide)
Creates a specified service object from the WSDL file. |
static Vector |
getServiceEndPointNames(String wsdlFile,
String serviceName)
Retrieves the endpoint names from the give WSDL file for the given service. |
static Vector |
getServiceOperationNames(String wsdlFile,
String serviceName)
Returns service operation names from the give WSDL file for the given service. |
static Attribute |
getSOAPHeader(org.apache.axiom.soap.SOAPEnvelope envelope,
String attributeName,
Entry e)
Returns the SOAP Header as TDI Hierarchical Attribute from a given SOAP Envelope. |
static boolean |
isWSDL20(URL wsdlURL)
This method determines the version of the WSDL file which corresponds to the given URL. |
static void |
setSOAPHeader(org.apache.axiom.soap.SOAPEnvelope envelope,
Attribute soapHeaderHAttr)
Sets the SOAP Envelope header to the provided TDI Hierarchical Attribute. |
static Element |
toDOM(org.apache.axiom.om.OMElement src,
Document doc)
Converts Apache AXIOM element to W3C DOM Element, i.e. |
static org.apache.axiom.om.OMElement |
toOM(Element src)
Converts W3C DOM Element to Apache AXIOM element. |
static org.apache.axiom.om.OMElement |
toOM(Element src,
org.apache.axiom.om.OMFactory factory)
Converts W3C DOM Element to Apache AXIOM element. |
static Attribute |
verifyAttribute(Attribute a,
QName qname)
Verifies that the passed Attribute has the required prefix/localName/namespace and that its child is a Text object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WSUtils()
| Method Detail |
|---|
public static Element toDOM(org.apache.axiom.om.OMElement src,
Document doc)
src - The AXIOM element which will be converted.doc - The document used to create all needed DOM information.
public static org.apache.axiom.om.OMElement toOM(Element src)
src - The element which will be converted.
public static org.apache.axiom.om.OMElement toOM(Element src,
org.apache.axiom.om.OMFactory factory)
src - The element which will be converted.factory - The desired OMFacotry for the convertion.
public static boolean isWSDL20(URL wsdlURL)
throws Exception
wsdlURL - The URL to the WSDL file.
Exception - The WSDL version cannot be recognized.
public static Vector createAllAxisServicesFromWSDLFile(String wsdl)
throws Exception
wsdl - The location to the WSDL file.
Exception - If an Exception occurs during the process. Check the
Exception message for more details.
public static Vector createAllAxisServicesFromWSDLFile(String wsdl,
boolean isServerSide)
throws Exception
wsdl - The location to the WSDL file.isServerSide - If true the services will be created form server point of
view. If false - from client point of view.
Exception - If an Exception occurs during the process. Check the
Exception message for more details.
public static org.apache.axis2.description.AxisService createAxisServiceFromWSDLFile(String wsdlFile,
String serviceName)
throws Exception
wsdlFile - The location to the WSDL file.serviceName - The service name of the service which will be created.
Exception - If an Exception occurs during the process. Check the
Exception message for more details.
public static org.apache.axis2.description.AxisService createAxisServiceFromWSDLFile(String wsdlFile,
String serviceName,
boolean isServerSide)
throws Exception
wsdlFile - The location to the WSDL file.serviceName - The service name of the service which will be created.isServerSide - If true the service will be created form server point of view.
If false - from client point of view.
Exception - If an Exception occurs during the process. Check the
Exception message for more details.
public static Vector getServiceEndPointNames(String wsdlFile,
String serviceName)
throws Exception
wsdlFile - The location to the WSDL file.serviceName - The service name of the service from which the endpoint will
be extracted.
Exception - If an Exception occurs during the process. Check the
Exception message for more details.
public static Vector getServiceOperationNames(String wsdlFile,
String serviceName)
throws Exception
wsdlFile - The location to the WSDL file.serviceName - The service name of the service from which the operations will
be extracted.
Exception - If an Exception occurs during the process. Check the
Exception message for more details.
public static Attribute getSOAPHeader(org.apache.axiom.soap.SOAPEnvelope envelope,
String attributeName,
Entry e)
envelope - The Envelope from which the headers will be extracted.attributeName - The name of the TDI Hierarchical Attribute to which the
Envelope Header will be written.e - The entry which is used to manipulate the TDI Hierarchical
Attribute.
public static void setSOAPHeader(org.apache.axiom.soap.SOAPEnvelope envelope,
Attribute soapHeaderHAttr)
envelope - The SOAP Envelope which will be populated with the headers
information.soapHeaderHAttr - The TDI Hierarchical Attribute containing the SOAP Headers.
public static Attribute verifyAttribute(Attribute a,
QName qname)
Text object
a - The TDI Attribute.qname - The name which will be used for the TDI Attribute if it is not
already set..
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||