日期:2014-05-20  浏览次数:20688 次

[1000分]xfire调用jdk1.6发布的webservices,服务端参数无法接收,怎么解决?
服务端是jdk1.6自带的webservice的功能发布的
客户端是xfire生成的

现在客户端调用服务端可以调用,但服务端接收到参数为null,不报错

抓取报文如下
XML code
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><ns1:queryCsdn xmlns:ns1="http://ws.csdn.common.um.com/"><ns1:arg0>0000000001</ns1:arg0><ns1:arg1>1111111</ns1:arg1><ns1:arg2 xsi:nil="true" /><ns1:arg3 xsi:nil="true" /><ns1:arg4>13888888888</ns1:arg4><ns1:arg5 xsi:nil="true" /><ns1:arg6 xsi:nil="true" /><ns1:arg7 xsi:nil="true" /></ns1:queryCsdn></soap:Body></soap:Envelope>


以下是1.6生成的客户端调用报文
XML code
<?xml version="1.0" ?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://ws.csdn.common.um.com/"><soapenv:Body><ns1:queryCsdn><arg0>0000000001</arg0><arg1>111111</arg1><arg4>13888888888</arg4></ns1:queryCsdn></soapenv:Body></soapenv:Envelope>


<ns1:arg0>, <arg0>这是他们不同的地方
有人知道怎么解决吗,1000分另开帖送



------解决方案--------------------
第二个报文是服务端抓取的吗?
第一个报文是客户端产生的?
客户端和服务在一台机器?


------解决方案--------------------
没写过这样的代码,帮顶一下!
------解决方案--------------------
CSDN调用Webservcie出问题了...

服务端用什么生成的webservice?

建议用生成服务端的技术生成客户端。因为不保证俩种webservice技术中间会出现不兼容的问题。

还有问题现在可以定位到是在参数在网络传输种产生的问题,检查一下网络的环境,是不是设置了一些代理、IP 、 端口限制之类的问题。