03.05.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Follow the steps below to use the generated test client in order to test the Web<br />

Service.<br />

1. Open the Server perspective or switch to it if you have it already open.<br />

2. Find the following ConsultationHelper folder by clicking itsobankWeb -> Web<br />

Content -> sample -> ConsultationHelper.<br />

3. Right-click the TestClient.jsp file, then select Run on Server. A Web browser<br />

opens with the requested URL.<br />

A window appears with three frames. In the leftmost frame, the following<br />

methods should be listed:<br />

– setEndPoint<br />

– getEndPoint<br />

– getBranchBalance<br />

– getCustomerBalance<br />

4. Click the getBranchBalance link.<br />

5. The upper-right frame changes: a text field appears for you to input the<br />

branch ID. Type raleigh into the field, then click Invoke.<br />

6. After invocation, the result frame changes and, after a couple of seconds and<br />

several messages on the console, the result should appear in the frame.<br />

7. Check the getCustomerBalance method also, with the following parameters:<br />

– Customer ID: johnd<br />

– Account Number: 11223344-12345678<br />

If the code is working, you should see the proper numbers under the result<br />

frame after invoking the methods with the parameters.<br />

XML-SOAP Admin Tool<br />

The Web Services Admin tool is provided for the sample Web Services and is<br />

generated automatically with the code. Start a browser, then enter the following<br />

URL:<br />

http:///itsobank/admin/index.html<br />

Click the list all services link to see all the available services for this sample;<br />

you should see a window similar to Figure 7-12.<br />

136 <strong>IBM</strong> <strong>WebSphere</strong> <strong>V5.0</strong> <strong>Security</strong> Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!