【发布时间】:2018-06-28 16:45:40
【问题描述】:
调用 web 服务时出现以下错误。只是提到它在 Eclipse 上运行时与 tomcat 一起工作得很好。但是在 websphere application server 9.0 上使用时出错。在 WAS9 上运行时我还有什么需要注意的吗?
这是我的一段代码:
SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
SOAPConnection soapConnection = soapConnectionFactory.createConnection();
SOAPMessage soapResponse = soapConnection.call(soapRequestMessage, Url);
日志:
javax.xml.soap.SOAPException:
java.lang.reflect.InvocationTargetException
at com.ibm.ws.webservices.engine.soap.SOAPConnectionImpl.callJAXWSDispatch(SOAPConnectionImpl.java:421)
at com.ibm.ws.webservices.engine.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:192)
at com.ibm.ws.webservices.engine.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:163)
at com.service.ClientService.callSoapWebService(ClientService.java:46)
【问题讨论】:
标签: java web-services soap websphere