【发布时间】:2010-11-11 09:25:02
【问题描述】:
我有一个需要接受 SOAP 作为输入参数的 web 服务方法。我曾在 .NET 客户端之间使用过 Web 服务,但我从未使用过原始 SOAP,所以我不知道该怎么做。输入格式如下:
<?xml version="1.0" encoding="utf-8"?>
<S:Envelope xmlns:S = "http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:RemoteService xmlns:ns2 = "some.ns.url">
<RemoteServiceInput>
<param1>123</param1>
<param2>Asd Qwe</param2>
<param3 xsi:nil = "true" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"/>
</RemoteServiceInput>
</ns2:RemoteService >
</S:Body>
</S:Envelope>
我的方法输入应该如何接受这个 SOAP 作为参数?
我使用的是 ASP.NET Web 服务而不是 WCF。
【问题讨论】:
标签: .net asp.net web-services soap