C# SOAP web服务,在不编辑代码的情况下更改命名空间?
我是否能够在不编辑代码的情况下更改所有SOAP web服务方法中的命名空间 这条线C# SOAP web服务,在不编辑代码的情况下更改命名空间?,c#,asp.net,web-services,soap,namespaces,C#,Asp.net,Web Services,Soap,Namespaces,我是否能够在不编辑代码的情况下更改所有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.o
<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>
一串
一串
一串
据我所知,您不能更改名称空间,它是在类和方法的上下文中设置的。即使你以某种方式从另一个包装了这个,它仍然会覆盖。您唯一的选择是代理消费者。web服务是用什么语言创建的?它是用C#编写的,但我无法编辑代码:(为什么不自己制作一个使用该服务的服务呢?我想可以这样做,如果这是唯一的方法的话-只需要多一点时间。