我想this tutorial到我的項目:Visual Studio的Web服務請求415錯誤
我設置標題:SOAPAction
爲http://somuri.com/IHubService/processAirLFSearch
和我的身體看起來像:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://someuri.com">
<soapenv:Header/>
<soapenv:Body>
<OTA_AirLowFareSearchRQ>
...
</OTA_AirLowFareSearchRQ>
</soapenv:Body>
</soapenv:Envelope>
終於我的網址要服務的是:http://localhost:24030/HubService.svc
但是我經常這個錯誤:
HTTP/1.1 415 Cannot process the message because the content type 'application/octet-stream' was not the expected type 'text/xml; charset=utf-8'.
我在做什麼錯?
顯示請求。 – BWA
@BWA是的,讓我來做 –
同樣的問題也在[33485373]中涵蓋(https://stackoverflow.com/questions/33485373/vs-web-load-test-returning-415-unsupported-media-type-though -content-type-is-spe) – user3613932