如何简化.net Web服务中的xml请求和响应结构

时间:2015-01-28 07:57:26

标签: xml web-services web request response

我想简化我的Web服务请求和响应xml结构:

目前:

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetAddressForPostcode xmlns="http://dw.rhp.org.uk/StatementsService">
      <postcode>string</postcode>
      <addressline1>string</addressline1>
      <SearchType>string</SearchType>
    </GetAddressForPostcode>
  </soap12:Body>
</soap12:Envelope>

我想:

<GetAddressAuthorisation>
  <MethodParameters>
    <Postcode>SW14 7RD<Postcode>
 </MethodParameters>
</GetAddressAuthorisation>

谢谢,

0 个答案:

没有答案
相关问题