【发布时间】:2009-07-15 09:42:13
【问题描述】:
我正在与服务器网站的技术联系人交谈,他希望我使用 Visual Studio,而我只想手写脚本。有关我需要生成的 SOAP 请求,请参见下文。 (我已经用一个虚拟的 URL 替换了实际的 URL)。正如您可能猜到的那样,我对 ASP 和 SOAP 还很陌生,我尝试在 Google 上搜索一个示例脚本。
POST /PropertySearchService.asmx HTTP/1.1
Host: portal.someurl.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetBranches xmlns="http://portal.someurl.com">
<strClientID>string</strClientID>
</GetBranches>
</soap12:Body>
</soap12:Envelope>
【问题讨论】: