当前位置:编程学习 > JAVA >>

.net 调用java开发的webservice服务器

  最近有个项目需要做webservice,我是用java做的服务端,供其他公司的项目调用,如果对方是java开的客户端则调用没有问题,如果对方是.net开发的客户,则返回null.  我在服务端返的只是普通的字符串也是为空  --------------------编程问答-------------------- 这是传入的值<?xml version="1.0" encoding="utf-16"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <name1 xmlns="http://service.webservice.vtradex.com">3333</name1>
  </soap:Body>
</soap:Envelope>

这是返回的值
ResponseCode: 200 (OK)
Connection:close
Content-Type:text/xml; charset=utf-8
Date:Sat, 08 Jun 2013 13:16:52 GMT
Server:Jetty/5.1.10 (Windows Vista/6.1 x86 java/1.6.0_13

<?xml version="1.0" encoding="utf-16"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <name1Return xmlns="http://service.webservice.vtradex.com">3333</name1Return>
  </soapenv:Body>
</soapenv:Envelope>

两个好像节点不一样,一个是soap:Envelope  返回的却是soapenv:Envelope 
哪们大侠教一下啊
补充:Java ,  Java相关
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,