it.imolinfo.jbi4corba.jbi.wsdl
Class Jbi4CorbaExtensionUtils

java.lang.Object
  extended by it.imolinfo.jbi4corba.jbi.wsdl.Jbi4CorbaExtensionUtils

public class Jbi4CorbaExtensionUtils
extends Object

Jbi4Corba wsdl extensions helper class.

Author:
marco

Constructor Summary
Jbi4CorbaExtensionUtils()
          Default constructor.
 
Method Summary
static javax.wsdl.Binding getBinding(javax.wsdl.Definition def, String serviceName, String endpointName)
          Gets the Binding.
static Jbi4CorbaAddress getCorbaAddress(javax.wsdl.Definition def, String serviceName, String endpointName)
          Gets the Jbi4CorbaAddress.
static Jbi4CorbaBinding getCorbaBinding(javax.wsdl.Definition def, String serviceName, String endpointName)
          Gets the Jbi4CorbaBinding.
static javax.wsdl.xml.WSDLWriter getExtendedWSDLWriter()
          Gets the Jbi4Ejb extended WSDL writer.
static javax.wsdl.PortType getPortType(javax.wsdl.Definition def, String serviceName, String endpointName)
          Gets the PortType.
static javax.wsdl.Service getService(javax.wsdl.Definition def, String serviceName)
          Gets the Service.
static String getWSDLStringFromDefinition(javax.wsdl.Definition wsdl)
          Gets the WSDL string from the WSDL definition.
static void removeCorbaElements(javax.wsdl.Definition def)
          Removes all The Jbi4Corba elements from a definition .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jbi4CorbaExtensionUtils

public Jbi4CorbaExtensionUtils()
Default constructor.

Method Detail

removeCorbaElements

public static void removeCorbaElements(javax.wsdl.Definition def)
                                throws javax.wsdl.WSDLException
Removes all The Jbi4Corba elements from a definition .

Parameters:
def - The WSDL to add SOAP elements. Must be not null.
Throws:
javax.wsdl.WSDLException - In case of error manipulating the Definition.

getBinding

public static javax.wsdl.Binding getBinding(javax.wsdl.Definition def,
                                            String serviceName,
                                            String endpointName)
Gets the Binding.

Parameters:
def - the WSDL definition
serviceName - the service name
endpointName - the endpoint name
Returns:
the Binding

getService

public static javax.wsdl.Service getService(javax.wsdl.Definition def,
                                            String serviceName)
Gets the Service.

Parameters:
def - the WSDL definition
serviceName - the service name
Returns:
the Service

getCorbaBinding

public static Jbi4CorbaBinding getCorbaBinding(javax.wsdl.Definition def,
                                               String serviceName,
                                               String endpointName)
Gets the Jbi4CorbaBinding.

Parameters:
def - the WSDL definition
serviceName - the service name
endpointName - the endpoint name
Returns:
the Jbi4CorbaBinding

getCorbaAddress

public static Jbi4CorbaAddress getCorbaAddress(javax.wsdl.Definition def,
                                               String serviceName,
                                               String endpointName)
Gets the Jbi4CorbaAddress.

Parameters:
def - the WSDL definition
serviceName - the service name
endpointName - the endpoint name
Returns:
the Jbi4CorbaAddress

getPortType

public static javax.wsdl.PortType getPortType(javax.wsdl.Definition def,
                                              String serviceName,
                                              String endpointName)
Gets the PortType.

Parameters:
def - the WSDL definition
serviceName - the Service Name
endpointName - the Endpoint name
Returns:
the WSDL port type

getExtendedWSDLWriter

public static javax.wsdl.xml.WSDLWriter getExtendedWSDLWriter()
                                                       throws javax.wsdl.WSDLException
Gets the Jbi4Ejb extended WSDL writer.

Returns:
the extended WSDL writer
Throws:
javax.wsdl.WSDLException

getWSDLStringFromDefinition

public static String getWSDLStringFromDefinition(javax.wsdl.Definition wsdl)
Gets the WSDL string from the WSDL definition. USE THIS METHOD ONLY FOR LOGGING!

Parameters:
wsdl -
Returns:
the WSDL string from definition


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.