Axis 1.X 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" namespace

java:RPC, java:EJB, java:RMI, java:MSG, ...
stylenorpc

Determines the structure of the soap body.

rpc, document, wrapped, message
usenoencoded

Message encoding

encoded, literal
attachmentnoMIME

Format for attachments

NONE, 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...1

Endpoint 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...1

JAX-RPC handler

documentation0...1

Description of the service. Since Axis 1.2 the documentation is included in generated WSDL.

wsdlFile0...1

Location of a WSDL document that is returned instead of generated WSDL


Index

Provided by Orientation in Objects