Author Message
Andrew.Prokop
Joined: Oct 28, 2014
Messages: 179
Offline
Is there a built-in ED tool to convert XML from a web services call into ED object variable? For instance, I am calling a weather service that returns data in the following format. I would like to parse it and store it in an ED object that mirrors the data fields.

<?xml version="1.0" encoding="utf-8"?><WeatherReturn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://ws.cdyne.com/WeatherWS/"> <Success>true</Success> <ResponseText>City Found</ResponseText> <State>AZ</State> <City>Scottsdale</City> <WeatherStationCity>Scottsdale</WeatherStationCity> <WeatherID>4</WeatherID> <Description>Sunny</Description> <Temperature>71</Temperature> <RelativeHumidity>45</RelativeHumidity> <Wind>CALM</Wind> <Pressure>29.90R</Pressure> <Visibility /> <WindChill /> <Remarks /></WeatherReturn>

I know there is a way to do this with JSON, but is there a similar tool for XML?

Thanks!
PrakashN
Joined: Jun 30, 2015
Messages: 105
Offline
Andrew,

Direct XML to Workflow Variable conversion task or functions are not available out of the box. It can be created as a dynamic task with this required functionality and added to the palette.

- Prakash.

Prakash Natarajan System Architecture Consulting Engineer Engagement Designer Avaya
Andrew.Prokop
Joined: Oct 28, 2014
Messages: 179
Offline
Thanks. Sounds like a worthwhile function to add to out-of-the-box ED. :-)
Go to:   
Mobile view