Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting SOAPFaultException

 
jigar babaria
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am calling a web-service from a java class. While calling the web-service I am getting the following error message.

Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

Here is the code in test.java which calls the getInspectionData() webservice. (Also, Is my code to invoke the web-service correct ? Because this is the first time I am writing the code to invoke the web-service)


regards,
Jigar Babaria
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
The SOAPFaultException is a general exception indicating that a fault was the result of the last request.
The fact that there is a fault means that the service has responded to the request, albeit with a fault.
I would suggest that you try to send requests to the service using soapUI to verify that the service indeed work as expected.
If soapUI succeeds and your client fails, then the problem is with your client.
Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic