WCF Java客户端中的javax.xml.ws.soap.SOAPFaultException

时间:2015-02-24 06:26:48

标签: java c# web-services wcf soap

我正在为C#web服务/ WCF开发Java客户端。通过我的Java客户端访问该函数时,我得到javax.xml.ws.soap.SOAPFaultException。我是java家伙,我对C#一无所知。 我无法找到问题。请帮助。

提前致谢。

我的代码是

Service1 service1=new Service1();
IService1 iService1=service1.getBasicHttpBindingIService1();
System.out.println("-->>  "+iService1.getData(10));  // this function works fine
System.out.println("-->>  "+iService1.devicePNP(100)); // error line

错误说明/堆栈跟踪

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 SDK documentation and inspect the server trace logs.
at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(Unknown Source)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source)
at com.sun.proxy.$Proxy30.devicePNP(Unknown Source)
at demo.Check.main(Check.java:34)

0 个答案:

没有答案