Note that there are some explanatory texts on larger screens.

plurals
  1. POCan a custom XSLT definition handle a SOAP response that returns an Array of Objects when defining an MBO?
    primarykey
    data
    text
    <p>I seem to have run into a limitation in SUP regarding its ability to handle a SOAP response containing a list of objects and I am wondering if it would be possible to write a custom XSLT to handle this. I am trying to make a call into Jira via the getProjectsNoSchemes method via SOAP. This method returns an array of RemoteProject objects. Ultimately I would like to be able to treat each node as a row in a table, but unfortunately I don't know enough about XSLT to be able to know if this is possible or not. I also don't know if this is even a viable solution in SUP.</p> <p>A sample of the SOAP response is below:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt; &lt;soapenv:Body&gt; &lt;ns1:GetProjectsNoSchemesResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.webserviceX.NET"&gt; &lt;GetProjectsNoSchemesReturn soapenc:arrayType="ns2:RemoteProject[2]" xsi:type="soapenc:Array" xmlns:ns2="http://beans.soap.rpc.jira.atlassian.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"&gt; &lt;GetProjectsNoSchemesReturn href="#id0" /&gt; &lt;GetProjectsNoSchemesReturn href="#id1" /&gt; &lt;/GetProjectsNoSchemesReturn&gt; &lt;/ns1:GetProjectsNoSchemesResponse&gt; &lt;multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:RemoteProject" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://beans.soap.rpc.jira.atlassian.com"&gt; &lt;description xsi:type="xsd:string"&gt;Mobile Web Project POC &lt;/description&gt; &lt;id xsi:type="xsd:string"&gt;10034&lt;/id&gt; &lt;issueSecurityScheme xsi:type="ns3:RemoteScheme" xsi:nil="true" /&gt; &lt;key xsi:type="xsd:string"&gt;XLIPOC&lt;/key&gt; &lt;lead xsi:type="xsd:string"&gt;benm&lt;/lead&gt; &lt;name xsi:type="xsd:string"&gt;Redacted Project&lt;/name&gt; &lt;notificationScheme xsi:type="ns3:RemoteScheme" xsi:nil="true" /&gt; &lt;permissionScheme xsi:type="ns3:RemotePermissionScheme" xsi:nil="true" /&gt; &lt;projectUrl xsi:type="xsd:string"&gt;&lt;/projectUrl&gt; &lt;url xsi:type="xsd:string"&gt;https://redacted.com/browse/REDACTED&lt;/url&gt; &lt;/multiRef&gt; &lt;multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:RemoteProject" xmlns:ns4="http://beans.soap.rpc.jira.atlassian.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"&gt; &lt;description xsi:type="xsd:string"&gt;&lt;/description&gt; &lt;id xsi:type="xsd:string"&gt;10017&lt;/id&gt; &lt;issueSecurityScheme xsi:type="ns4:RemoteScheme" xsi:nil="true" /&gt; &lt;key xsi:type="xsd:string"&gt;GIC&lt;/key&gt; &lt;lead xsi:type="xsd:string"&gt;gregm&lt;/lead&gt; &lt;name xsi:type="xsd:string"&gt;REDACTED&lt;/name&gt; &lt;notificationScheme xsi:type="ns4:RemoteScheme" xsi:nil="true" /&gt; &lt;permissionScheme xsi:type="ns4:RemotePermissionScheme" xsi:nil="true" /&gt; &lt;projectUrl xsi:type="xsd:string"&gt;&lt;/projectUrl&gt; &lt;url xsi:type="xsd:string"&gt;https://redacted.com/browse/REDACTED&lt;/url&gt; &lt;/multiRef&gt; &lt;/soapenv:Body&gt; </code></pre> <p></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.
 

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