C# 无法在C中生成的服务引用中添加soap消息正文xml命名空间前缀#
我正在为接受SOAP消息的基于Java的Web服务创建C#WCF客户端。 我从给定的WSDL文件创建了ServiceReference,并使用它在SOAP消息体下面创建了它C# 无法在C中生成的服务引用中添加soap消息正文xml命名空间前缀#,c#,.net,wcf,C#,.net,Wcf,我正在为接受SOAP消息的基于Java的Web服务创建C#WCF客户端。 我从给定的WSDL文件创建了ServiceReference,并使用它在SOAP消息体下面创建了它 <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <getKey xmlns="http://********">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<getKey xmlns="http://********">
<arg0 xmlns="">
<appName>ABC</appName>
<uniqueId>1</uniqueId>
</arg0>
</getKey>
</s:Body>
基础知识
1.
其中,作为Java webservice,除了仅具有命名空间前缀的getKey元素,如下所示
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ns:getKey xmlns:ns="http://********">
<arg0 xmlns="">
<appName>ABC</appName>
<uniqueId>1</uniqueId>
</arg0>
</ns:getKey>
</s:Body>
基础知识
1.
请告诉我如何添加此名称空间前缀