AnsweredAssumed Answered

How to fetch web service attachments?

Question asked by ThiagoBottoni Employee on Mar 17, 2017
Latest reply on May 24, 2017 by ThiagoBottoni

I've created a process that runs a Jasper report via web services using the runReport method and it's working almost fine. The problem is: this SOAP operation outputs the report attached to the message and I'm not able to find it after running the PAM process. I haven't added any information under the MIME attachment section yet, because it asks for the file URL, but I do not have any since I'm calling a web service that will return it to me.

 

My question is: How to fetch web service attachments via PAM?

 

Call:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:axis="http://axis2.ws.jasperserver.jaspersoft.com">
   <soapenv:Header/>
   <soapenv:Body>
      <axis:runReport soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <requestXmlString xsi:type="xsd:string">
               <![CDATA[<request operationName="runReport" locale="en">
                    <argument name="RUN_OUTPUT_FORMAT">PDF</argument>
                    <resourceDescriptor name="" wsType=""
                    uriString="/organizations/servicemanagement/capability/reports/CA_Service_Desk/Requests/Volume/Active_Request_List"
                    isNew="false">
                    <label>null</label>
                    </resourceDescriptor>
                    </request>
               ]]>

          </requestXmlString>
      </axis:runReport>
   </soapenv:Body>
</soapenv:Envelope>

 

Response:

<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">
   <soapenv:Body>
      <ns1:runReportResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://axis2.ws.jasperserver.jaspersoft.com">
         <runReportReturn xsi:type="xsd:string"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<operationResult version="2.0.1">
     <returnCode><![CDATA[0]]]]>><![CDATA[</returnCode>
</operationResult>]]>
</runReportReturn>
      </ns1:runReportResponse>
   </soapenv:Body>
</soapenv:Envelope>

Outcomes