Note that there are some explanatory texts on larger screens.

plurals
  1. POEmbed XSLT in a SOAP Request
    primarykey
    data
    text
    <p>I'm using a software that imports an XML file into a workflow then exports it to a web service using workflow tasks. The XML file is like:</p> <pre><code> &lt;?xml version="1.0"?&gt; &lt;NostroEvent&gt; &lt;Id&gt;1&lt;/Id&gt; &lt;AccountNumber&gt;123&lt;/AccountNumber&gt; &lt;Debit&gt;100&lt;/Debit&gt; &lt;/NostroEvent&gt; </code></pre> <p>The file is imported and I'm writing the following SOAP request of the ExportWS task that would select all the tags of the xml and sends them to the web service: (the configuration of the connection to the web service is also entered in that task in another section)</p> <pre><code> &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:template match="/"&gt; &lt;!--xsl:variable name="nostro"&gt; &lt;xsl:copy-of select="NostroEvent"&gt;&lt;/xsl:copy-of&gt; &lt;/xsl:variable--&gt; &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bmt="http://bmt"&gt; &lt;soapenv:Header/&gt; &lt;soapenv:Body&gt; &lt;bmt:insertNostro&gt; &lt;bmt:Xml&gt;&lt;xsl:copy-of select="NostroEvent"/&gt;&lt;/bmt:Xml&gt; &lt;/bmt:insertNostro&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre> <p>Note that insertNostro is the web method and Xml is the parameter, to which I'm passing the set of tags and text starting from NostroEvent. But it's not working. I keep getting a null pointer exception meaning that the web service received a null string. I tried to use an xsl variable at the top but it was also useless.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload