Defining the imports and exports

The imports and exports are defined and initially connected for the mediation modules.

Procedure

  1. Select File > Import.
  2. Select Business integration > WSDL/Interface and click Next.
  3. Click Browse... and locate the component services WSDL directory:
    • WindowsWC_eardir/WebServicesRouter.war/component-services/wsdl
    • WebSphere Commerce DeveloperWCDE_installdir/workspace/WebServicesRouter/WebContent/component-services/wsdl
  4. Select OrderServices.wsdl and select ExtOMSSimModule as the target module.
  5. Click Finish.
  6. Select the Physical Resources tab and expand ExtOMSSimMediationModule > xsd > OAGIS > 9.0 > Overlays > IBM > Commerce > Resources > Components.
  7. Right-click BaseTypes.xsd and select Open With... > XML Schema Editor.
  8. Select the Source tab and locate the following snippet:
    
    <complexType ecore:instanceClass="java.util.Map$Entry" name="NameValuePairType">
     <annotation>
      <documentation>The type definition of a NameValuePair.</documentation>
     </annotation>
     <simpleContent>
      <extension base="string">
       <attribute ecore:name="key" name="name" type="string" use="required">
        <annotation>
         <documentation>Name of the NameValuePair.</documentation>
        </annotation>
       </attribute>
      </extension>
     </simpleContent>
    </complexType>
    
  9. Replace it with the following snippet to remove the EMF annotations from the XSD:
    
    <complexType name="NameValuePairType">
     <annotation>
      <documentation>The type definition of a NameValuePair.</documentation>
     </annotation>
     <simpleContent>
      <extension base="string">
       <attribute name="name" type="string" use="required">
        <annotation>
         <documentation>Name of the NameValuePair.</documentation>
        </annotation>
       </attribute>
      </extension>
     </simpleContent>
    </complexType>
    
  10. Save the changes and close the file.
  11. Select File > Import.
  12. Select Business integration > WSDL/Interface and click Next.
  13. Click Browse... and locate the DOM integration WSDL directory:
    • WindowsWC_eardir/WebServicesRouter.war/dom-integration/wsdl
    • WebSphere Commerce DeveloperWCDE_installdir/workspace/WebServicesRouter/WebContent/dom-integration/wsdl
  14. Select InventoryServices.wsdl and select ExtOMSSimMediationModule as the target module. Ignore any file dependency warnings that appear.
  15. Click Finish.
  16. Select File > Import.
  17. Select Business integration > WSDL/Interface and click Next.
  18. Click Browse... and locate the External OMS Simulator WSDL directory:
    • WindowsExtOMSSim_eardir/ExtOMSSimWeb.war/wsdl/test
    • WebSphere Commerce DeveloperWCDE_installdir/workspace/ExtOMSSimWeb/WebContent/wsdl/test
  19. Select ExtOMSSim.wsdl and select ExtOMSSimMediationModule as the target module.
  20. Click Finish.
  21. In the ExtOMSSimMediationModule Assembly Diagram view, right-click a blank spot in the assembly diagram and select Add > Export. An export named Export1 is added to the assembly diagram.
  22. Select the export and select the Properties tab.
  23. In the Properties view, change the name of the export to OrderServices.
  24. In the assembly diagram, right-click the export and select Add Interface.
  25. Select OrderServicesPortType and click OK.
  26. Navigate your mouse cursor over the export's border where its connector and the Add wire tooltip are visible. Drag the connector to ExtOMSSimMediationModule.
  27. Click OK to confirm the action. A connection between the export and ExtOMSSimMediationModule is created.

    Connection diagram for the export

  28. Repeat steps 21 through 27 to create another export with the following name and interface:
    OptionDescription
    Name InventoryServices
    Interface InventoryServicesPortType
    Connect the export to ExtOMSSimMediationModule.
  29. In the assembly diagram, right-click a blank spot and select Add > Import. An import named Import1 is added to the assembly diagram.
  30. Select the import and select the Properties tab.
  31. In the Properties view, change the name of the import to ExtOMSSim.
  32. In the assembly diagram, right-click the import and select Add Interface.
  33. Select ExtOMSSim and click OK.
  34. In the assembly diagram, select ExtOMSSimMediationModule. Navigate your mouse cursor over its border where its connector and the Add wire tooltip are visible.
  35. Drag the connector to the import and click OK to confirm the action. A connection between ExtOMSSimMediationModule and the import is created.

    Connection diagram for the import

  36. Select File > Save to save your changes.