C# 将Web服务WSDL命名空间s更改为xs

C# 将Web服务WSDL命名空间s更改为xs,c#,web-services,soap,wsdl,C#,Web Services,Soap,Wsdl,我在Visual Studio 2017中编写了web服务(Visual C#中的文件->新建->网站->ASP.NET空网站->web服务(ASMX)) 当我发布 [WebService(Namespace = "http://smp.ws.uz/", Name = "SMP034")] public class ReceivePayment : WebService { [WebMethod] [return: XmlElement("accept")] [Soa

我在Visual Studio 2017中编写了web服务(Visual C#中的文件->新建->网站->ASP.NET空网站->web服务(ASMX))

当我发布


[WebService(Namespace = "http://smp.ws.uz/", Name = "SMP034")]

public class ReceivePayment : WebService
{
    [WebMethod]
    [return: XmlElement("accept")]
    [SoapDocumentMethod(ParameterStyle = SoapParameterStyle.Wrapped)]
    public accept receivePayment(payment payment)
    {
        accept accept = new accept();
        ....
        set all properties of accept object some value
        ....
        return accept;
    }
}

发布此web服务时,我会得到如下WSDL:

<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" .....>


使用s名称空间,但我需要它作为xs名称空间


如何实现这一点?

这是一个名称空间别名;它不应该对任何兼容的解析器造成任何影响(只要别名在主体中正确使用),因为别名不是架构规范的一部分(它是有效负载的一部分),有没有办法更改我的案例中的命名空间别名?这是命名空间别名;它不会对任何兼容的解析器产生任何影响(只要别名在主体中正确使用),因为别名不是架构规范的一部分(它是有效负载的一部分),有没有办法更改我的案例的名称空间别名?