Q
qiusj
Unregistered / Unconfirmed
GUEST, unregistred user!
通过.net vs2005自己生成的客户端在调用web service时生成的SOAP XML是这样的<br>
<br>这时在web service中可以正常取得PDAuth的值<br><br>在delphi7中通过HTTPRIO控件生成的SOAP XML是这样的<br>
<br>这时在web service中PDAuth的值都是NULL[]<br>谁有碰到同样的问题吗?该如何解决
代码:
<?xml version="1.0"? encoding="utf-8"?><br><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"><br><soap:Header><br><PDAuth xmlns="http://tempuri.org/"><br><CompanyID>2</CompanyID><br><AuthCode>A6ACMHB1KEC5P9NA</AuthCode><br><ClientCode>4459J64G25G68QV7ZJR8</ClientCode><br></PDAuth><br></soap:Header><br><soap:Body><br><GetProduct xmlns="http://tempuri.org/"><br><lastUpdateTime>2006-03-09T10:27:35.625+08:00</lastUpdateTime><br></GetProduct><br></soap:Body><br></soap:Envelope>
代码:
<?xml version="1.0"?><br><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><br><SOAP-ENV:Header SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:NS1="http://tempuri.org/"><br><NS1:PDAuth><br><CompanyID>2</CompanyID><br><AuthCode>A6ACMHB1KEC5P9NA</AuthCode><br><ClientCode>4459J64G25G68QV7ZJR8</ClientCode><br></NS1:PDAuth><br></SOAP-ENV:Header><br><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><br><NS2:GetArea xmlns:NS2="http://tempuri.org/"/><br></SOAP-ENV:Body><br></SOAP-ENV:Envelope>