# Index.jsp Sample

This topic inludes the source code for the Index.jsp Sample.

## Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/controls/webservice/polling/

## Sample Source Code

`01 <!--Generated by Weblogic Workshop--> 02 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 03 <%@ page language="java" contentType="text/html;charset=UTF-8"%> 04 <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%> 05 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%> 06 <html> 07 <head> 08 <netui:base/> 09 <link href="/WebApp/resources/css/style.css" type="text/css" rel="stylesheet"/> 10 </head> 11 <body> 12 <jsp:include page="/resources/jsp/header.jsp"/> 13 <h3>Calling an Asynchronous Web Service from a Page Flow</h3> 14 15 <p>This sample demonstrates calling an asynchronous web service from a Page Flow. 16 <p>To call an asynchronous web service, the Page Flow must "poll" the web service. 17 Polling a web service involves three steps: 18 <ol> 19 <li>Invoking the asynchronous method on the web service 20 <li>Waiting a period of time for the web service to process the request 21 <li>Invoking the result collection method on the web service 22 </ol> 23 <p>Clicking the link below will start the polling process: 24 <blockquote> 25 26 <p><netui:anchor action="requestMessage.do"> 27 Request Message 28 </netui:anchor> 29 30 </blockquote> 31 <hr> 32 <p><netui:anchor href="/WebApp/controls/controlsController.jpf">Back to Control Samples</netui:anchor> 33 34 </body> 35 </html>`