This example shows how to create a feed from a web service by accessing a WSDL document. The web service specified in the WSDL is used to create a feed.
Before you begin
Estimated time to create this feed example
: 5 minutes
About this task
The Stock Quote Web Service Feed is available in the catalog when you install Mashup Center. You can compare the results of the feed you are working on to the completed feed in the catalog. To view the example, select the Stock Quote Web Service Feed from the catalog. This displays the details about the feed. Select View Feed in Browser
to see the results. You can compare the results of the two feeds in the two tabs.
- Connection to the Internet
- Supported browser
- Internet Explorer 6.0 SP3, 7.0, 8.0 (Windows® only)
- Mozilla Firefox 3.6 (Windows and Linux®)
- Safari 5.0 (Mac OS only)
- For the most current information about system configuration, consult the Detailed System Requirements for IBM® Mashup Center.
- Logged in to Mashup Center
The WSDL file contains information to make a request to a stock quote service. This service requires the stock symbol as an input parameter to obtain information about the stock. The output from the web service request contains the following information:
- Last (price)
- Change (price)
- Open (price)
- High (price)
- Low (price)
- Volume (shares)
- PreviousClose (price)
- PercentageChange (price)
- AnnRange (price)
- Name (full company name)
- On the Home:Catalog page, click Create and select New Feed.
- Select Web Service from the list of data sources in the enterprise section. Then click Next.
- Specify that you want to upload a URL and click Next.
Click Next on the XML view of the webservice request window.
Specify the default parameter values and then click Next:
- Input type: Upload URL.
- URL: http://www.webservicex.net/stockquote.asmx?wsdl
Specify the following information and then click Finish:
After the feed has been saved, click View Feed in Browser.
- Title: My Stock Quote Web Service Feed
- Description: Web Service feed using a WSDL
- Version: 1.0
- Tags: Web service, WSDL, stock quote
- Permissions: Public
- The required parameter for the web service displays with the default value. Change the value to your favorite stock symbol and click Submit.
- The results display in a new tab or window in the browser and display the number of items returned from the web Service.
Tip: You might have to view the page source from the browser to see all of the information in the feed.