org.ow2.petals.binding.soap.util
Class WsdlHelper

java.lang.Object
  extended by org.ow2.petals.binding.soap.util.WsdlHelper

public final class WsdlHelper
extends java.lang.Object


Method Summary
static org.ow2.easywsdl.wsdl.api.BindingOperation findOperationUsingElement(org.w3c.dom.Element firstElement, org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.Description desc, java.lang.String endpointName, javax.xml.namespace.QName serviceName)
           
static java.util.ArrayList<org.ow2.easywsdl.wsdl.api.BindingOperation> findOperationUsingSoapAction(java.lang.String soapAction, org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.Description desc)
           
static java.lang.String findSoapAction(org.w3c.dom.Element firstElement, org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.Description desc, java.lang.String endpointName, javax.xml.namespace.QName serviceName)
          Retrieve soapAction in the WSDL depending on the first element of the request
static org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.Description getDescription(org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes, javax.jbi.component.ComponentContext componentContext, java.util.logging.Logger logger)
          Get the service definition document (WSDL)
static java.util.Map<java.net.URI,org.w3c.dom.Document> getImportedDocuments(java.util.logging.Logger logger, org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes, javax.jbi.component.ComponentContext componentContext, java.lang.String requestURL)
          Return the imported documents in the WSDL description of the services.
static org.w3c.dom.Document getServiceDefinition(org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes, javax.jbi.component.ComponentContext componentContext, java.util.logging.Logger logger)
          Get the service definition document (WSDL)
static org.w3c.dom.Document getServiceDefinition(org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes, javax.jbi.component.ComponentContext componentContext, java.util.logging.Logger logger, java.lang.String serviceAddress)
          Get the service definition document (WSDL) with the updated service address
static void printWSDL(java.util.logging.Logger logger, org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes, javax.jbi.component.ComponentContext componentContext, java.io.OutputStream out, java.lang.String serviceAddress)
           
static java.util.Map<java.lang.String,java.lang.String> readAndStoreSoapAction(org.w3c.dom.Document doc, javax.xml.namespace.QName serviceName, java.lang.String endpointName)
          Read soap action in the wsdl and store for the given service and endpoint name
static org.w3c.dom.Document replaceServiceAddressInWSDL(org.w3c.dom.Document doc, java.lang.String address)
          Replace the endpoint address in the WSDL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

replaceServiceAddressInWSDL

public static final org.w3c.dom.Document replaceServiceAddressInWSDL(org.w3c.dom.Document doc,
                                                                     java.lang.String address)
                                                              throws org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlException,
                                                                     java.net.URISyntaxException
Replace the endpoint address in the WSDL

Returns:
Throws:
org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlException
java.net.URISyntaxException

readAndStoreSoapAction

public static final java.util.Map<java.lang.String,java.lang.String> readAndStoreSoapAction(org.w3c.dom.Document doc,
                                                                                            javax.xml.namespace.QName serviceName,
                                                                                            java.lang.String endpointName)
                                                                                     throws org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlException,
                                                                                            java.net.URISyntaxException
Read soap action in the wsdl and store for the given service and endpoint name

Parameters:
doc - associated wsdl
serviceName -
endpointName -
Returns:
a map where the keys is a bindingOperation name and the value is the associated soap action
Throws:
java.net.URISyntaxException
org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlException

findOperationUsingElement

public static org.ow2.easywsdl.wsdl.api.BindingOperation findOperationUsingElement(org.w3c.dom.Element firstElement,
                                                                                   org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.Description desc,
                                                                                   java.lang.String endpointName,
                                                                                   javax.xml.namespace.QName serviceName)

findOperationUsingSoapAction

public static java.util.ArrayList<org.ow2.easywsdl.wsdl.api.BindingOperation> findOperationUsingSoapAction(java.lang.String soapAction,
                                                                                                           org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.Description desc)

findSoapAction

public static java.lang.String findSoapAction(org.w3c.dom.Element firstElement,
                                              org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.Description desc,
                                              java.lang.String endpointName,
                                              javax.xml.namespace.QName serviceName)
Retrieve soapAction in the WSDL depending on the first element of the request

Parameters:
firstElement - the first element of the request
desc - the WSDL of the service
Returns:
the soapAction of the operation

getDescription

public static final org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.Description getDescription(org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes,
                                                                                                javax.jbi.component.ComponentContext componentContext,
                                                                                                java.util.logging.Logger logger)
                                                                                         throws org.apache.axis2.AxisFault
Get the service definition document (WSDL)

Throws:
org.apache.axis2.AxisFault

getServiceDefinition

public static final org.w3c.dom.Document getServiceDefinition(org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes,
                                                              javax.jbi.component.ComponentContext componentContext,
                                                              java.util.logging.Logger logger,
                                                              java.lang.String serviceAddress)
                                                       throws javax.jbi.JBIException,
                                                              org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlException,
                                                              java.net.URISyntaxException
Get the service definition document (WSDL) with the updated service address

Throws:
javax.jbi.JBIException
org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlException
java.net.URISyntaxException

getServiceDefinition

public static final org.w3c.dom.Document getServiceDefinition(org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes,
                                                              javax.jbi.component.ComponentContext componentContext,
                                                              java.util.logging.Logger logger)
                                                       throws javax.jbi.JBIException,
                                                              org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlException,
                                                              java.net.URISyntaxException
Get the service definition document (WSDL)

Throws:
javax.jbi.JBIException
org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlException
java.net.URISyntaxException

printWSDL

public static final void printWSDL(java.util.logging.Logger logger,
                                   org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes,
                                   javax.jbi.component.ComponentContext componentContext,
                                   java.io.OutputStream out,
                                   java.lang.String serviceAddress)
                            throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

getImportedDocuments

public static final java.util.Map<java.net.URI,org.w3c.dom.Document> getImportedDocuments(java.util.logging.Logger logger,
                                                                                          org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes,
                                                                                          javax.jbi.component.ComponentContext componentContext,
                                                                                          java.lang.String requestURL)
                                                                                   throws org.apache.axis2.AxisFault
Return the imported documents in the WSDL description of the services. As these documents are rebuilt, the exposed web service URL is required to build them correctly

Parameters:
logger - the logger
consumes - the consumes
componentContext - the component context
requestURL - the URL of the web service, typically http://..:8084/petals/services/MyWebService
Returns:
Throws:
org.apache.axis2.AxisFault


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.