2011-12-17 33 views
5

我創建了Axis2 1.6 Webservice Client,我可以製作wsdl2java。但是,當我運行我的程序。它表明這個錯誤?..無法將ViaPost發送到Axis2中的url 1.6

[INFO] Unable to sendViaPost to url[http://10.53.1.187:7782//rest/UVSInterface_Extend] 
org.apache.axis2.AxisFault: Transport error: 404 Error: /error/error404.jsp 
at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:310) 
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194) 
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) 
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404) 
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231) 
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) 
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) 
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) 
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) 
at com.huawei.bme.winuvsinterface.UVSInterface_ExtendStub.manualRecharge(UVSInterface_ExtendStub.java:14628) 
at access.KitRecharge.main(KitRecharge.java:113) 
org.apache.axis2.AxisFault: Transport error: 404 Error: /error/error404.jsp 
at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:310) 
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194) 
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) 
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404) 
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231) 
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) 
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) 
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) 
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) 
at com.huawei.bme.winuvsinterface.UVSInterface_ExtendStub.manualRecharge(UVSInterface_ExtendStub.java:14628) 
at access.KitRecharge.main(KitRecharge.java:113) 
+0

傳遞的參數是無效的,而且它創建調用與空或無效參數的服務時,問題.. – Lucky 2013-06-24 14:25:17

+0

是它可能在某處捕獲此錯誤並阻止打印整個堆棧跟蹤? – Danijel 2014-02-25 15:52:42

回答

0

一個404錯誤表明你的目標URL是錯誤的。確保您將請求發送到正確的服務網址。

0

我得到了同樣的錯誤,我在Eclipse中所做的是:

  • Stop servlet容器(在我的情況下,Tomcat)

  • 右鍵單擊包含Web服務的Java類的方法實現 和選定Run - >Run on Server

  • Axis2 web service page出現在編碼視圖

然後跑了Web服務客戶端類作爲一個Java應用程序,一切都很好