| <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> |
| <html> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| <meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <title>AddressBookScript.html</title> |
| <!-- Commented out. Stylesheet does not exist. |
| <link href="theme/Master.css" rel="stylesheet" type="text/css"> |
| --> |
| </head> |
| <body> |
| |
| <h3> |
| <br> |
| <font size=+3>Bottom-up Web service with custom mapping</font></h3> |
| |
| <h2> |
| Description:</h2> |
| This test will cover the complex type and nested complex type buttom-up |
| Java Web service creation scenarios (custom mapping enabled). AddressBook |
| contains a complex type (Address), which also contains a complex type (PhoneNumber). |
| |
| <h2> |
| Instructions:</h2> |
| <p>Unzip this into a directory: </p> |
| <a href="Custom-MapAddressBookDiffPkg.zip"> Custom-MapAddressBookDiffPkg.zip </a> |
| <h3> |
| Part 1: Creating the Web Service using the Web Services Wizard.</h3> |
| Workspace set-up, and launching the wizard. |
| <ol> |
| <li> |
| Create a dynamic Web project named address.</li> |
| |
| <li> |
| Select the "Java Resources" folder under the newly created "address" Web |
| Project, right click and choose "Import..."</li> |
| |
| <li> |
| Choose "File system", click next.</li> |
| |
| <li> |
| Choose the directory "Custom-MapAddressBookDiffPkg" and import |
| the directories and java files under "webservice"</li> |
| |
| <li> |
| Expand, and highlight on AddressBook.java in Web perspective.</li> |
| |
| <li> |
| Start Web services wizard by clicking on the "New Wizard" button located |
| at the top left-hand corner, then select Web services in the left listbox, |
| followed by the "Web service" in the right. Click Next.</li> |
| </ol> |
| Web Services page. |
| <ol> |
| <li> |
| Choose "Java Web service" as the Web service type.</li> |
| |
| <li> |
| Enable "Generate a proxy" checkbox.</li> |
| |
| <li> |
| Enable "Test the generated proxy" checkbox.</li> |
| |
| <li> |
| Enable "Overwrite files without warning".</li> |
| |
| <li> |
| Enable "Create folders when necessary".</li> |
| |
| <li> |
| Click Next.</li> |
| </ol> |
| <span>Service Deployment Configuration page</span> |
| <ol> |
| <li> |
| Under the Server-Side Deployment Selection, make sure "Apache Axis" |
| is selected as the Web service runtime.</li> |
| |
| <li> |
| choose server which supports Apache Axis 1. 0 (optional).</li> |
| |
| <li> |
| Accept the default Web project (address)</li> |
| |
| <li> |
| Under the Client-Side Environment Selection, ake sure "Apache Axis" |
| is selected.</li> |
| |
| <li> |
| choose server which supports Apache Axis.</li> |
| |
| <li> |
| Accept the default client Web project, or</li> |
| |
| <li> |
| enter your own Web project name (optional)</li> |
| |
| <li> |
| Click Next.</li> |
| |
| </ol> |
| Web Service Java Bean Selection |
| <ol> |
| <li> |
| Make sure the bean name is webservice.addressbookTest.AddressBook.</li> |
| |
| <li> |
| Click Next</li> |
| </ol> |
| Web Service Java Bean Identity |
| <ol> |
| <li> |
| Enable the check box "Define custom mapping for package to namespace".</li> |
| |
| <li> |
| Click next.</li> |
| </ol> |
| Web Service package to namespace mapping |
| <ol> |
| <li> |
| Click Add</li> |
| |
| <li> |
| replace "default.javapackage" under package to "webservice.addressbooksimple" |
| and replace "http://default.namespace" to "http://phone.test"</li> |
| |
| <li> |
| Click Add</li> |
| |
| <li> |
| replace "default.javapackage" under package to "webservice.addressbooktest" |
| and replace "http://default.namespace" to "http://service.test"</li> |
| |
| <li> |
| Click Add</li> |
| |
| <li> |
| replace "default.javapackage" under package to "webservice.addressbooktest2" |
| and replace "http://default.namespace" to "http://address.test"</li> |
| |
| <li> |
| Click Next repeatly and take everything as default, or Finish to complete |
| Web service creation with default settings (optional).</li> |
| </ol> |
| Web Service Test |
| <ol> |
| <li> |
| Use the sample JSP and make sure you can invoke the service.</li> |
| </ol> |
| |
| </body> |
| </html> |