How to Call BIP Report using SOAP Webservice in SOAP UI

How to Call BIP Report using SOAP Webservice in SOAP UI

In this section, we will see how to call BIP report using SOAP Webservice.

Oracle provided a SOAP web service ExternalReportWSSService with “runReport” operation with which we can call BIP report and get output in Base64 format.

We will call simple BIP report created in cloud application using SOAP Web service.

Here we will use SOAP UI tool to call this SOAP Web service. We can download this free tool from below link

https://www.soapui.org/

Below oracle documentation has given all WSDL details required for calling this web service.

Introduction to the BI Publisher Web Services (oracle.com)

Graphical user interface, text, application Description automatically generated

WSDL: http://<host>:<port>/xmlpserver/services/v2/ReportService?wsdl

Now let us create WSDL for our instance:

WSDL:

https://xx-test.oraclecloud.com/xmlpserver/services/v2/ReportService?wsdl

let us consider below sample BIP report which we have created earlier sections:

Graphical user interface, text, application, email Description automatically generated

Report path is as below:

/Custom/Reports/XX Test BIP Report.xdo

Now let us run this report manually:

Graphical user interface, text, application Description automatically generated

The report output format is csv.

Now we will call this report from SOAP UI using SOAP WSDL.

Open SOAP UI application.

Go to SOAP option at the top of application.

Graphical user interface, application, Word Description automatically generated

This will create new SOAP Project.

Graphical user interface, text, application, email Description automatically generated

Here we need to provide Project Name (Any Name) and WSDL for our instance.

Now new SOAP project created with report catalog WSDL.

Graphical user interface, application Description automatically generated

Now go to runReport operation.

Graphical user interface, text Description automatically generated

Right Click on Request1 to create Clone request.

Graphical user interface, application Description automatically generated with medium confidence

Graphical user interface, text, application Description automatically generated

Here we can give any name to clone request.

Graphical user interface, text Description automatically generated

Now we need to use below payload to call SOAP webservice.

  1. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://xmlns.oracle.com/oxp/service/v2">
  2. <soapenv:Header/>
  3. <soapenv:Body>
  4. <v2:runReport>
  5. <v2:reportRequest>
  6. <v2:parameterNameValues>
  7. <v2:listOfParamNameValues>
  8. <v2:item>
  9. <v2:name>P_INVOICE_NUM</v2:name>
  10. <v2:values>
  11. <v2:item>JGA 2012155</v2:item>
  12. </v2:values>
  13. </v2:item>
  14. </v2:listOfParamNameValues>
  15. </v2:parameterNameValues>
  16. <v2:XDOPropertyList/>
  17. <v2:attributeFormat>csv</v2:attributeFormat>
  18. <v2:attributeLocale>en-US</v2:attributeLocale>
  19. <v2:reportAbsolutePath>/Custom/Reports/XX Test BIP Report.xdo</v2:reportAbsolutePath>
  20. <v2:byPassCache>false</v2:byPassCache>
  21. <v2:flattenXML>false</v2:flattenXML>
  22. </v2:reportRequest>
  23. <v2:userID>Casey. Brown</v2:userID>
  24. <v2:password>******</v2:password>
  25. </v2:runReport>
  26. </soapenv:Body>
  27. </soapenv:Envelope>

A picture containing text Description automatically generated

Text Description automatically generated

Here we can see output is generated under reportBytes.

The output is in base64 format.

We can decode base64format using below site:

https://www.base64decode.org/

Graphical user interface, text, application, email Description automatically generated

In this way, we can decode Base64 format and get the report output in desired format.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top