Web services 如何为soap xml请求设置前缀?

Web services 如何为soap xml请求设置前缀?,web-services,soap,prefix,Web Services,Soap,Prefix,我正在进行一个web服务调用(在.NET3.5中)。我希望Soap请求具有标记的名称空间前缀(第三方web服务需要它们) 当前请求: <soap:Body> <GetBanksList xmlns="urn:QueryGroup"> ... 并指定我的前缀,可能如下所示: XmlSerializerNamespaces _namespaces = new XmlSerializerNamespaces( new[] { new XmlQualifiedName("

我正在进行一个web服务调用(在.NET3.5中)。我希望Soap请求具有标记的名称空间前缀(第三方web服务需要它们)

当前请求:

<soap:Body> <GetBanksList xmlns="urn:QueryGroup"> ...
并指定我的前缀,可能如下所示:

XmlSerializerNamespaces _namespaces = new XmlSerializerNamespaces(
   new[] { new XmlQualifiedName("pfx", NS1) } );
我找不到的是将属性放在何处(我尝试使用Reference.cs中的输入参数)以及在何处指定前缀

谢谢你的帮助

[XmlElementAttribute(Form = XmlSchemaForm.Unqualified)]
XmlSerializerNamespaces _namespaces = new XmlSerializerNamespaces(
   new[] { new XmlQualifiedName("pfx", NS1) } );