Axis WSDD Reference: fault

Can be used in

operation

Description

Metadata about exceptions can be provided using the fault element.
<service name="PurchaseService" 
         provider="java:RPC"
	 xmlns:ns="http://osmoticweb.com/PurchaseService/"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <parameter name="className" value="com.osmoticweb.axisdemo.PurchaseService"/>
    <operation qname="ns:orderItem"
	       returnType="xsd:boolean"
               returnQName="ns:orderItemResponse">
        <fault qname="ns:OutOfStockException" 
	       type="ns:OutOfStockExceptionType"
	       class="com.osmoticweb.OutOfStockException"/>
    </operation>
</service>

Attributes

NameMandatoryDefaultDescriptionExamples
namenoClassname of the exception without the packageName of the fault used for the portType and binding in generated WSDLOutOfStockException
qnameno-Qualified name used as part name of a fault message in WSDLimpl:OutOfStockFault
classyes-Class name of the exception belonging to the faultcom.osmoticweb.OutOfStockException
typenoClassname of the exception without the packageSchema type used for the faultOutOfStockExceptionType

Index

Provided by Orientation in Objects