Bottom-up Web service with custom mapping

Description:

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).

Instructions:

Unzip this into a directory:

Custom-MapAddressBookDiffPkg.zip

Part 1: Creating the Web Service using the Web Services Wizard.

Workspace set-up, and launching the wizard.
  1. Create a dynamic Web project named address.
  2. Select the "Java Resources" folder under the newly created "address" Web Project, right click and choose "Import..."
  3. Choose "File system", click next.
  4. Choose the directory  "Custom-MapAddressBookDiffPkg" and  import  the directories and java files under "webservice"
  5. Expand, and highlight on AddressBook.java in Web perspective.
  6. 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.
Web Services page.
  1. Choose "Java Web service" as the Web service type.
  2. Enable "Generate a proxy" checkbox.
  3. Enable "Test the generated proxy" checkbox.
  4. Enable "Overwrite files without warning".
  5. Enable "Create folders when necessary".
  6. Click Next.
Service Deployment Configuration page
  1. Under the Server-Side Deployment Selection, make sure "Apache Axis" is selected as the Web service runtime.
  2. choose server which supports Apache Axis 1. 0 (optional).
  3. Accept the default Web project (address)
  4. Under the Client-Side Environment Selection, ake sure "Apache Axis" is selected.
  5. choose server which supports Apache Axis.
  6. Accept the default client Web project, or
  7. enter your own Web project name (optional)
  8. Click Next.
Web Service Java Bean Selection
  1. Make sure the bean name is webservice.addressbookTest.AddressBook.
  2. Click Next
Web Service Java Bean Identity
  1. Enable the check box "Define custom mapping for package to namespace".
  2. Click next.
Web Service package to namespace mapping
  1. Click Add
  2. replace "default.javapackage" under package to "webservice.addressbooksimple" and replace "http://default.namespace" to "http://phone.test"
  3. Click Add
  4. replace "default.javapackage" under package to "webservice.addressbooktest" and replace "http://default.namespace" to "http://service.test"
  5. Click Add
  6. replace "default.javapackage" under package to "webservice.addressbooktest2" and replace "http://default.namespace" to "http://address.test"
  7. Click Next repeatly and take everything as default, or Finish to complete Web service creation with default settings (optional).
Web Service Test
  1. Use the sample JSP and make sure you can invoke the service.