使用WebService客户端的异常。(MyEclipse)

时间:2010-09-01 06:27:42

标签: java web-services eclipse java-ee

我试图通过MyEclipse使用我的wsdl生成Web服务客户端。

我有自动生成的类,我得到了这个自动生成的示例:

/ **  *此类由JAX-WS RI生成。 JAX-WS RI 2.1.3-hudson-390-  *生成的源版本:2.0  *

 *如何使用此类的示例:  *  *

 * MibasBillingQueryNew service = new MibasBillingQueryNew();
 * MibasBillingQueryNewSoap portType = service.getMibasBillingQueryNewSoap();
 * portType.mibasBillingQuery(...);
 * 
 *  *

 *  * /

在我尝试按照此示例并将其应用于我的代码后,我尝试了这个:

        MibasBillingQueryNew service = new MibasBillingQueryNew();

MibasBillingQueryNewSoap portType = service.getMibasBillingQueryNewSoap();

        String mibasResult=portType.mibasBillingQuery(password,
 parentProcessId, msg);

现在,在我尝试使用此Web服务帐户之后,这是我得到的例外:

 javax.xml.ws.soap.SOAPFaultException: 
    Unhandled process exception

at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:188)  at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:116)  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)  at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)  在com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)  在$ Proxy34.mibasBillingQuery(未知来源)  在com.mirs.contentPackage.utils.MibasUtils.mibasRequestAdd(MibasUtils.java:132)  在com.mirs.contentPackage.wap.PackageDisclaimerAck.execute(PackageDisclaimerAck.java:95)  在com.mirs.contentPackage.wap.PackageDisclaimerAck.doGet(PackageDisclaimerAck.java:64)  在javax.servlet.http.HttpServlet.service(HttpServlet.java:617)  在javax.servlet.http.HttpServlet.service(HttpServlet.java:717)  在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)  在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)  在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)  在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)  在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)  在org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)  在org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process(Http11Protocol.java:588)  在org.apache.tomcat.util.net.JIoEndpoint $ Worker.run(JIoEndpoint.java:489)  在java.lang.Thread.run(Thread.java:619)

有什么想法吗?

谢谢, 射线。

1 个答案:

答案 0 :(得分:1)

问题解决了,服务器不支持jax,所以我通过Axis编译客户端