The external OMS simulator mediation module is configured to communicate with WebSphere Enterprise Service Bus
(WESB).
You can obtain the ExtOMSSimMediationModule.ear by completing Building a WESB mediation module for DOM integration and then exporting the mediation module as an EAR
file.
And as a shortcut, the final step contains a completed ExtOMSSimMediationModuleProjectInterchange.zip project interchange file. You can import the project
interchange into the WID workspace, follow the steps to copy the Foundation-Core.jar and Foundation-Server.jar to the
mediation module project, and then export the mediation module as an EAR file.
Note: The XSD resources provided within this project are from the base version. Before proceeding, ensure you
replace all .xsd and .wsdl files within this project with the lastest copies from your environment. These can be found in
WebServicesRouter.war/component-services/xsd/
Procedure
-
Start the WebSphere Commerce Server.
-
Stop the WebSphere Enterprise Service Bus server.
-
Log off the WebSphere Enterprise Service Bus Administrative Console.
-
Install the ExtOMSSimMediationModule.ear file.
-
Update the endpoint URL of the ExtOMSSim web services import binding:
-
In the navigation pane, expand to list the SCA modules.
-
Choose the ExtOMSSimMediationModule module.
-
In the content pane, expand Imports under Module components
to list the SCA module imports.
-
Expand the ExtOMSSim import.
-
Expand Binding to display its import bindings.
-
Choose the Web service [ExtOMSSimService/ExtOMSSim] import binding.
-
Change the endpoint URL to http://hostname:9980/ExtOMSSimWeb/services/ExtOMSSim
-
Save your changes to the master configuration.
-
Ensure that the mediation module has been successfully enabled by navigating to the following
URL:http://hostname:9080/ExtOMSSimMediationModuleWeb/sca/InventoryServices/wsdl/wsdl/ExtOMSSimMediationModule_InventoryServices.wsd
- Optional:
Use a web services client to test the mediation module.
For example, the following request tests the mediation between the WebSphere Commerce GetInventoryAvailability
web services operation and the external OMS simulator getInventory web services operation:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username/>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-token-profile-1.0#PasswordText"/>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body><xinv:GetInventoryAvailability
versionID="6.0.0.4"
xmlns:Oagis9="http://www.openapplications.org/oagis/9"
xmlns:_wcf="http://www.ibm.com/xmlns/prod/commerce/9/foundation"
xmlns:xinv="http://www.ibm.com/xmlns/stdwip/commerce/9/isswinventory"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Oagis9:ApplicationArea xsi:type="_wcf:ApplicationAreaType">
<Oagis9:CreationDateTime>2008-10-21T13:48:23.656Z</Oagis9:CreationDateTime>
<Oagis9:BODID>74ad4222-9f98-11dd-bc43-837748fdf600</Oagis9:BODID>
<_wcf:BusinessContext/>
</Oagis9:ApplicationArea>
<xinv:DataArea>
<Oagis9:Get>
<Oagis9:Expression
expressionLanguage="_wcf:XPath">{_wcf.ap=IBM_Store_Details}/InventoryAvailability
[InventoryAvailabilityIdentifier/ExternalIdentifier[CatalogEntryIdentifier/ExternalIdentifier[(PartNumber='FULO-0101')]
and OnlineStoreIdentifier/ExternalIdentifier[(NameIdentifier='Madisons')]]]
</Oagis9:Expression>
</Oagis9:Get>
</xinv:DataArea>
</xinv:GetInventoryAvailability>
</soapenv:Body>
</soapenv:Envelope>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<xinv:ShowInventoryAvailability
xmlns:_wcf="http://www.ibm.com/xmlns/prod/commerce/9/foundation"
xmlns:oa="http://www.openapplications.org/oagis/9"
xmlns:udt="http://www.openapplications.org/oagis/9/unqualifieddatatypes/1.1"
xmlns:xinv="http://www.ibm.com/xmlns/stdwip/commerce/9/isswinventory">
<oa:ApplicationArea>
<oa:CreationDateTime xsi:type="udt:DateTimeType">2008-10-21T19:05:27Z</oa:CreationDateTime>
</oa:ApplicationArea>
<xinv:DataArea>
<xinv:InventoryAvailability>
<xinv:InventoryAvailabilityIdentifier>
<xinv:ExternalIdentifier>
<xinv:CatalogEntryIdentifier>
<_wcf:ExternalIdentifier>
<_wcf:PartNumber>FULO-0101</_wcf:PartNumber>
</_wcf:ExternalIdentifier>
</xinv:CatalogEntryIdentifier>
<xinv:OnlineStoreIdentifier>
<_wcf:ExternalIdentifier>
<_wcf:NameIdentifier>Madisons</_wcf:NameIdentifier>
</_wcf:ExternalIdentifier>
</xinv:OnlineStoreIdentifier>
</xinv:ExternalIdentifier>
</xinv:InventoryAvailabilityIdentifier>
<xinv:InventoryStatus xsi:type="xinv:InventoryStatusEnumerationType">Available</xinv:InventoryStatus>
<xinv:AvailableQuantity uom="C62">100.0</xinv:AvailableQuantity>
</xinv:InventoryAvailability>
</xinv:DataArea>
</xinv:ShowInventoryAvailability>
</soapenv:Body>
</soapenv:Envelope>
-
Log off the WebSphere Enterprise Service Bus Administrative Console.
-
Stop the WebSphere Enterprise Service Bus server.
-
Stop the WebSphere Commerce Server.