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)
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.