PEPEGA
PEPEGA

Reputation: 2283

Soap Request With Postman

I cant figure out on how to make a SoapUI call in postman to swea riksbank (Swedish bank). I have the wsdl url in the request url and can get this as result when I leave the request body empty. But when I try to enter a request example from the api documentation I still get the same response as above

//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>

I have also tried this link but cant get it to work at all

Upvotes: 2

Views: 7109

Answers (1)

Lasse Sviland
Lasse Sviland

Reputation: 1517

At the bottom of the WSDL you linked it have:

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

If you set http://swea.riksbank.se:80/sweaWS/services/SweaWebServiceHttpSoap12Endpoint as the URL, use POST as the method, set raw as the body type and select XML in the drop-down.

Your body is correct except it is missing a space before xmlns:xsd="http://swea.riksbank.se/xsd"

Upvotes: 2

Related Questions