C#Webservice Webmethod没有语句/参数

时间:2015-01-09 14:09:32

标签: c# web-services webmethod

所以我需要摆脱CustomContent标签,有没有办法可以删除它们?我知道在其他网络服务中它是可能的,并且它们与当前的公司软件不兼容。这是一个请求,我必须继续接收数据。

   <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <CustomName xmlns="http://localhost/">
          <CustomContent>xml</CustomContent>
        </CustomName>
      </soap:Body>
    </soap:Envelope>

我想将其更改为

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CustomName xmlns="http://localhost/">xml</CustomName>
  </soap:Body>
</soap:Envelope>

谢谢!

0 个答案:

没有答案
相关问题