我必须使用以下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>
答案 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