Skip to Content
0
Former Member
Jul 24, 2008 at 05:09 PM

How to access SOAP fault in webservice dynpro model

25 Views

Hi

I have a webservice which throws at certain circumstances a soap fault. I have created an adaptive webservice model for this webservice but I am unable to get the soap fault.

Until now I have tried these approaches:

1) Creating a complete request model and bind it to the controller context before calling the webservice over request.execute()

2) Catching the SOAPFaultException before catching the WDWSModelExecuteException. It never goes inside the SOAPFaultException, the only exception gets thrown by request.execute() is the WDWSModelExecuteException.

3) Get a SOAPFaultException over the WDWSModelExecuteException ex, ex.getSOAPFault(). Unfortunately the returned object (from type SOAPFault) is always null

At the moment I do not have any further approach to get the soap fault. Can someone explain me the right way to get the fault information?

Thanks a lot

Thierry