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

Call Web Service XML result processing question

Jump to solution

My Call Web Service action returns the information I need. I'm trying to Nintex Workflow - XSL Transformation - Vadim Tabakman  by Vadim Tabakman‌ but my workflow is erroring with the message:

Failed to invoke web service. 'xsl:stylesheet' element cannot have text node children.

I've even dumbed down my results to make sure it wasn't one specific return that was ruining everything. Here's my current XSL transform code:

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output indent="no" method="html"/> -<xsl:template match="/" name="ShowVariables">
  <html>
   <body>
    <h2>My Items</h2>
    <table border="1">
     <tr bgcolor="#9acd32">
      <th>Center Name</th>
     </tr>
     <xsl:for-each select="//*[name()='z:row']">
      <tr>
       <td>
        <xsl:value-of select="@ows_CenterName"/>
       </td>
      </tr>
     </xsl:for-each>
    </table>
   </body>
  </html>
</xsl:template>
</xsl:stylesheet>

What am I doing wrong here? Am I missing something simple? 

Labels: (1)
0 Kudos
Reply
2 Replies
Automation Master
Automation Master

Re: Call Web Service XML result processing question

Jump to solution

can you try to remove that minus sign right before xsl:template node?

if that doesn't help can you post a sample of your WS output?

View solution in original post

Reply
Highlighted
nj
Nintex Newbie

Re: Call Web Service XML result processing question

Jump to solution

UGH! Thank you! That worked. I thought it would be something simple I was just overlooking.

I just checked and that is in the code on the page too. 

Reply