【发布时间】:2023-03-25 02:31:01
【问题描述】:
我不喜欢 SOAP。第三方 SOAP 服务给了我用于他们 api 的示例代码。他们提供的代码(我完全复制到我的解决方案中)没有在所有标签之前吐出所需的前缀。
现在,他们给我的代码导致我发出没有所有标签前缀的请求/响应...
<tagName />
。如何使所有标签看起来像...
<com:tagName />
这是我的 WebServicesClient 的属性
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name = "catalogHttpBinding", Namespace = "http://com.etilize.spexlive")]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(CategoryCollection))]
public partial class catalog : Microsoft.Web.Services3.WebServicesClientProtocol
【问题讨论】:
标签: .net soap namespaces