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/WebServices/

Sample Source Code


001 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
002 
003 <%@ taglib uri="netui-tags-html.tld" prefix="netui" %>
004 
005 <html>
006 <head>
007 <title>Web Services Feature Samples</title>
008 <link href="resources/css/style.css" type="text/css" rel="stylesheet" />
009 <netui:base/>
010 </head>
011 
012 <body style="margin:0">
013 <jsp:include page="/resources/jsp/header.jsp"/>
014 <br/>
015 
016 <table width="700" align="left" border="0">
017   <tr>
018     <td colspan="4">
019       <p>This page provides links to samples that demonstrate web services
020       created in WebLogic Workshop. You can find the files that comprise these
021       samples in &lt;WEBLOGIC_HOME&gt;/samples/workshop/SamplesApp/WebServices/...</p>
022       <p>&nbsp;</p>
023     </td>
024   </tr>
025   <tr valign="top">
026     <td width="25">&nbsp;</td>
027     <td width="120" valign="top">
028     <netui:image align="right" src="resources/images/samp3.jpg"
029     width="119" height="133" vspace="10" border="0"/>      
030     </td>
031     <td width="5" valign="top"></td>
032     <td valign="top">
033       <hr size="1" align="left">
034       <p><b>Simple web service sample</b></p>
035       <p>
036       <a href="http://localhost:7001/WebServices/HelloWorld.jws?.EXPLORE=.TEST">HelloWorld.jws</a>
037       </p>
038       <p>Sources: /WebServices</p>
039     </td>
040   </tr>
041   <tr valign="top">
042     <td width="25">&nbsp;</td>
043     <td width="120" valign="top">&nbsp;</td>
044     <td width="5">&nbsp;</td>
045     <td valign="top">
046       <hr size="1" align="left">
047       <p><b>Asynchronous web service samples</b></p>
048       <p><a href="http://localhost:7001/WebServices/async/Buffer.jws?.EXPLORE=.TEST">Buffer.jws</a><br>
049       <a href="http://localhost:7001/WebServices/async/Conversation.jws?.EXPLORE=.TEST">Conversation.jws</a><br>
050       <a href="http://localhost:7001/WebServices/async/HelloWorldAsync.jws?.EXPLORE=.TEST">HelloWorldAsync.jws</a></p>
051       <p>Sources: /WebServices/async</p>    
052     </td>
053   </tr>
054   <tr valign="top">
055     <td width="25">&nbsp;</td>
056     <td width="120" valign="top">&nbsp;</td>
057     <td width="5">&nbsp;</td>
058     <td valign="top">
059       <hr size="1" align="left">
060       <p><b>Control factory sample</b></p>
061       <p><a href="http://localhost:7001/WebServices/controlFactory/ServiceFactoryClient.jws?.EXPLORE=.TEST">ServiceFactoryClient.jws</a></p>
062       <p>Sources: /WebServices/controlFactory</p> 
063     </td>
064   </tr>
065   <tr>
066     <td width="25">&nbsp;</td>
067     <td width="120" valign="top">&nbsp;</td>
068     <td width="5">&nbsp;</td>
069     <td valign="top">
070       <hr size="1" align="left">
071       <p><b>Control project test service</b></p>
072       <p><a href="http://localhost:7001/WebServices/controlProjectTest/ControlTest.jws?.EXPLORE=.TEST">ControlTest.jws</a></p>
073       <p>Sources: /WebServices/controlProjectTest</p> 
074     </td>
075   </tr>
076   <tr>
077     <td width="25">&nbsp;</td>
078     <td width="120" valign="top">&nbsp;</td>
079     <td width="5">&nbsp;</td>
080     <td valign="top">
081       <hr size="1" align="left">
082       <p><b>Credit report sample</b></p>
083       <p><a href="http://localhost:7001/WebServices/creditReport/CreditReport.jws?.EXPLORE=.TEST">CreditReport.jws</a></p>
084       <p>Sources: /WebServices/creditReport</p> 
085     </td>
086   </tr>
087   <tr>
088     <td width="25">&nbsp;</td>
089     <td width="120" valign="top">&nbsp;</td>
090     <td width="5">&nbsp;</td>
091     <td valign="top">
092       <hr size="1" align="left">
093       <p><b>Database control samples</b></p>
094       <p>
095       <a href="http://localhost:7001/WebServices/database/dynamicSQL/DynamicSQL.jws?.EXPLORE=.TEST">DynamicSQL.jws</a><br>
096       <a href="http://localhost:7001/WebServices/database/xmlBean/CustomerDB_XMLBeanClient.jws?.EXPLORE=.TEST">CustomerDB_XMLBeanClient.jws</a>
097       <a href="http://localhost:7001/WebServices/database/xmlBean/ItemsDB_XMLBean_Client.jws?.EXPLORE=.TEST">ItemsDB_XMLBean_Client.jws</a>
098       <a href="http://localhost:7001/WebServices/database/customer_db/CustomerDBClient.jws?.EXPLORE=.TEST"><br>CustomerDBClient.jws</a><br>
099       <a href="http://localhost:7001/WebServices/database/lucky_number_db/LuckyNumberDBClient.jws?.EXPLORE=.TEST">LuckyNumberDBClient.jws</a><br>
100       </p>
101       <p>Sources: /WebServices/database</p>       
102     </td>
103   </tr>
104   <tr valign="top">
105     <td width="25">&nbsp;</td>
106     <td width="120" valign="top">&nbsp;</td>
107     <td width="5">&nbsp;</td>
108     <td valign="top">
109       <hr size="1" align="left">
110       <p><b>EJB control samples</b></p>
111       <p>
112       <a href="http://localhost:7001/WebServices/ejbControl/AccountEJBClient.jws?.EXPLORE=.TEST">AccountEJBClient.jws</a><br>
113       <a href="http://localhost:7001/WebServices/ejbControl/TraderEJBClient.jws?.EXPLORE=.TEST">TraderEJBClient.jws</a><br>
114       </p>
115       <p>Sources: /WebServices/ejbControl</p>       
116     </td>
117   </tr>
118   
119   <tr valign="top">
120     <td width="25">&nbsp;</td>
121     <td width="120" valign="top">&nbsp;</td>
122     <td width="5">&nbsp;</td>
123     <td valign="top">
124       <hr size="1" align="left">
125       <p><b>.NET interoperability sample</b></p>
126       <p><a href="http://localhost:7001/WebServices/interop/dotNET/readme.html?.EXPLORE=.TEST">readme.html</a>
127       </p>
128       <p>Sources: /WebServices/interop/dotNET/ConversationClient.asmx.cs</p>       
129     </td>
130   </tr>
131   
132   <tr>
133     <td width="25">&nbsp;</td>
134     <td width="120" valign="top">&nbsp;</td>
135     <td width="5">&nbsp;</td>
136     <td valign="top">
137       <hr size="1" align="left">
138       <p><b>JMS control samples</b></p>
139       <p>
140       <a href="http://localhost:7001/WebServices/jms/AccountPublish.jws?.EXPLORE=.TEST">AccountPublish.jws</a><br>
141       <a href="http://localhost:7001/WebServices/jms/AccountSubscribe.jws?.EXPLORE=.TEST">AccountSubscribe.jws</a><br>
142       <a href="http://localhost:7001/WebServices/jms/CustomJMSClient.jws?.EXPLORE=.TEST">CustomJMSClient.jws</a><br>
143       <a href="http://localhost:7001/WebServices/jms/SimpleJMS.jws?.EXPLORE=.TEST">SimpleJMS.jws</a><br>
144       <a href="http://localhost:7001/WebServices/jms_xmlProtocol/JMS_XMLProtocol.jws?.EXPLORE=.TEST">JMS_XMLProtocol.jws</a>
145       </p>
146       <p>Sources: /WebServices/jms</p>       
147     </td>
148   </tr>
149   
150   <tr valign="top">
151     <td width="25">&nbsp;</td>
152     <td width="120" valign="top">&nbsp;</td>
153     <td width="5">&nbsp;</td>
154     <td valign="top">
155       <hr size="1" align="left">
156       <p><b>Inline custom control samples</b></p>
157       <p>
158       <a href="http://localhost:7001/WebServices/localControls/LocalControlTest.jws?.EXPLORE=.TEST">LocalControlTest.jws</a>
159       </p>
160       <p>Sources: /WebServices/localControls</p> 
161     </td>
162   </tr>
163   
164   <tr>
165     <td width="25">&nbsp;</td>
166     <td width="120" valign="top">&nbsp;</td>
167     <td width="5">&nbsp;</td>
168     <td valign="top">
169       <hr size="1" align="left">
170       <p><b>Proxy web service samples</b></p>
171       <p>
172       <a href="http://localhost:7001/WebServices/proxy/mazegen/MazeGenerator.jws?.EXPLORE=.TEST">MazeGenerator.jws</a><br>
173       <a href="http://localhost:7001/WebServices/proxy/register/RegisterPerson.jws?.EXPLORE=.TEST">RegisterPerson.jws</a>
174       </p>
175       <p>Sources: /WebServices/proxy</p>       
176     </td>
177   </tr>
178   <tr>
179     <td width="25">&nbsp;</td>
180     <td width="120" valign="top">&nbsp;</td>
181     <td width="5">&nbsp;</td>
182     <td valign="top">
183       <hr size="1" align="left">
184       <p><b>Web service security samples</b></p>      
185 
186       <table border="0" cellspacing="1" cellpadding="0">
187         <tr>
188           <td width="5%">&nbsp;</td>
189           <td colspan="3" valign="top" style="font-size:10px;">Role-based security samples</td>
190         </tr>
191         <tr>
192           <td colspan="2">&nbsp;</td>
193           <td style="font-size:10px;">User Accounts</td>
194           <td colspan="2"><a href="http://localhost:7001/WebServices/security/roleBased/createUser/createUser.jws?.EXPLORE=.TEST">createUser.jws</a></td>
195         </tr>
196         <tr>
197           <td width="10%" colspan="2">&nbsp;</td>
198           <td style="font-size:10px;">Authorization:</td>
199           <td colspan="2"><a href="http://localhost:7001/WebServices/security/roleBased/Bank.jws?.EXPLORE=.TEST">Bank.jws</a></td>
200         </tr>
201         <tr>
202           <td width="5%">&nbsp;</td>
203           <td colspan="3" valign="top" style="font-size:10px;">Transport security samples</td>
204         </tr>
205         <tr>
206           <td width="10%" colspan="2">&nbsp;</td>
207           <td style="font-size:10px;">Basic authentication:</td>
208           <td align="left"><a href="http://localhost:7001/WebServices/security/transport/basicAuthentication/BasicAuthentication.jws?.EXPLORE=.TEST">BasicAuthentication.jws</a></td>
209         </tr>
210         <tr>
211           <td width="10%" colspan="2">&nbsp;</td>
212           <td style="font-size:10px;">Client certificate:</td>
213           <td align="left"><a href="http://localhost:7001/WebServices/security/transport/clientCert/WebServiceA.jws?.EXPLORE=.TEST">WebServiceA.jws</a></td>
214         </tr>
215         <tr>
216           <td width="10%" colspan="2">&nbsp;</td>
217           <td style="font-size:10px;">One-way SSL:</td>
218           <td align="left"><a href="http://localhost:7001/WebServices/security/transport/helloWorldSecure/HelloWorldSecureClient.jws?.EXPLORE=.TEST">HelloWorldSecureClient.jws</a></td>
219         </tr>
220         <tr>
221           <td width="5%">&nbsp;</td>
222           <td colspan="3" valign="top" style="font-size:10px;">WS-Security samples</td>
223         </tr>
224         <tr>
225           <td width="10%" colspan="2">&nbsp;</td>
226           <td style="font-size:10px;">Callback:</td>
227           <td align="left"><a href="http://localhost:7001/WebServices/security/wsse/callback/client/Client.jws?.EXPLORE=.TEST">Client.jws</a></td>
228         </tr>
229         <tr>
230           <td width="10%" colspan="2">&nbsp;</td>
231           <td style="font-size:10px;">Request/Response:</td>
232           <td align="left"><a href="http://localhost:7001/WebServices/security/wsse/reqResp/client/Client.jws?.EXPLORE=.TEST">Client.jws</a></td>
233         </tr>
234         <tr>
235           <td width="10%" colspan="2">&nbsp;</td>
236           <td style="font-size:10px;">User token:</td>
237           <td align="left"><a href="http://localhost:7001/WebServices/security/wsse/usertoken/webServiceA/WebServiceA.jws?.EXPLORE=.TEST">WebServiceA.jws</a></td>
238         </tr>
239       </table>
240     <p>Sources: /WebServices/security</p> 
241     </td>
242   </tr>
243   
244   <tr>
245     <td width="25">&nbsp;</td>
246     <td width="120" valign="top">&nbsp;</td>
247     <td width="5">&nbsp;</td>
248     <td valign="top">
249       <hr size="1" align="left">
250       <p><b>SOAP Header samples</b></p>
251       <p>
252       <a href="http://localhost:7001/WebServices/soapHeaders/multipleHeaders.jws?.EXPLORE=.TEST">multipleHeaders.jws</a><br>
253       </p>
254       <p>
255       <a href="http://localhost:7001/WebServices/soapHeaders/mySoap11Service.jws?.EXPLORE=.TEST">mySoap11Service.jws</a><br>
256       </p>
257       <p>
258       <a href="http://localhost:7001/WebServices/soapHeaders/mySoap12Service.jws?.EXPLORE=.TEST">mySoap12Service.jws</a><br>
259       </p>
260       <p>Sources: /WebServices/soapHeaders</p>       
261     </td>
262   </tr>
263  <tr>
264     <td width="25">&nbsp;</td>
265     <td width="120" valign="top">&nbsp;</td>
266     <td width="5">&nbsp;</td>
267     <td valign="top">
268       <hr size="1" align="left">
269       <p><b>Service control samples</b></p>
270       <p>
271       <a href="http://localhost:7001/WebServices/service/QuoteClient.jws?.EXPLORE=.TEST">QuoteClient.jws</a><br>
272       </p>
273       <p>Sources: /WebServices/service</p>       
274     </td>
275   </tr>
276   
277   <tr>
278     <td width="25">&nbsp;</td>
279     <td width="120" valign="top">&nbsp;</td>
280     <td width="5">&nbsp;</td>
281     <td valign="top">
282       <hr size="1" align="left">
283       <p><b>Timer control samples</b></p>
284       <p>
285       <a href="http://localhost:7001/WebServices/timer/AdvancedTimer.jws?.EXPLORE=.TEST">AdvancedTimer.jws</a><br>
286       <a href="http://localhost:7001/WebServices/timer/SimpleTimer.jws?.EXPLORE=.TEST">SimpleTimer.jws</a>
287       </p>
288       <p>Sources: /WebServices/timer</p>       
289     </td>
290   </tr>
291   <tr>
292     <td width="25">&nbsp;</td>
293     <td width="120" valign="top">&nbsp;</td>
294     <td width="5">&nbsp;</td>
295     <td valign="top">
296       <hr size="1" align="left">
297       <p><b>XMLBeans samples</b></p>
298       <p>
299     <table border="0" cellspacing="1" cellpadding="0">
300         <tr>
301           <td width="5%">&nbsp;</td>
302           <td colspan="3" valign="top" style="font-size:10px;">Cursor samples</td>
303         </tr>
304         <tr>
305           <td width="10%" colspan="2">&nbsp;</td>
306           <td colspan="2"><a href="http://localhost:7001/WebServices/xmlBeans/cursor/MixedContent.jws?.EXPLORE=.TESTXML">MixedContent.jws</a></td>
307         </tr>
308         <tr>
309           <td width="10%" colspan="2">&nbsp;</td>
310           <td colspan="2"><a href="http://localhost:7001/WebServices/xmlBeans/cursor/TokenTypes.jws?.EXPLORE=.TESTXML">TokenTypes.jws</a></td>
311         </tr>
312         <tr>
313           <td width="5%">&nbsp;</td>
314           <td colspan="3" valign="top" style="font-size:10px;">Schema samples</td>
315         </tr>
316         <tr>
317           <td width="10%" colspan="2">&nbsp;</td>
318           <td colspan="2" align="left"><a href="http://localhost:7001/WebServices/xmlBeans/schema/SchemaChoice.jws?.EXPLORE=.TESTXML">SchemaChoice.jws</a></td>
319         </tr>
320         <tr>
321           <td width="10%" colspan="2">&nbsp;</td>
322           <td colspan="2" align="left"><a href="http://localhost:7001/WebServices/xmlBeans/schema/SchemaEnum.jws?.EXPLORE=.TESTXML">SchemaEnum.jws</a></td>
323         </tr>
324         <tr>
325           <td width="10%" colspan="2">&nbsp;</td>
326           <td colspan="2" align="left"><a href="http://localhost:7001/WebServices/xmlBeans/schema/SimpleAccess.jws?.EXPLORE=.TESTXML">SimpleAccess.jws</a></td>
327         </tr>
328         <tr>
329           <td width="10%" colspan="2">&nbsp;</td>
330           <td colspan="2" align="left"><a href="http://localhost:7001/WebServices/xmlBeans/schema/ThresholdService.jws?.EXPLORE=.TESTXML">ThresholdService.jws</a></td>
331         </tr>
332         <tr>
333           <td width="10%" colspan="2">&nbsp;</td>
334           <td colspan="2" align="left"><a href="http://localhost:7001/WebServices/xmlBeans/schema/XsdConfig.jws?.EXPLORE=.TESTXML">XsdConfig.jws</a></td>
335         </tr>
336         <tr>
337           <td width="5%">&nbsp;</td>
338           <td colspan="3" valign="top" style="font-size:10px;">XQuery samples</td>
339         </tr>
340         <tr>
341           <td width="10%" colspan="2">&nbsp;</td>
342           <td colspan="2" align="left"><a href="http://localhost:7001/WebServices/xmlBeans/xquery/SelectPath.jws?.EXPLORE=.TESTXML">SelectPath.jws</a></td>
343         </tr>
344         <tr>
345           <td width="10%" colspan="2">&nbsp;</td>
346           <td colspan="2" align="left"><a href="http://localhost:7001/WebServices/xmlBeans/xquery/SimpleExpressions.jws?.EXPLORE=.TESTXML">SimpleExpressions.jws</a></td>
347         </tr>
348       </table>      
349       </p>
350       <p>Sources: /WebServices/xmlBeans</p>      
351     </td>
352   </tr>
353   <tr>
354     <td width="25">&nbsp;</td>
355     <td width="120" valign="top">&nbsp;</td>
356     <td width="5">&nbsp;</td>
357     <td valign="top">
358       <hr size="1" align="left">
359       <p><b>XQuery Map Samples</b></p>
360       <p>
361       <a href="http://localhost:7001/WebServices/xqueryMap/InputMapMultiple.jws?.EXPLORE=.TESTXML">InputMapMultiple.jws</a><br>
362       <a href="http://localhost:7001/WebServices/xqueryMap/OutputMap.jws?.EXPLORE=.TESTXML">OutputMap.jws</a><br>
363       <a href="http://localhost:7001/WebServices/xqueryMap/OutputScriptMap.jws?.EXPLORE=.TESTXML">OutputScriptMap.jws</a><br>
364       <a href="http://localhost:7001/WebServices/xqueryMap/SimpleMap.jws?.EXPLORE=.TESTXML">SimpleMap.jws</a><br>
365       </p>
366       <p>Sources: /WebServices/xqueryMap</p>
367     </td>
368   </tr>
369   
370   <tr valign="top">
371     <td width=25>&nbsp;</td>
372     <td width=120 valign="top">&nbsp;</td>
373     <td width=5>&nbsp;</td>        
374     <td valign="top">
375      <hr size="1" align="left">    
376      <p>
377        Return to the WebLogic Workshop Samples 
378        <netui:anchor href="../GettingStarted/Controller.jpf">Home Page</netui:anchor>
379      </p>
380      <p>&nbsp;</p>    
381     </td>
382   </tr>  
383   
384 </table>
385 </body>
386 </html>