axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pär Malmqvist" <par_malmqv...@hotmail.com>
Subject AxisFault problem Axis2.1.1
Date Fri, 24 Nov 2006 12:04:13 GMT
<html><div style='background-color:'><DIV class=RTE>
<P>Hello!</P>
<P>I have a web service deployed on Axis2.1.1, Tomcat 5.5.20 and Java 1.5.</P>
<P>When the service gets an inparameter that is invalid the service throws a specific
exception, MyErrorException, to return&nbsp;error messages to the client.<BR><BR>When
I use Axis1.2.1 MyErrorException appears inside the AxisFault exception in the detail field.</P>
<P>When I use Axis2.1.1 I get the following response:</P>
<P>&lt;?xml version='1.0' encoding='utf-8'?&gt;<BR>&lt;soapenv:Envelope
xmlns:soapenv="<A href="http://www.w3.org/2003/05/soap-envelope">http://www.w3.org/2003/05/soap-envelope</A>"&gt;<BR>&nbsp;
&lt;soapenv:Header /&gt;<BR>&nbsp; &lt;soapenv:Body&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;soapenv:Fault&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;soapenv:Code&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;soapenv:Value&gt;soapenv:Sender&lt;/soapenv:Value&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/soapenv:Code&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;soapenv:Reason&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;soapenv:Text xml:lang="en-US"&gt;Exception occurred while trying to invoke service
method myMethod&lt;/soapenv:Text&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/soapenv:Reason&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;soapenv:Detail&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&lt;/soapenv:Detail&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/soapenv:Fault&gt;<BR>&nbsp;
&lt;/soapenv:Body&gt;<BR>&lt;/soapenv:Envelope&gt;</P>
<P>The detail field is empty and MyErrorException is not there.</P>
<P>So, is this just a question of deploying my service the right way or is this a bug
in Axis2.1.1?</P>
<P>What do you think?</P>
<P>/Pär </P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P><BR><BR>&nbsp;</P>
<DIV></DIV><FONT color=#000000></DIV>
<DIV></DIV></FONT></div><br clear=all><hr>Express yourself
instantly with MSN Messenger! <a href="http://g.msn.com/8HMBEN/2743??PS=47575" target="_top">MSN
Messenger</a> Download today it's FREE!</html>


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


Mime
View raw message