Remko,
You don't have to return a Document in order to
ensure language-neutrality. The whole point of SOAP and WSDL is to provide a
layer of abstraction between your object model and your message structure that
ensures language-neutrality. Axis lets you return whatever your application
would like to return, and then Axis will convert that return into a document for
you. No matter how you define your service (RPC or Document -- whether you
marshal the message or you let Axis marshal the message), the client SOAP
processing engine (e.g., .NET, MS SOAP, PocketSOAP, SOAP::Lite, Axis, etc) will
receive a document, and that SOAP processing engine can automatically transform
that document into the appropriate language objects on the client side (VB, C#,
Java, Perl, etc).
It's fine if you want your application to work
directly with the XML -- the Axis Messaging style lets you do so -- but I want
to make sure that you understand that you don't have to do so to ensure
language-neutrality.
When you return a fault, you don't return a
response message -- you return a fault message. Axis can automatically capture
an exception and return that exception to the client in a fault message, but
that doesn't help much if the client isn't Java. Therefore you need to define a
fault message for each of your exceptions, and then tell Axis to map the
exceptions to the faults accordingly.
Anne
|
- Multipart related mime parts throws null pointer except... George Jagodzinski
- RE: Message Style and WSDL Bhanu Pabreja
- Re: Message Style and WSDL remko de knikker
- RE: Message Style and WSDL Bhanu Pabreja
- exception on testing Axis Service Samir Shaikh
- Exception handling strategy question remko de knikker
- RE: Exception handling strategy questi... George Jagodzinski
- Re: Exception handling strategy questi... Anne Thomas Manes
- RE: Exception handling strategy questi... George Jagodzinski
- Re: Exception handling strategy questi... remko de knikker
- Re: Exception handling strategy questi... Anne Thomas Manes
- Re: Exception handling strategy questi... remko de knikker
- Re: Exception handling strategy questi... Anne Thomas Manes
- Re: Exception handling strategy questi... Tony Opatha
- Re: Exception handling strategy questi... Tony Opatha
- Re: Exception handling strategy questi... remko de knikker
- Re: Exception handling strategy questi... Anne Thomas Manes
- Re: Message Style and WSDL remko de knikker
- RE: Message Style and WSDL Bhanu Pabreja