axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yuriy Zubarev <>
Subject Development with Message style
Date Thu, 19 Jun 2003 04:13:41 GMT
Hello everyone,

I'm developing a SOAP service using Message style (the XML schema has been
imposed on me, so Soap Body must be of certain format) and I have the
following method in my service class:

public Document processOrder(Document request) {

The main problem is that based on some conditions I don't need to process
an order but to throw AxisFault so that client can catch it and act
accordingly. Unfortunately throwing AxisFault from the method above
doesn't have any effect on the client - it just receives empty (null)
response and that's it.

I was wondering what people do when they work with Message style services
and there is a need to throw an exception. Do I have to create Document
that would represent an exception and just return it? If so, then what is
a XML schema for such a document? Or may be there is an easy way that I
just don't know.

Thank you for your time,
Yuriy ZUbarev

Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

View raw message