【发布时间】:2014-11-07 09:59:36
【问题描述】:
我创建了一个简单的 Web 服务来接收数据,但是我缺少一个来自客户端 SOAP 示例的元素,我似乎无法模拟。
下面是我的带有示例 SOAP 布局的 Web 服务:
[WebMethod]
public void ReceiveStatusUpdate(string Reference, string ThirdPartyReference, string Status)
{
}
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ReceiveStatusUpdate xmlns="http://tempuri.org/">
<Reference>string</Reference>
<ThirdPartyReference>string</ThirdPartyReference>
<Status>string</Status>
</ReceiveStatusUpdate>
</soap:Body>
</soap:Envelope>
下面是他们的 SOAP 示例,其中有一个名为 StatusUpdate 的元素:
<?xml version="1.0" encoding="utf-8"?>
<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>
<ReceiveStatusUpdate xmlns="http://tempuri.org/">
<StatusUpdate>
<Reference>zzzz</Reference>
<ThirdPartyReference>yyyy</ThirdPartyReference>
<Status>xxxx</Status>
</StatusUpdate>
</ReceiveCL4UStatusUpdate>
</soap:Body>
</soap:Envelope>
谁能解释一下我需要补充什么:-)
【问题讨论】:
标签: c# asp.net web-services soap