Skip to main content
Nintex Community Menu Bar

Web Request Nintex Form 2013

  • Jul 6, 2017 4:02 PM UTC
  • 7 replies
  • 36 views
  • Translate All

Forum|alt.badge.img+1

Hello everybody.

I tried to get a web request in Nintex Form 2013 but I have a problem with my xPath.

205345_pastedImage_1.png

The Test Result is :

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><saldo_vacacionResponse xmlns="http://tempurl.org"><saldo_vacacionResult><va_sta_tus>1</va_sta_tus><va_cad_ret /><va_fec_fin>2017-07-06T00:00:00</va_fec_fin><va_per_ide>55205</va_per_ide><va_nom_emp>PEREZ BENITEZ, CRISTHIAN NELSON</va_nom_emp><va_sec_ide>250</va_sec_ide><va_des_sec>TECHNICAL FACTORY</va_des_sec><va_raz_emp>TELECEL, SA.</va_raz_emp><va_nom_ide>11100</va_nom_ide><va_des_nom>SANTA CRUZ</va_des_nom><va_ctr_num>1003716</va_ctr_num><va_fec_ing>2016-08-08T00:00:00</va_fec_ing><va_fec_ven>3000-12-31T00:00:00</va_fec_ven><va_ema_ail>perezc@tigo.net.bo</va_ema_ail><va_nom_usr>perezc</va_nom_usr><va_ges_ant>0</va_ges_ant><va_abo_ant>0.00</va_abo_ant><va_deb_ant>0.00</va_deb_ant><va_vac_ant>0.00</va_vac_ant><va_ges_tre>2014</va_ges_tre><va_abo_tre>0.00</va_abo_tre><va_deb_tre>0.00</va_deb_tre><va_vac_tre>0.00</va_vac_tre><va_ges_dos>2015</va_ges_dos><va_abo_dos>0.00</va_abo_dos><va_deb_dos>0.00</va_deb_dos><va_vac_dos>0.00</va_vac_dos><va_ges_uno>2016</va_ges_uno><va_abo_uno>0.00</va_abo_uno><va_deb_uno>0.00</va_deb_uno><va_vac_uno>0.00</va_vac_uno><va_ges_act>2017</va_ges_act><va_abo_act>0.00</va_abo_act><va_deb_act>0.00</va_deb_act><va_vac_act>0.00</va_vac_act><va_tot_abo>0.00</va_tot_abo><va_tot_deb>0.00</va_tot_deb><va_tot_vac>0.00</va_tot_vac><va_duo_vac>13.64</va_duo_vac></saldo_vacacionResult></saldo_vacacionResponse></soap:Body></soap:Envelope>

My xPath is :

   //soap:Body/descendant::*[name()='va_nom_emp']

But the result is nothing, I thought that my xPatch was wrong, but I tried with the same XML (Test Result) in a XML Query action in my Nintex Workflow and my xPath works fine, my question is, Why the xPath works in my workflow but does not work in my Nintex Form? Is it a problem with the Web Request component in Nintex Form?

7 replies

Forum|alt.badge.img+14
  • Scholar
  • Jul 7, 2017 1:03 PM UTC

try it without 'soap:Body', I guess it's stripped off

try simply

//descendant::*[name()='va_nom_emp']‍

or even

//*[name()='va_nom_emp']‍
Translate

Forum|alt.badge.img+1
  • Author
  • Jul 7, 2017 3:28 PM UTC

Hello Marian, Thanks for the review, but this Xpath does not work in my Web Request control, but It worked in my Query builder in my workflow, I do not know why Xpath does not work in Web Request in my Nintex Form.

Regards 

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jul 10, 2017 8:17 AM UTC

do you get any error?

Translate

Forum|alt.badge.img+1
  • Author
  • Jul 10, 2017 12:56 PM UTC

No, when I test my xPath, the component return "No result found". But with the same xPath in workflow is working, I do not why.

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jul 10, 2017 9:17 PM UTC

and if you simply try

//va_nom_emp‍

or

//defaultNS:va_nom_emp‍
Translate

bamaeric
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • Jul 12, 2018 9:20 PM UTC

Did you ever get this figured out?  I'm running into the exact same issue.

Translate

Forum|alt.badge.img
  • Novice
  • Dec 14, 2018 9:49 PM UTC

Same issue, any suggestions?

Translate