axis2 webservice 问题,高手进,急!!!!!!!!!!!!!!!!!!!!! 15
axis2部署能部署,而且部署的没问题,浏览器也能访问,但是在编写客户端访问代码时出现了下列错误:org.apache.axis2.AxisFault:Connectio...
axis2部署能部署,而且部署的没问题,浏览器也能访问,但是在编写客户端访问代码时出现了下列错误:
org.apache.axis2.AxisFault: Connection refused: connect
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:203)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:438)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:540)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:521)
at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:102)
at client.RPCClient.main(RPCClient.java:19)
url绝对没错,往高手指点 展开
org.apache.axis2.AxisFault: Connection refused: connect
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:203)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:438)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:540)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:521)
at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:102)
at client.RPCClient.main(RPCClient.java:19)
url绝对没错,往高手指点 展开
4个回答
展开全部
客户端用的WSDL中的http端口和路径对吗?类似下面这样的:
<soap:address location="http://localhost:8080/axis2/services/StockQuoteService" />
另外就是service部署不成功!
<soap:address location="http://localhost:8080/axis2/services/StockQuoteService" />
另外就是service部署不成功!
更多追问追答
追问
路径肯定是对的,部署也没问题,访问http://localhost:8080/service/listServices能列出我所部属的webservice应用,但就是在编写客户端访问程序时就出现上述错误,老是说访问被拒绝
追答
路径中少一个axis2吧?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
是不是数据库没有连接上或者数据库没有开
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
数据库没有连接上,我觉得应该是用户名或密码有问题,那看看tomcat的输出,有没有密码或用户名错误提示
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
连接被拒绝,看一下服务器设置,包括apache,或者数据库。
追问
apache有什么设置啊,就像普通的WEB程序一样部署的,还有其他的设置吗
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询