Skip to main content
Solved

HTTPCaller SOAP issues

  • June 8, 2017
  • 3 replies
  • 75 views

Forum|alt.badge.img

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: ******

Best answer by david_r

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

david_r
Celebrity
  • Best Answer
  • June 8, 2017

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


revesz
Contributor
Forum|alt.badge.img+21
  • Contributor
  • June 8, 2017

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.

 


Forum|alt.badge.img
  • Author
  • June 8, 2017

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