org.ow2.petals.binding.soap.listener.incoming
Class PetalsAxisService

java.lang.Object
  extended by org.apache.axis2.description.AxisDescription
      extended by org.apache.axis2.description.AxisService
          extended by org.ow2.petals.binding.soap.listener.incoming.PetalsAxisService
All Implemented Interfaces:
org.apache.axis2.description.DescriptionConstants, org.apache.axis2.description.ParameterInclude

public class PetalsAxisService
extends org.apache.axis2.description.AxisService

The PetalsAxisService extends an AxisService. It is registered during SU deployment into the AxisConfiguration. This class override the printWSDL method to dynamically generate the WSDL from the JBI container.

Author:
Adrien LOUIS - EBMWebSourcing, Christophe HAMERLING - eBMWebSourcing

Field Summary
static javax.xml.namespace.QName GENERIC_OPERATION_NAME
           
static javax.xml.namespace.QName NOTIFY_OPERATION_NAME
           
static java.lang.String OUTGOING_SERVICE_CLIENT_PREFIX
          The client service name prefix
 
Fields inherited from class org.apache.axis2.description.AxisService
IMPORT_TAG, INCLUDE_TAG, SCHEMA_LOCATION, SUPPORT_SINGLE_OP
 
Fields inherited from class org.apache.axis2.description.AxisDescription
engagedModules, parameterObservers, parent
 
Fields inherited from interface org.apache.axis2.description.DescriptionConstants
CLASSLOADER_KEY, CONTEXTPATH_KEY, EXECUTION_CHAIN_KEY, EXECUTION_FAULT_CHAIN_KEY, EXECUTION_OUT_CHAIN_KEY, IN_FAULTFLOW_KEY, INFLOW_KEY, MESSAGE_RECEIVER_KEY, MODULEREF_KEY, OPERATION_KEY, OUT_FAULTFLOW_KEY, OUTFLOW_KEY, PARAMETER_KEY, PHASES_KEY, SERVICE_CLASS_NAME, STYLE_KEY
 
Constructor Summary
PetalsAxisService(java.lang.String name, javax.jbi.component.ComponentContext componentContext, org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions consumesExtensions, java.lang.String localAddress, PetalsReceiver petalsReceiver, java.util.logging.Logger logger)
          Creates a new instance of PetalsAxisService
 
Method Summary
 org.ow2.petals.component.framework.jbidescriptor.generated.Consumes getConsumes()
           
 org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions getConsumesCDKExtensions()
           
 org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.Description getDescription()
           
 java.util.Map<java.net.URI,org.w3c.dom.Document> getImportedDocuments(java.lang.String rootURI)
          Return the imported documents in the WSDL description of the services.
 java.lang.String getLocalAddress()
           
 java.util.Map<javax.xml.namespace.QName,java.net.URI> getOperationMep()
           
 javax.jbi.servicedesc.ServiceEndpoint getServiceEndpoint()
          Get the service endpoint.
 void printWSDL(java.io.OutputStream out, java.lang.String requestIP)
           
 void printWSDL2(java.io.OutputStream out, java.lang.String requestIP)
           
 
Methods inherited from class org.apache.axis2.description.AxisService
addDataLocatorClassNames, addEndpoint, addExposedTransport, addHttpLocationDispatcherString, addMessageContextListener, addMessageElementQNameToOperationMapping, addMessageReceiver, addModuleConfig, addModuleref, addOperation, addSchema, addSchema, attachEnvelopeEvent, attachServiceContextEvent, createClientSideAxisService, createClientSideAxisService, createService, createService, createService, getAxisServiceGroup, getBindingName, getClassLoader, getControlOperations, getCustomSchemaNamePrefix, getCustomSchemaNameSuffix, getData, getDataLocator, getEndpoint, getEndpointName, getEndpoints, getEndpointURL, getEpMap, getEPRs, getExcludeInfo, getExposedTransports, getFileName, getGlobalDataLocator, getImportedNamespaces, getKey, getLastupdate, getLastUpdate, getMessageReceiver, getModuleConfig, getModules, getName, getNamespaceMap, getNameSpacesMap, getObjectSupplier, getOperation, getOperationByAction, getOperationByMessageElementQName, getOperationBySOAPAction, getOperations, getOperationsNameList, getP2nMap, getPortTypeName, getPublishedOperations, getSchema, getSchema, getSchemaElement, getSchemaMappingTable, getSchematargetNamespace, getSchemaTargetNamespace, getSchemaTargetNamespacePrefix, getScope, getServiceDescription, getServiceLifeCycle, getSoapNsUri, getTargetNamespace, getTargetNamespacePrefix, getTypeTable, getWSAddressingFlag, hasMessageContextListener, isActive, isClientSide, isCustomWsdl, isElementFormDefault, isEnableAllTransports, isExposedTransport, isModifyUserWSDLPortAddress, isSchemaLocationsAdjusted, isUseDefaultChains, isUseUserWSDL, isWsdlFound, loadDataLocator, lookupPolicy, mapActionToOperation, onDisengage, onEngage, populateSchemaMappings, populateSchemaMappings, printSchema, printUserWSDL, printWSDL, printWSDL2, printXSD, registerPolicy, releaseSchemaList, removeExposedTransport, removeMessageContextListener, removeOperation, setActive, setBindingName, setClassLoader, setClientSide, setCustomSchemaNamePrefix, setCustomSchemaNameSuffix, setCustomWsdl, setElementFormDefault, setEnableAllTransports, setEndpointName, setEndpointURL, setEpMap, setEPRs, setExcludeInfo, setExposedTransports, setFileName, setImportedNamespaces, setLastupdate, setLastUpdate, setMessageElementQNameToOperationMap, setName, setNamespaceMap, setNameSpacesMap, setObjectSupplier, setOperationsNameList, setP2nMap, setParent, setPortTypeName, setSchemaLocationsAdjusted, setSchemaMappingTable, setSchemaTargetNamespace, setSchematargetNamespacePrefix, setSchemaTargetNamespacePrefix, setScope, setServiceDescription, setServiceLifeCycle, setSoapNsUri, setTargetNamespace, setTargetNamespacePrefix, setTypeTable, setUseDefaultChains, setWSAddressingFlag, setWsdlFound, toString
 
