Tutorials > Program model > Web services > Create an outbound Web service client for WebSphere Commerce

< Previous | Next >


Generate the MyCompanyMember data objects from the external system WSDL

In this step we will generate Java objects called service data objects (SDO) from the MyCompanyMemberServices.wsdl. These objects represent the request and response messages to the sample Web service.


Procedure

  1. Start WebSphere Commerce Developer.

  2. Open the Java EE perspective.

  3. Create the MyCompanyMemberDataObjects project from the external system WSDL.

    1. Select File > New > Project.

    2. Expand the Eclipse Modeling Framework folder.

    3. Select EMF Project.

    4. Click Next.

    5. In the Project name field type MyCompanyMemberDataObjects.

    6. Click Next.

    7. Ensure XML Schema is selected, Click Next.

    8. Click Browse File System.

    9. Save MyCompanyMemberServices.wsdl to a temporary location on the hard drive.

    10. Navigate to MyCompanyMemberServices.wsdl downloaded in the previous step.

    11. Click Load.

    12. Click Next.

    13. Select the datatypes package.

    14. Click Finish.

  4. Configure the MyCompanyMemberServices model generated in the previous step. This configuration is used to generate the SDO's in the next step.

    1. In the Enterprise Explorer view, expand MyCompanyMemberDataObjects > model.

    2. Open MyCompanyMemberServices.genmodel.

    3. Expand the MyCompanyMemberServices model.

    4. Select the Datatypes element in the model.

    5. In the Properties view, update the Prefix to Member. This prefix string differentiates the Web service model you are creating from other models which may be located on the system.

    6. Save the file (Ctrl S).

  5. Generate the SDOs from the MyCompanyMemberServices model.

    1. Right-click on the MyCompanyMemberServices root element and select Set SDO Defaults.

    2. Save the file (Ctrl S).

    3. Right-click on the MyCompanyMemberServices root element and select Generate Model Code.

After completing these steps, the MyCompanyMember service data objects have been generated. The next step is implementing the MyCompanyMember API.

< Previous | Next >


+

Search Tips   |   Advanced Search