如何在WCF中更改soap请求中根标记信封的xmlns

如何在WCF中更改soap请求中根标记信封的xmlns,wcf,soap,soap-client,Wcf,Soap,Soap Client,我需要在WCF中更改soap请求中根标记信封的xmlns。就像现在WCF创建以下请求一样 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"></s:Envelope> 但我需要创建如下内容 <soap

我需要在WCF中更改soap请求中根标记信封的xmlns。就像现在WCF创建以下请求一样

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"></s:Envelope>

但我需要创建如下内容

<soapenv:Envelope xmlns:abc="abc.astute.ca/"; xmlns:xyz="xyz.astute.ca/"; xmlns:asd="asd.astute.ca/"; xmlns:qwe="qwe.astute.ca/"; xmlns:soapenv="schemas.xmlsoap.org/soap/envelope/">


有什么想法吗?

我建议不要这样做(几乎没有理由这样做)。如果这是一个要求,那么您可以在a中这样做-您还需要更改前缀引用的所有位置