关于webservice客户端调用的问题

hao_neverstop 2014-01-06 10:50:25
我用wsdl2java生成客户端,里边有3个方法,其中调用1个方法报

Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: No operation name specified!
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:No operation name specified!
at org.apache.axis.client.Call.invoke(Call.java:1809)
at com.cjy.webservice.client.PisServiceSoapBinding_BindingStub.pis_executeinfo_bysend(PisServiceSoapBinding_BindingStub.java:126)
at com.cjy.webservice.client.Test.main(Test.java:23)

{http://xml.apache.org/axis/}hostname:hao-PC

No operation name specified!
at org.apache.axis.client.Call.invoke(Call.java:1809)
at com.cjy.webservice.client.PisServiceSoapBinding_BindingStub.pis_executeinfo_bysend(PisServiceSoapBinding_BindingStub.java:126)
at com.cjy.webservice.client.Test.main(Test.java:23)


另外2个报的错和这个不一样

Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> System.IO.FileNotFoundException: 未能加载文件或程序集“System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统找不到指定的文件。
文件名:“System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”
在 PIWeb.webservices.pis_interface.pis_checkstate_executeinfo(String bwlsh)

警告: 程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)设置为 1。
注意: 会有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。

--- 内部异常堆栈跟踪的结尾 ---
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> System.IO.FileNotFoundException: 未能加载文件或程序集“System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统找不到指定的文件。
文件名:“System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”
在 PIWeb.webservices.pis_interface.pis_checkstate_executeinfo(String bwlsh)

大家帮看下这是什么原因,因为我调用的别人的webservice所以不知道是不是因为别人发布的接口有问题导致的。看看这2个错误都是什么意思,怎么到导致的,该怎么解决啊?
...全文
184 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
panzhixiong_cn 2014-01-07
  • 打赏
  • 举报
回复
貌似是你的调用方法有问题,你可以用SOAPUI试一下,能不能调用成功。

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