axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: [AXIS2] Throwing exceptions with ADB
Date Tue, 05 Jun 2007 13:11:52 GMT
Fran,

Did you try "-g" option in wsdl2java when generating the client?

thanks,
dims

On 6/5/07, Fran <fcocuadrado@gmail.com> wrote:
> Hi, list!
>
> I have a problem throwing Exceptions from service to client, using ADB.
>
> I create a service with Exceptions in some methods, I compile this
> class and I create WSDL with Java2WSDL tool. In this WSDL I change
> these lines:
>
> <xs:element name="MyFault">
>        <xs:complexType>
>                <xs:sequence>
>                        <xs:element name="message" type="xs:string" />
>                </xs:sequence>
>        </xs:complexType>
> </xs:element>
>
> So I can send a message to client in the fault, also I change the
> services.xml file adding Faults to the respective methods.
>
> And now I compile service like I do before change WSDL and all is ok,
> but when I try to compile client, the client hasn't got the file of
> MyFault class, it has only MyFaultException class.
>
> My doubt is, do I have to copy manually the Fault class files? The
> WSDL2Java tool has an option to create Fault class files in client
> side, like it does in service side?
>
> Thanks a lot!
>
> --
> Saludos
>
> Fran
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
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