簡體   English   中英

郵遞員的肥皂請求

[英]Soap Request With Postman

我不知道如何在郵遞員中向swea riksbank (瑞典銀行)進行SoapUI呼叫。 我在請求網址中包含wsdl網址,當我將請求正文留空時,可以得到結果。 但是,當我嘗試從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>

我也嘗試過此鏈接,但根本無法正常工作

在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"之前缺少空格。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM