阅读背景:

如何在. net/asmx中更改WebService的响应的标记名?

来源:互联网 

I have the following code:

我有以下代码:

namespace WebService1
{
    [System.Web.Services.WebService(Namespace = "mynamespace", 
                Name = "ControlModuleService")]
    [System.ComponentModel.ToolboxItem(false)]
    [System.Web.Services.WebServiceBindingAttribute(Name = "ControlModulePort"),
    SoapDocumentService(SoapBindingUse.Literal,SoapParameterStyle.Bare)]

    public class Service1 : CommandCenter
    {

        [WebMethod, SoapDocumentMethod(
        ResponseElementName = "setConfigurationResponse")]
        public setConfigurationResponse setConfiguration(setConfigurationRequest request) 
        {

            return new setConfigurationResponse();
        }
}
namespac



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: