Here's what I did:
Since the ..invoke() call throws a RemoteException
I used


... throws RemoteException {
try {
...
}
catch (RemoteException e1) {
sb1 = MessageContext.getCurrentContext().getResponseMessage().getSOAPPart().getEnvelope().getBody();
SOAPFault fault = sb1.addFault();
fault.setFaultString("RemoteException: " + e1.getMessage());
fault.setFaultCode("Client");
throw e1;
}



Since I am using SOAP 1.1 which implements the SOAPFault codes differently than SOAP 1.2
check to make sure which SOAP version you are using, because of mandatory elements and values.
for SOAP 1.1:
http://www.w3.org/TR/SOAP/


I created a Handler, I can send the code if you want me to, but am not doing anything with it, with regard to Exceptions, but you could of course.


Bhanu Pabreja wrote:


Well I saw this thread in the mail archive ... so got to ask a question.

Like remo i have a similar kind of service (message style) with only once
service operation exposed

Document fetchData(Document doc) throw AxisFault{}

Now Remo you must have implemented your exception handling already which
seems to be interoperatable as per your comments.

Can you please post me some sample code how you implemented the same.

Thanx a ton.

dumdum420.











Reply via email to