cancel
Showing results for 
Search instead for 
Did you mean: 
siemens
Nintex Newbie

How to use web request to get value and use this value do more actions like query some documents

Hello everyone, recently i want to use nintex form to make sheet to finish work,but i met a problem. I want to  use web request control to get data and use this result to make do some action, like query something as a part or make it become a item property etc.But i dont know how to use it and how to configure it like Xpath or windows authentication. Thx very much.Capture88.PNG

Labels: (2)
0 Kudos
Reply
9 Replies
Nintex Employee
Nintex Employee

Re: How to use web request to get value and use this value do more actions like query some documents

Hi,
If you are not familiar with web services I suggest using the Call web service action instead to begin with.
This action does a lot of the complex configurations for you.
0 Kudos
Reply
siemens
Nintex Newbie

Re: How to use web request to get value and use this value do more actions like query some documents

woops, you mean use the web service in work flow? i know if i wanna use web service, i need to know some about the xml programming to find path. anyway, thank you so much

0 Kudos
Reply
siemens
Nintex Newbie

Re: How to use web request to get value and use this value do more actions like query some documents

and  i want put the result into a column, but there is a errror in my web request , and i dont know whySmiley Surprised顶顶顶.PNG

0 Kudos
Reply
emha
Nintex Newbie

Re: How to use web request to get value and use this value do more actions like query some documents

I'm not able to provide an example with forms' web request control, but with workflow's web requset action following works for me. with forms' control it should be quite the same

 

the request

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <CelsiusToFahrenheit xmlns="https://www.w3schools.com/xml/">
      <Celsius>123</Celsius>
    </CelsiusToFahrenheit>
  </soap12:Body>
</soap12:Envelope>

web service call

 

i.jpg

 

 

 

to process the response you may use one of follwing xpaths (I'm not sure which will work in forms).

note the node to address may depend on sevice operation (conversion direction) you use

//CelsiusToFahrenheitResult
//defaultNS:CelsiusToFahrenheitResult

i2.jpg

 

 

anonymous authentication for this web service should be ok.

 

 

 

if you still have difficulties to ge it working, provide sample of your exact request and response

0 Kudos
Reply
siemens
Nintex Newbie

Re: How to use web request to get value and use this value do more actions like query some documents

wow, that is so perfect and detailed thank you, but i counld not find return xml or return value choice or button in interface , so, that means i could not make it in nintex form?

0 Kudos
Reply
siemens
Nintex Newbie

Re: How to use web request to get value and use this value do more actions like query some documents

and how about this interface, i shoud choose which one to achieve my idea, it seems a little different wi th your interface.Capture2.PNGCapture1.PNG

0 Kudos
Reply
Nintex Employee
Nintex Employee

Re: How to use web request to get value and use this value do more actions like query some documents

Hi,

Sorry my mistake in regards to using Workflow rather than the Web Request control from Nintex Forms.

I tried using the web service you were using but I had nothing but problems with it.

I found one that returns the exchange rates.

Once its returned you can store it in a list column and then use it in workflows etc.

WebRequest.png

0 Kudos
Reply
siemens
Nintex Newbie

Re: How to use web request to get value and use this value do more actions like query some documents

oh thanks, is there any help document to teach how to use get method to use return value, i mean configure xpath.

0 Kudos
Reply
Nintex Employee
Nintex Employee

Re: How to use web request to get value and use this value do more actions like query some documents

Hi,
Unfortuntley the help files for the action only point to w3schools XPath Syntax page https://www.w3schools.com/xml/xpath_syntax.asp
0 Kudos
Reply