|
||||||||||
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 java.util.Vector |
createAllAxisServicesFromWSDLFile(java.lang.String wsdl)
Returns all services from the given WSDL file. |
static java.util.Vector |
createAllAxisServicesFromWSDLFile(java.lang.String wsdl,
boolean isServerSide)
Returns all services from the given WSDL file. |
static org.apache.axis2.description.AxisService |
createAxisServiceFromWSDLFile(java.lang.String wsdlFile,
java.lang.String serviceName)
Creates a specified service object from the WSDL file. |
static org.apache.axis2.description.AxisService |
createAxisServiceFromWSDLFile(java.lang.String wsdlFile,
java.lang.String serviceName,
boolean isServerSide)
Creates a specified service object from the WSDL file. |
static java.util.Vector |
getServiceEndPointNames(java.lang.String wsdlFile,
java.lang.String serviceName)
Retrieves the endpoint names from the give WSDL file for the given service. |
static java.util.Vector |
getServiceOperationNames(java.lang.String wsdlFile,
java.lang.String serviceName)
Returns service operation names from the give WSDL file for the given service. |
static Attribute |
getSOAPHeader(org.apache.axiom.soap.SOAPEnvelope envelope,
java.lang.String attributeName,
Entry e)
Returns the SOAP Header as TDI Hierarchical Attribute from a given SOAP Envelope. |
static boolean |
isWSDL20(java.net.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 org.w3c.dom.Element |
toDOM(org.apache.axiom.om.OMElement src,
org.w3c.dom.Document doc)
Converts Apache AXIOM element to W3C DOM Element, i.e. |
static org.apache.axiom.om.OMElement |
toOM(org.w3c.dom.Element src)
Converts W3C DOM Element to Apache AXIOM element. |
static org.apache.axiom.om.OMElement |
toOM(org.w3c.dom.Element src,
org.apache.axiom.om.OMFactory factory)
Converts W3C DOM Element to Apache AXIOM element. |
static Attribute |
verifyAttribute(Attribute a,
javax.xml.namespace.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 org.w3c.dom.Element toDOM(org.apache.axiom.om.OMElement src, org.w3c.dom.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(org.w3c.dom.Element src)
src
- The element which will be converted.
public static org.apache.axiom.om.OMElement toOM(org.w3c.dom.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(java.net.URL wsdlURL) throws java.lang.Exception
wsdlURL
- The URL to the WSDL file.
java.lang.Exception
- The WSDL version cannot be recognized.public static java.util.Vector createAllAxisServicesFromWSDLFile(java.lang.String wsdl) throws java.lang.Exception
wsdl
- The location to the WSDL file.
java.lang.Exception
- If an Exception occurs during the process. Check the
Exception message for more details.public static java.util.Vector createAllAxisServicesFromWSDLFile(java.lang.String wsdl, boolean isServerSide) throws java.lang.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.
java.lang.Exception
- If an Exception occurs during the process. Check the
Exception message for more details.public static org.apache.axis2.description.AxisService createAxisServiceFromWSDLFile(java.lang.String wsdlFile, java.lang.String serviceName) throws java.lang.Exception
wsdlFile
- The location to the WSDL file.serviceName
- The service name of the service which will be created.
java.lang.Exception
- If an Exception occurs during the process. Check the
Exception message for more details.public static org.apache.axis2.description.AxisService createAxisServiceFromWSDLFile(java.lang.String wsdlFile, java.lang.String serviceName, boolean isServerSide) throws java.lang.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.
java.lang.Exception
- If an Exception occurs during the process. Check the
Exception message for more details.public static java.util.Vector getServiceEndPointNames(java.lang.String wsdlFile, java.lang.String serviceName) throws java.lang.Exception
wsdlFile
- The location to the WSDL file.serviceName
- The service name of the service from which the endpoint will
be extracted.
java.lang.Exception
- If an Exception occurs during the process. Check the
Exception message for more details.public static java.util.Vector getServiceOperationNames(java.lang.String wsdlFile, java.lang.String serviceName) throws java.lang.Exception
wsdlFile
- The location to the WSDL file.serviceName
- The service name of the service from which the operations will
be extracted.
java.lang.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, java.lang.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, javax.xml.namespace.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 |