Pbe*_*rne 4 c# soap web-services
我们正在尝试创建一个我们计划向其传递可变数量变量的Web服务.
可以这样做吗?
基本上不是传递所有可能的参数,我们希望只传递设置值并使用web服务中设置的默认值.
以下是我们要发送的XML的示例,我们将根据所需的返回发送未知数量的函数.
<?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>
<WebMethod xmlns="http://tempuri.org/">
<domains>
<function1>
<title>Some Title</title>
<type>25</type>
</function1>
<function2 />
<function3>
<param>13</param>
</function3>
</domains>
</WebMethod>
</soap:Body>
</soap:Envelope>
Run Code Online (Sandbox Code Playgroud)
这会起作用还是我们应该采用不同的方式?
| 归档时间: |
|
| 查看次数: |
1695 次 |
| 最近记录: |