使2个Webservice XML彼此一致

时间:2018-07-18 12:27:56

标签: c# xml web-services soap

如何使我的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>
    <XXXTransferxmlns="http://XX.YY.com/XX">
      <Testing1>string</Testing1>
     <Testing2>string</Testing2>
     <Testing3>string</Testing3>
    </XXXTransfer>
  </soap12:Body>
</soap12:Envelope>

符合下面的XML

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://XX.YY.com/XX">
<SOAP-ENV:Body><ns1:XXXTransfer>
<Testing1>string</Testing1>
     <Testing2>string</Testing2>
     <Testing3>string</Testing3>
</ns1:XXXTransfer>
</SOAP-ENV:Body></SOAP-ENV:Envelope>

0 个答案:

没有答案