【发布时间】:2011-09-05 16:01:33
【问题描述】:
我是否能够更改所有 SOAP Web 服务方法中的命名空间,无需编辑代码?
这一行……
<ConfirmIdentity xmlns="http://www.domain.com"> ?
这可能吗?
<?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>
<ConfirmIdentity xmlns="http://www.domain.com">
<ConfirmIdentityRequest>
<ApplicationCrediential>
<API_Username>string</API_Username>
<API_Password>string</API_Password>
</ApplicationCrediential>
<SessionId>string</SessionId>
</ConfirmIdentityRequest>
</ConfirmIdentity>
</soap:Body>
</soap:Envelope>
【问题讨论】:
-
网络服务是用什么语言创建的?
-
它在 C# 中,但我无法编辑代码:(
-
为什么不自己做一个消耗那个的呢?
-
我想可以这样做,如果这是唯一的方法 - 只是需要更多时间。
标签: c# asp.net web-services soap namespaces