用java做webservice的时候,出现难解的异常
Exception in thread "main" org.codehaus.xfire.XFire
RuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: org.apache.axis.types.URI$MalformedURIException: No scheme found in URI.
org.codehaus.xfire.fault.XFireFault: org.apache.axis.types.URI$MalformedURIException: No scheme found in URI.
at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)
at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)
at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Client.onReceive(Client.java:406)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
at org.codehaus.xfire.client.Client.invoke(Client.java:336)
at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy13.sendSms(Unknown Source)
at clinet.cmcc_mas_wbsClient.main(cmcc_mas_wbsClient.java:125)
------解决方案--------------------你没重新部署一下吗,我以前也遇到过这个问题,
------解决方案--------------------1. 确认你的web service是否已经deploy起来了
2. 确认你调用webservice的url是否正确
------解决方案--------------------WSDL文档???
------解决方案--------------------下载一个soapUI,通过这个来测试你的某一个webservice是否正常
------解决方案--------------------你这是客户端报的错吗,
正常顺序是,先开发好服务端,调用看到wsdl描述文件,再写客户端
Could not invoke service
这个错误有很多地方可能出现
------解决方案--------------------百度之
------解决方案--------------------
恭喜楼主!![img=http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/46.gif][/img]