请问一下web Service 调用WCF 服务的有关问题

请教一下web Service 调用WCF 服务的问题
本帖最后由 likeyrain 于 2013-08-06 18:52:40 编辑
大家好:
    请教一下WCF 调用的问题,用SOAPUI调用的XML是这样,执行正常
<soapenv:Body>
<tem:GetCustServicePkgHistMessage>
<!-- Optional:-->
<tem:CustomerID>7AD215AE-998C-E211-B1BC-00155D07A40B</tem:CustomerID>
<!-- Optional:-->
<tem:Status>1</tem:Status>
</tem:GetCustServicePkgHistMessage>
</soapenv:Body>

但用eclipse调用,调用的XML如下,程序则解释不到,
<soapenv:Body>
<GetCustServicePkgHistMessage xmlns="http://tempuri.org/">
<GetCustServicePkgHistMessage>
<CustomerID>7AD215AE-998C-E211-B1BC-00155D07A40B</CustomerID>
<Status>1</Status>
</GetCustServicePkgHistMessage>
</GetCustServicePkgHistMessage>
</soapenv:Body>

感觉是服务端的设置不对,解释不到这个空间(http://tempuri.org/),想请教一下,这个空间应该怎样设置?

先谢谢大家!!
WCF  XML

------解决方案--------------------
wcf 有wsdl呀。java 利用wsdl2java 可以生成客户端代理直接调用。


------解决方案--------------------
lz的感觉是对的,用soapui调用太会解析你的wsdl生成服务端能解析的数据格式,你用eclipse调用应该是你强制加上了namespace约束,而你的服务却没有这个约束导致调用后服务解析不到