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

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

public class WsdlHelper
extends java.lang.Object

Author:
Christophe HAMERLING (chamerling) - eBM WebSourcing, "Mathieu CARROLLE - eBM WebSourcing"

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 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 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 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


Copyright © 2005-2010 OW2 Consortium. All Rights Reserved.