Generating the MyCompanyMember data objects from the external system WSDL

In this lesson, you generate Java objects that are called service data objects (SDO) from the MyCompanyMemberServices.wsdl. These objects represent the request and response messages to the sample web service.


  1. Download the file MyCompanyMemberServices.wsdl to a temporary location on your hard disk drive.
  2. Start WebSphere Commerce Developer.
  3. In the Enterprise Explorer view, create the project MyCompanyMemberDataObjects from the external system WSDL.
    1. Select File > New > Project.
    2. Expand the Eclipse Modeling Framework folder.
    3. Select EMF Project.

      EMF Project selection screen capture

    4. Click Next.
    5. In the Project name field type MyCompanyMemberDataObjects.
    6. Click Next.
    7. Ensure that XML Schema is selected; click Next.
    8. Click Browse File System.
    9. Navigate to the downloaded file MyCompanyMemberServices.wsdl.
    10. Click Load.
    11. Click Next.
    12. Select the com.mycompany.commerce.member.facade.datatypes package.

      Select the datatypes package

    13. Click Finish.
  4. Configure the MyCompanyMemberServices model that is generated in the previous step. This configuration is used to generate the SDOs 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 that you are creating from other models that can be on the system.

      In the Properties view, update the Prefix to Member

    6. Save the file.
    7. Set your EMF genmodel properties to generate 2.2 compatible objects.
  5. Generate the SDOs from the MyCompanyMemberServices model.
    1. Right-click the MyCompanyMemberServices root element and select Set SDO Defaults.

      Setting the SDO Defaults screen capture

    2. Save the file.
    3. Right-click the MyCompanyMemberServices root element and select Generate Model Code.

What to do next

After you complete these steps, the MyCompanyMember service data objects are generated. The next step is implementing the MyCompanyMember API.