TIBCO Tutorial: Retrieve Concrerte WSDL Using RetrieveResources and Save To a File

By | October 28, 2014

In one of my previous step by step tutorials I explained how we can use  SOAP Event Source to expose a BW Process as Web Service. In this tutorial, I am going to explain how you can use SOAP Palette activity RetrieveResources to retrieve Concrete WSDL from that process and then save it to a file locally so that It can be used by clients to consume SOAP Web service.

 Once you have successfully developed and tested your SOAP Web Service created using my tutorial on SOAP Event Source, you can proceed with below steps to retrieve concrete wsdl from it.

Step 0: Create SOAP Web Service using SOAP Event Source and Test It

I call this step as step zero as this step is already covered in my earlier tutorial on SOAP Event Source.

Once you are done with that, you can proceed towards next step in which we will be retrieving WSDL.

 

Step 1: Create Process with RetrieveResources Activity and a Write File Activity to Save WSDL File

Create a new process and add RetrieveResources activity from SOAP Palette in the process. (I named the process as Retrieve Concrete WSDL).

In the Input tab of Retrieve Resources configuration, give the inputs as below:

resourcepath: Path to the process which has been exposed as a web service along with ?wsdl suffix

filter: write wsdl in this field as we want to retrieve wsdl resource.

hostname: Host Name value should be same as used in the HTTP transport used for the web service

port: Port should also match the transport port of the web service

Complete configuration screenshot is shown below:

soap retrieve resource input mapping example

 

The output of this RetrieveResources activity will be concrete wsdl as resourceData element.

Now add a Write File activity and simply map the resourceData as input to the file so that Concrete WSDL is saved in the file. Input mapping of Write File activity is shown below:

save concrete wsdl retrieve resources tibco

 

Now in the next step, we will test the process to see how it works.

 

Step 3: Test Process to Retrieve WSDL and Save to a File

Load the process in designer tester. Make sure that Web Service is also in running state otherwise you won’t be able to retrieve concrete wsdl from it.

Once you are sure that web service is up and running (either in designer tester or in administrator), you can create a new job for the process in tester. As you can see below, process has run successfully:

test tibco retrieve wsdl resource

 

 

Now you can go to the file and verify that concrete wsdl has been saved in the file.

 

Ajmal Abbasi

Ajmal Hussain Abbasi is a TIBCO Consultant By Profession with more than 6 years experience in TIBCO products. He has extensive practical knowledge of TIBCO Business Works, TIBCO Spotfire, TIBCO BE, EMS and TIBCO ActiveSpaces. He has worked on a number of highly critical integration projects in Telecom sector by using his skills in Tibco Designer, Adapters, TIBCO EMS, RV, Administrator, TIBCO BE, TIBCO ActiveSpaces etc. Ajmal Abbasi is also experienced in developing solutions using Oracle PL/Sql, Linux and Java. You can contact Ajmal Abbasi for Consultancy, Technical Assistance and Technical Discussions.

More Posts - Website - Facebook - LinkedIn

2 thoughts on “TIBCO Tutorial: Retrieve Concrerte WSDL Using RetrieveResources and Save To a File

  1. Krishnarao

    iam using the http receiver and http response but when i was trying to hit the service not getting the wsdl from browser but write the wsdl into file..

    Reply
  2. Siva Prasad

    What is resource path here… How to write that path in input tab configuration…. Please tell me..

    Reply

Leave a Reply

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