SOLVED
Making a SOAP request using download tool
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Pingu
10 - Fireball
‎09-02-2020
08:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Dear all,
I am trying to get the most simple Soap request to work in Alteryx using the download tool to get some understanding on how it works (before extending it to the WSDL I actually need).
WSDL: http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL
Body:
<Body>
<sCountryISOCode>NL</sCountryISOCode>
</CapitalCity>
</Body>
</Envelope>
Should return:
<?xml version="1.0" encoding="utf-8"?>
<soap:Body>
<m:CapitalCityResult>Amsterdam</m:CapitalCityResult>
</m:CapitalCityResponse>
</soap:Body>
</soap:Envelope>
But instead I get the error: unsupported media type. I tried to search the community on XML requests, but could unfortunately not find a solution to my problem. So it is also fine to guide me to the right resources.
Solved! Go to Solution.
Labels:
- Labels:
- API
3 REPLIES 3
Alteryx
‎09-02-2020
08:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can you try adding a value to the Headers tab in the download tool?
Name:
Content-Type
Value:
text/xml
I think the issue is the content type that is being passed by the default configuration.
Alteryx
‎09-02-2020
08:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎09-02-2020
11:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks very much Brandon, makes sense.
