Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Download Tool Payload Configuration - Comma in front of Values

Aguisande
15 - Aurora
15 - Aurora

Hi All,

I’m having a hard time trying to figure this out. I’m trying to use a Web Service (definition here: http://www.webservicex.net/geoipservice.asmx?WSDL), so I made this workflow:

Workflow

 

As you can see, URL and IP to check are there, and the way to call the WS is:

http://www.webservicex.net/geoipservice.asmx/GetGeoIP?IPAddress=IPAddress (In this case: http://www.webservicex.net/geoipservice.asmx/GetGeoIP?IPAddress=200.75.200.2)

 

The expected response is:

 

<GeoIP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.webservicex.net/">
<ReturnCode>1</ReturnCode>
<IP>200.75.200.2</IP>
<ReturnCodeDetails>Success</ReturnCodeDetails>
<CountryName>Panama</CountryName>
<CountryCode>PAN</CountryCode>
</GeoIP>

But when I run the workflow, I can see from the [Downloaded Data] that there is a comma preceding the value of the IP Address field, what causes an “Invalid IP address” Return Code.

 

comma in front of the Value

 

What am I doing wrong / missing here?

 

Thanks a lot

4 REPLIES 4
MarqueeCrew
20 - Arcturus
20 - Arcturus

I didn't receive the same error message.  I ran yours without the comma issue. Mine said "No XML Elemeents named "CountryName" were found.

 

I created a formula to construct the query string and then point to it within the download payload.

 

Panama

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
rdoptis
11 - Bolide

For this API, you don't put the IP in the payload. Just construct your URLs such as (http://www.webservicex.net/geoipservice.asmx/GetGeoIP?IPAddress=200.75.200.2) and feed that whole thing into the URL field of the download tool on the Basic Tab. The only other thing you need to set is to make sure the download tool is performing a GET from the Payload Tab. This will bring back what you want. 

 

Once your data come back from the download tool, use the XML parse tool to get your data into table form. 

 

 

Best,

Ryan

danielbrun2
ACE Emeritus
ACE Emeritus

Hi,

 

As far as I can see, the issue is that you have the IP address two times in the payload. The configuration should look like this which will put the IPaddress in the query string.

 

Not like this:

Skærmbillede 2015-10-27 kl. 20.47.09.png

 

But like this:

Skærmbillede 2015-10-27 kl. 20.47.17.png

 

Let me know if it works.

 

Best regards,

Daniel

Aguisande
15 - Aurora
15 - Aurora

That's it!

I supposed that you must name the Value (thats why the first IPAddress is there!)

Thanks a lot!

Labels