0
我正在嘗試在蜻蜓JEE應用程序內部構建SOAP客戶端。我直接使用CXF。我使用的WSDL2Java生成SOAP客戶端,並使用客戶端是這樣的:Wildfy中的Apache CXF Soap客戶端
ServicePortTypeV1 servicePortV1 = new ServiceV1().getServicePortV1();
後來我試圖調用不工作
最後我得到下面的異常的方法:
Caused by: java.lang.NullPointerException
at org.apache.cxf.transport.http.URLConnectionHTTPConduit.createConnection(URLConnectionHTTPConduit.java:104)
at org.apache.cxf.transport.http.URLConnectionHTTPConduit.setupConnection(URLConnectionHTTPConduit.java:117)
at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:497)
at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:13
看起來地址爲空。但我不知道爲什麼?任何人都可以幫助我嗎?
你能分享WSDL嗎? – Namphibian