• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About FaultCode and Fault String in webservice (CXF framework)

 
Rohit Kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am gettig following error when I invoke web service in CXF framework.


Exception in thread "main" org.apache.cxf.binding.soap.SoapFault: Fault occurred while processing.
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:184)
.......


Any way to get exact reason / understandable message for this error?

Thnaks.
 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Get the SoapFault object this has all relavant method like getCodeString,getReason, etc

for more look at API http://cxf.apache.org/javadoc/latest/org/apache/cxf/binding/soap/SoapFault.html
 
Rohit Kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I checked with it. But still didn't get more information abt fault.
Any other way to do it?
Any s/w by which we can track such information?

Thanks.
 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use TCP monitor to capture your SOAP request and response. So that you can see all fault element content.

look at appache tcp monitor its good.

http://ws.apache.org/axis/java/user-guide.html#AppendixUsingTheAxisTCPMonitorTcpmon
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic