Deprecated feature: Get Order
The GetOrder outbound service interface is used to retrieve order statuses from an external system.
Request
Request to this outbound service
interface is in the form of a GetOrder business
object document (BOD). The definition of the GetOrder BOD
can be found in the XML schema file WC_eardir/WebServicesRouter.war/xsd/OAGIS/9.0/Overlays/IBM/Commerce/BODs/GetOrder.xsd.
The service data object (SDO) interface of the GetOrder BOD
is com.ibm.commerce.order.datatypes.GetOrderType.
Response
Response to a successful request
is in the form of a ShowOrder BOD. The XML schema
of the ShowOrder BOD can be found in the XML schema
file WC_eardir/WebServicesRouter.war/xsd/OAGIS/9.0/Overlays/IBM/Commerce/BODs/ShowOrder.xsd.
The service data object (SDO) interface of the ShowOrder BOD
is com.ibm.commerce.order.datatypes.ShowOrderType.
Message type
This outbound service interface
is mapped to the message type com.ibm.commerce.order.GetOrder,
or com.ibm.commerce.order if the former is not defined.
Client task command
This outbound service
interface can be invoked by calling the order client task command
com.ibm.commerce.order.client.commands.GetOrderCmd with
action GetOrder. Its default implementation, com.ibm.commerce.order.client.commands.GetOrderCmdImpl ,
behaves as follows:
- It first calls the protected method
composeGetOrder()to compose aGetOrderSDO from the search criteria specified. - It then passes the action and the
GetOrderSDO to the order client facade implementation to make the outbound service request.
Usage scenarios
List order statuses
- To list the statuses of orders that are submitted by a shopper,
the data bean manager activates the order client data bean
com.ibm.commerce.order.client.beans.OrderStatusListDataBean. - The corresponding data bean command
com.ibm.commerce.order.client.commands.PopulateOrderStatusListDataBeanCmdis called to populate the data bean. - The default implementation of this data bean command,
com.ibm.commerce.order.client.commands.PopulateOrderStatusListDataBeanCmdImpl, calls the order client task commandcom.ibm.commerce.order.client.commands.GetOrderCmdwith actionGetOrderand the appropriate search criteria to retrieve statuses of orders that are already transferred to the external system.
Display order details
- To display the details of a submitted order, the data bean manager
activates the order client data bean
com.ibm.commerce.order.client.beans.OrderStatusDataBean. - The corresponding data bean command
com.ibm.commerce.order.client.commands.PopulateOrderStatusDataBeanCmdis called to populate the data bean. - If the order is transferred to the external system, the default
implementation of this data bean command,
com.ibm.commerce.order.client.commands.PopulateOrderStatusListDataBeanCmdImpl, calls the order client task commandcom.ibm.commerce.order.client.commands.GetOrderCmdwith actionGetOrderand the appropriate search criteria to retrieve the details of the order from the external system.