Methods inherited from class org.apache.axis2.description.AxisDescription
addChild, addChild, addParameter, addParameter, addParameterObserver, applyPolicy, applyPolicy, deserializeParameters, disengageModule, engageModule, engageModule, getAxisConfiguration, getChild, getChildren, getDocumentation, getDocumentationNode, getEngagedModules, getParameter, getParameters, getParameterValue, getParent, getPolicyInclude, getPolicySubject, isEngaged, isEngaged, isParameterLocked, isParameterTrue, removeChild, removeParameter, removeParameterObserver, setDocumentation, setDocumentation, setParent, setPolicyInclude
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OUTGOING_SERVICE_CLIENT_PREFIX

public static final java.lang.String OUTGOING_SERVICE_CLIENT_PREFIX
The client service name prefix

See Also:
Constant Field Values

NOTIFY_OPERATION_NAME

public static final javax.xml.namespace.QName NOTIFY_OPERATION_NAME

GENERIC_OPERATION_NAME

public static final javax.xml.namespace.QName GENERIC_OPERATION_NAME
Constructor Detail

PetalsAxisService

public PetalsAxisService(java.lang.String name,
                         javax.jbi.component.ComponentContext componentContext,
                         org.ow2.petals.component.framework.jbidescriptor.generated.Consumes consumes,
                         org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions consumesExtensions,
                         java.lang.String localAddress,
                         PetalsReceiver petalsReceiver,
                         java.util.logging.Logger logger)
Creates a new instance of PetalsAxisService

Parameters:
name -
componentContext -
jbiEndpoint -
extensions -
Method Detail

printWSDL

public void printWSDL(java.io.OutputStream out,
                      java.lang.String requestIP)
               throws org.apache.axis2.AxisFault
Overrides:
printWSDL in class org.apache.axis2.description.AxisService
Throws:
org.apache.axis2.AxisFault

getLocalAddress

public java.lang.String getLocalAddress()
Returns:

getImportedDocuments

public java.util.Map<java.net.URI,org.w3c.dom.Document> getImportedDocuments(java.lang.String rootURI)
                                                                      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:
requestURI - the URL of the web service, typically http://..:8084/petals/services/MyWebService
Returns:
Throws:
org.apache.axis2.AxisFault

printWSDL2

public void printWSDL2(java.io.OutputStream out,
                       java.lang.String requestIP)
                throws org.apache.axis2.AxisFault
Overrides:
printWSDL2 in class org.apache.axis2.description.AxisService
Throws:
org.apache.axis2.AxisFault

getServiceEndpoint

public javax.jbi.servicedesc.ServiceEndpoint getServiceEndpoint()
Get the service endpoint. Try to retrieve if the endpoint name and service name has been specified, else try to get it if only the interface has been specified.

Returns:

getOperationMep

public java.util.Map<javax.xml.namespace.QName,java.net.URI> getOperationMep()
Returns:
the actionMep

getConsumesCDKExtensions

public org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions getConsumesCDKExtensions()
Returns:
the consumes related cdk extensions

getConsumes

public org.ow2.petals.component.framework.jbidescriptor.generated.Consumes getConsumes()
Returns:

getDescription

public org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.Description getDescription()
                                                                            throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault


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