服务端是jdk1.6自带的webservice的功能发布的
客户端是xfire生成的现在客户端调用服务端可以调用,但服务端接收到参数为null,不报错抓取报文如下
<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 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分另开帖送
客户端是xfire生成的现在客户端调用服务端可以调用,但服务端接收到参数为null,不报错抓取报文如下
<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 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分另开帖送
解决方案 »
- 关于整合spring和struts2
- valuelist的计算问题
- 从xml里面得到一个对象,得到后应该如何起接收,如何解析出来
- 求助J2EE包加载冲突问题
- 关于hibernate.cfg.xml怎么样也找不到?太奇怪了..
- 请进,你有意外的欣喜!~
- 如何将一个外部文件打包到一个xml文件中
- struts初学,想问一下,如果不用struts自己的表单验证方式行吗?(初级问题,请大家帮帮我)
- JDBC For SQLServer我安装了,也设置好了但下面这段代码就是连不上数据库,请大家给帮忙看看。。。谢谢了!
- java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient
- 大家工作几年了,我工作快两年了工资
- Struts整合Hibernate的问题
jdk1.6的客户端访问不是正常的吧?
客户端是xfire生成的,客户端是jdk1.5的,不能升级为1.6
跟网络无关
jdk1.6的客户端访问是正常的
还有你说"现在客户端调用服务端可以调用,但服务端接收到参数为null"
也就是能接收到客户端请求,但是只是参数为空,
而刚才你又说“xfire生成的客户端访问服务是不正常,参数在服务端无法接收”
这里是不是参数也为空的意思?
jdk1.6的客户端跟服务端是两台机器,调用正常xfire的客户端跟服务端是两台机器,服务端接收到参数为null这样说明白吗
不知道xfile的数据绑定是哪种?
你说的帮定是这个玩意吗?
数据绑定是XML和对象转化
@XmlAccessorType(XmlAccessType.FIELD)
JAXB 绑定类中的每个非静态、非瞬态字段将会自动绑定到 XML,除非由 XmlTransient 注释。 只在用一些 JAXB 注释来显式注释字段时,getter/setter 对才绑定到 XML。
使用 CXF 或者 AXIS2之类的。
这样来缩小范围。
能否提供wsdl?
请问到底有几个参数呢?