You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by stlecho <st...@gmail.com> on 2007/07/02 14:10:15 UTC

Re: [Axis2 1.1.1] Exception generated based on wsdl:fault

All,

Is there a solution or workaround for this issue ?

Regards, Stefan Lecho. 


stlecho wrote:
> 
> Hi,
> 
> The WSDL that I am using in the development of a webservice contains a
> wsdl:fault element. Based on this element Axis2 v1.1.1 generates a
> StatussesException that inherits from Exception.
> 
> For pre-processing reasons, I have developed my own MessageReceiverInOut
> that inherits from AbstractInOutSyncMessageReceiver. I would like to use
> the StaussesException class in the MessageReceiverInOut, but the
> invokeBusinessLogic method throws an AxisFault. As a result I can not use
> the generated StatussesException in this method :-(.
> 
> Is there a way to change the generated StatussesException, so that it
> inherits from AxisFault ?
> 
> --------------- Extract WSDL - begin ---------------
> 
> <wsdl:portType ...>
> 		<wsdl:operation name="ping">
> 			<wsdl:input message="ns:pingIn"/>
> 			<wsdl:output message="ns:pingOut"/>
> 			<wsdl:fault name="FaultName" message="ns:Statusses"/>
> 		</wsdl:operation>
> 
> <wsdl:binding ...>
> 		<wsdl:operation name="ping">
> 			<soap:operation soapAction="ping"/>
> 			<wsdl:input>
> 				<soap:body use="literal"/>
> 			</wsdl:input>
> 			<wsdl:output>
> 				<soap:body use="literal"/>
> 			</wsdl:output>
> 			<wsdl:fault name="FaultName">
> 				<soap:fault name="FaultName" use="literal"/>
> 			</wsdl:fault>
> 		</wsdl:operation>
> 
> --------------- Extract WSDL - end ---------------
> 
> Regards, Stefan Lecho.
> 

-- 
View this message in context: http://www.nabble.com/-Axis2-1.1.1--Exception-generated-based-on-wsdl%3Afault-tf3876565.html#a11392819
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org