邮递员的肥皂请求

时间:2018-03-09 13:15:04

标签: api soap soapui postman

我无法弄清楚如何在邮递员中进行SoapUI调用swea riksbank  (瑞典银行)。我在请求网址中有wsdl个网址,当我将请求主体留空时可以获得this。但是当我尝试从api文档输入请求示例时,我仍然得到与上面相同的响应

//the request example
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"xmlns:xsd="http://swea.riksbank.se/xsd">
<soap:Header/>
    <soap:Body>
        <xsd:getAnnualAverageExchangeRates>
            <year>2010</year>
            <month>4</month>
            <languageid>en</languageid>
        </xsd:getAnnualAverageExchangeRates>
    </soap:Body>
</soap:Envelope>

我也试过这个link但是无法让它在所有

中运行

1 个答案:

答案 0 :(得分:1)

在您链接的WSDL的底部有:

<soap12:address location="http://swea.riksbank.se:80/sweaWS/services/SweaWebServiceHttpSoap12Endpoint"/>

如果您将http://swea.riksbank.se:80/sweaWS/services/SweaWebServiceHttpSoap12Endpoint设置为URL,请使用POST作为方法,将raw设置为正文类型,然后在下拉列表中选择XML。

你的身体是正确的,除了在xmlns:xsd="http://swea.riksbank.se/xsd"

之前缺少一个空格