从没有Result标记的webservice返回两个值

时间:2015-07-17 07:26:20

标签: c# asp.net web-services return asmx

我对return two values from webservice提出了类似的问题。上述方法有效,但响应结构为:

  <soap:Body>
    <testingResponse xmlns="http://test.local/">
      <testingResult>
        <Data>string</Data>
        <Data1>string</Data1>
      </testingResult>
    </testingResponse>
  </soap:Body>

但我怎样才能获得如下的响应结构:

  <soap:Body>
    <testingResponse xmlns="http://test.local/">
      <Data>string</Data>
      <Data1>string</Data1>
    </testingResponse>
  </soap:Body>

0 个答案:

没有答案