将SOAP请求转换为XML格式

时间:2018-12-10 17:40:30

标签: xml soap

我想知道如何将请求更改为XML格式。我正在处理具有其他XML请求的项目,找不到任何可用于转换此SOAP请求的替代方法,有什么想法吗?

我拥有的文档非常古老,仅以SOAP格式显示这些请求。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v16="http://fedex.com/ws/track/v16">
  <soapenv:Header/>
  <soapenv:Body>
    <v16:TrackRequest>
      <v16:WebAuthenticationDetail>
        <v16:ParentCredential>
          <v16:Key>INPUT YOUR INFORMATION</v16:Key>
          <v16:Password>INPUT YOUR INFORMATION</v16:Password>
        </v16:ParentCredential>
        <v16:UserCredential>
          <v16:Key>INPUT YOUR INFORMATION</v16:Key>
          <v16:Password>INPUT YOUR INFORMATION</v16:Password>
        </v16:UserCredential>
      </v16:WebAuthenticationDetail>
      <v16:ClientDetail>
        <v16:AccountNumber>XXXXXXXXX</v16:AccountNumber>
        <v16:MeterNumber>XXXXXXX</v16:MeterNumber>
      </v16:ClientDetail>
      <v16:TransactionDetail>
        <v16:CustomerTransactionId>Track By Number_v16</v16:CustomerTransactionId>
        <v16:Localization>
          <v16:LanguageCode>EN</v16:LanguageCode>
          <v16:LocaleCode>US</v16:LocaleCode>
        </v16:Localization>
      </v16:TransactionDetail>
      <v16:Version>
        <v16:ServiceId>trck</v16:ServiceId>
        <v16:Major>16</v16:Major>
        <v16:Intermediate>0</v16:Intermediate>
        <v16:Minor>0</v16:Minor>
      </v16:Version>
      <v16:SelectionDetails>
        <v16:CarrierCode>FDXE</v16:CarrierCode>
        <v16:PackageIdentifier>
          <v16:Type>TRACKING_NUMBER_OR_DOORTAG</v16:Type>
          <v16:Value>INPUT YOUR INFORMATION</v16:Value>
        </v16:PackageIdentifier>
        <v16:ShipmentAccountNumber/>
        <v16:SecureSpodAccount/>
        <v16:Destination>
          <v16:GeographicCoordinates>rates evertitque
aequora</v16:GeographicCoordinates>
        </v16:Destination>
      </v16:SelectionDetails>
    </v16:TrackRequest>
  </soapenv:Body>
</soapenv:Envelope>

0 个答案:

没有答案