Skip to main content

Hi,

I have SOAPUI responding fine for requests to the host but when attempting to replicate this through FME HTTPCaller I simply get -

HTTP/1.1 415 Unsupported Media Type - http://bckapi.hosted.domestic.test.whitespacews.com/powersuitedomesticwebservice.asmx

Here are the parameters defined in my HTTPCaller -

 

HTTPCaller HTTPCaller]

Request:

Request URL:
http://bckapi.hosted.domestic.test.whitespacews.com/powersuitedomesticwebservice.asmx

HTTP Method: POST

Query String
Parameters:

Query String:
<not set>

Headers:

Headers:
<not set>

Body:

Upload Data:
Specify Upload Body

Upload
Body:

<?xml version="1.0" encoding="utf-8"?>

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservices.whitespacews.com/">


<soapenv:Header/>


<soapenv:Body>


<web:GetAddresses>


<!--Optional:-->


<web:getAddressInput>

<!--Optional:-->


<web:AddressNameNumber>38</web:AddressNameNumber>


<!--Optional:-->


<web:AddressLine1></web:AddressLine1>


<!--Optional:-->


<web:AddressLine2></web:AddressLine2>

<!--Optional:-->


<web:Town></web:Town>


<!--Optional:-->


<web:County></web:County>


<!--Optional:-->


<web:Country></web:Country>


<!--Optional:-->


<web:Postcode>WS16 7GJ</web:Postcode>


</web:getAddressInput>


</web:GetAddresses>


</soapenv:Body>

</soapenv:Envelope>

...

Content Type:
Text (text/plain)

Response:

Save Response Body
To: File

Save Response Body
To File:

Create a New
File Per Feature: No

Output
Filename: C:\\FME_Integrations\\OUTPUT\\WS_Test_GetAddresses.xml

File Path
Attribute: _response_file_path

Response Headers
and Status:

List Attribute
for Response Headers: _headers

Status Code
Attribute: _http_status_code

Error
Attribute: _error

Use Authentication:

Authentication
Method: Basic

HTTP
Authentication Username: ********

HTTP Authentication
Password: ******

The current "text/plain" content type is most probably not correct. Try setting the body content type to either "text/xml" "or application/xml"


xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" means it is a SOAP 1.1 message so @david_r is correct, the Content-Type should be text/xml.

You may need to enter it manually in the Request/Body/Content Type because "XML (application/xml)" may or may not work.

Also, the Heades is empty. In SOAP 1.1 you need to set the method name that you want to call in header called SOAPAction. Depending on the web service it may be a simple method name (eg.: "closeCases") or something longer (eg: "http://schemas.microsoft.com/sharepoint/soap/CopyIntoItems")

There are browser extensions (eg: Wizdler in Chrome) or online tools (eg: WDSL Analyzer ) to find out the more details.

 


Cheers David,

There was not a content type of "text/xml" in V17 Desktop but a colleauge advised to just type it in and it's worked!! thanks for the pointer....


Reply