cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Web Request- No Result in XML

Hi!

I want to use the control web Request to get a xml result.

With the control in Forms i get the result in XML,

but i want to use the control in Workflow, too.

But there i get the result from the same site with the same x-api-token not in XML.

Seems to be JSON. Any idea what i can do?

Want to use in next step the XML-Request, but it doesn't work without XML ;-)

Regards
Detlef

Labels: (1)
0 Kudos
Reply
13 Replies
Workflow Hero

Re: Web Request- No Result in XML

can you post screenshot of your configuration?

have you configured respective header property so that web service return result as a XML?

btw, if you want to get a XML from a list field you do not need any webservice call. you can read out the XML content from list field (Item property)

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Web Request- No Result in XML

Hi Marian,

here are my screenshots.

The request is not for SharePoint. I read the data from a website outside our organisation.

it works in forms but not in workflow.

The header properties in Forms doesn't need a setting for XML.

In the header properties for Workflow, i tried al setting i know

- Accept and application/xml

-Content-Type and text/xml

nothing works in workflow webrequest

Thanks

This is from WebRequest in Forms:

The result:

And this from WebRequest in Nintex Workflow:

The result

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Web Request- No Result in XML

try to add custom header   Accept: application/xml

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Web Request- No Result in XML

this is what i tried a few times

it didn't work

this is why i'm wondering. In Forms it works with accept: application/xml by default

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Web Request- No Result in XML

and if you try to remove content-type and leave there just Accept?

or if you try to change content-type to application/xml as well?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Web Request- No Result in XML

I did it both

Nothing works

Outlook für iOS<https://aka.ms/o0ukef> beziehen

Zum Datenschutz finden Sie hier<https://www.bernstein.eu/info/datenschutz/> unsere Datenschutzerklärung.

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Web Request- No Result in XML

does the service support to answer in XML at all?

I wonder whether web request control do not convert JSON in XML on its own to allow designers to address datasets with XPath.

unfortunately, I'm not able to proof check it on my own. could you maybe watch network traffic in developer console and find out what's exactly being returned for web request control?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Web Request- No Result in XML

Here is the network traffic.

In Forms:

and in Workflow:

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Web Request- No Result in XML

could you check (and eventually post) Response body of single entries of form communication?

do they contain web request control's data in XML or JSON format?

0 Kudos
Accept as Solution Reply