如何简化.NETWeb服务中的xml请求和响应结构
我想简化我的web服务请求和响应xml结构: 目前:如何简化.NETWeb服务中的xml请求和响应结构,xml,web-services,web,request,response,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">
<?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>
谢谢,您想要SOAP还是RESTful服务?在第一种情况下,您需要soap信封和主体。你为什么要简化它呢?只要您不想从头开始编写服务客户机,为什么要这样做?有可能简化它吗?我们可以通过任何工具实现这一结果吗?