如何在Postman中参数化SOAP请求?

时间:2019-01-03 12:17:41

标签: postman

我必须使用以下WSDL执行SOAP请求验证:

http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL

我必须在Postman中为[string]参数化以下发布请求。

能否让我知道如何进行参数化?

POST请求

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
 <Body>
    <CountryCurrency 
      xmlns="http://www.oorsprong.org/websamples.countryinfo">
        <sCountryISOCode>[string]</sCountryISOCode>
    </CountryCurrency>
 </Body>
</Envelope>

1 个答案:

答案 0 :(得分:0)

  • 在邮递员中,选择POST方法 http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso

  • 转到Body将此代码放入 <x:Envelope xmlns:x="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.oorsprong.org/websamples.countryinfo"><x:Header/><x:Body<web:CountriesUsingCurrency><web:sISOCurrencyCode>EUR</web:sISOCurrencyCode></web:CountriesUsingCurrency></x:Body></x:Envelope>

  • Reponese <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><m:CountriesUsingCurrencyResponse xmlns:m="http://www.oorsprong.org/websamples.countryinfo"><m:CountriesUsingCurrencyResult><m:tCountryCodeAndName><m:sISOCode>AT</m:sISOCode><m:sName>Austria</m:sName></m:tCountryCodeAndName><m:tCountryCodeAndName><m:sISOCode>AX</m:sISOCode><m:sName>Åland Islands</m:sName></m:tCountryCodeAndName></m:CountriesUsingCurrencyResult></m:CountriesUsingCurrencyResponse></soap:Body></soap:Envelope>

  • 请参阅邮递员:: open postman and click this