8

I am having an issue with the SOAP , when I call my services I get this error:

<faultstring>Fault occurred while processing.</faultstring> 

The following response is returned which doesn't give a clue where and why the error happens. How can I customize and show a proper detailed message to user so he/she know what they did wrong

I have gone through the CXF customization with outFaultInterceptors and inFaultInterceptors but I am not clear how I am gonna customize cxf.

Ronan Boiteau
  • 9,608
  • 6
  • 34
  • 56
Talha Bin Shakir
  • 2,563
  • 10
  • 38
  • 54

1 Answers1

4

This means that the web service framework is returning an unchecked exception. Try running the web service on a debugger to see where the exception is happening or wrapping the web service body inside an try/catch to print the stack trace.

Stihler
  • 114
  • 4
  • 1
    @JohnSaunders not CXF itself, it is supported by Java. I assume you have control over the web service implementation, so that you can debug the service while you make a request. Otherwise, there's not much you can do about it. – Stihler Dec 23 '11 at 20:10
  • Oh, didn't know this was a Java question. – John Saunders Dec 23 '11 at 20:13
  • Now that you mentioned it, I'm not sure about it. But as the author said he was dealing with CXF, I presumed that it was Apache CXF, wich runs on Java. – Stihler Dec 23 '11 at 20:18