It's not a secret anymore!
The moose likes Web Services and the fly likes Getting SOAPFaultException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Getting SOAPFaultException" Watch "Getting SOAPFaultException" New topic

Getting SOAPFaultException

jigar babaria

Joined: Jun 04, 2010
Posts: 7
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" 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 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)

Jigar Babaria
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
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!

My free books and tutorials:
I agree. Here's the link:
subject: Getting SOAPFaultException
It's not a secret anymore!