Axis WSDD Reference: service

Can be used in

deployment, undeployment

Description

The service element can be used to deploy or undeploy a service. The following deployment descriptor contains an RPC service named PurchaseService. The class com.osmoticweb.axisdemo.PurchaseService is used as service implementation. The order and cancel methods are exposed as SOAP operations.
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
    <service name="PurchaseService" 
             provider="java:RPC"
             style="document"
             use="literal">
        <parameter name="className" value="com.osmoticweb.axisdemo.PurchaseService"/>
        <parameter name="allowedMethods" value="order, cancel"/>
        <namespace>http://osmoticweb.com/Purchase</namespace>
    </service>
</deployment> 

In the following deployment descriptor a service with the name spprovider is undeployed.

<undeployment xmlns="http://xml.apache.org/axis/wsdd/">
    <service name="spprovider"/>
</undeployment>
Handlers can be invoked before and after the execution of a service.

Attributes

NameMandatoryDefaultDescriptionExamples
nameyes-Name of the service.PurchaseService
provideryes-Name of the provider used for this service. The name must be in the xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" namespacejava:RPC, java:EJB, java:RMI, java:MSG, ...
stylenorpcDetermines the structure of the soap body.rpc, document, wrapped, message
usenoencodedMessage encodingencoded, literal
attachmentnoMIMEFormat for attachmentsNONE, MIME, DIME

Childs

NameCardinalityDescription
beanMapping0...*Local typemapping with the scope of this service. The typemapping is not visible to other services. The element beanMapping is a simplified form of a typeMapping.
typeMapping0...*Local typemapping with the scope of this service. The typemapping is not visible to other services.
endpointURL0...1Endpoint URL for the service in generated WSDL
namespace0...*Namespace for the target namespace in generated WSDL
operation0...*Metadata describing an operation with faults, parameter names and modes.
requestFlow0...*The handlers of this chain are invoked before the service handler
responseFlow0...*The handlers of this chain are invoked after the service handler
handlerInfoChain0...1JAX-RPC handler
documentation0...1Description of the service. Since Axis 1.2 the documentation is included in generated WSDL.
wsdlFile0...1Location of a WSDL document that is returned instead of generated WSDL

Index

Provided by Orientation in Objects