Chapter 14. WebSphere MQ Integrator components 235
14.8 AcknowledgementWSGW message flow
The AcknowledgementWSGW message flow shown in Figure 14-20 transforms
well-formed XML from Web Services Gateway to an XML-like IDoc structure.
Figure 14-20 AcknowledgementWSGW message flow
To build the message flow, we need to:
򐂰 Create a new message flow and name it AcknowledgementWSGW.
򐂰 Drag and drop message flow nodes into the message flow definition panel.
򐂰 Rename, connect and customize the nodes we describe in Table 14-5.
Table 14-5 Summary of the AcknowledgementWSGW message flow
14.8.1 Compute node: XML to IDoc XML properties
Double-clicking the Compute node should bring up the Compute node
properties window (Figure 14-21 on page 236).
Node type Node name Output
terminals
Connects
to the node
Properties
Input Terminal ACK Out Compute No properties to set
Compute XML to IDoc
XML
Failure
Out
-
MQOutput
Refer to: 14.8.1, “Compute node: XML to
IDoc XML properties” on page 235
MQOutput Send reply
to SAP
Failure
Out
-
-
Queue Manager Name: WMQI
Queue Name: SAPALEREQUEST
236 A B2B Solution using WebSphere Business Integration and WebSphere Business Connection
Figure 14-21 Compute XML to IDoc XML node
In the XML to IDoc XML tab, we:
1. Add Output Message:
sap_ordrsp_orders05 message set
2. Select Copy message headers.
3. Enter the ESQL as shown in Example 14-8 on page 237. We also supply this
ESQL in the file
ESQL_AcknowledgementWSGW_Compute_XMLtoIDocXML.txt.
Copy message headers
Inputs
ESQL
Chapter 14. WebSphere MQ Integrator components 237
Example 14-8 ESQL for XML to XML IDoc Compute node
--Set up the message Properties
SET OutputRoot.Properties.MessageSet = 'DQHU3I807C001';
SET OutputRoot.Properties.MessageType = 'sap_ordrsp_orders05';
SET OutputRoot.Properties.MessageDomain = 'MRM';
SET OutputRoot.Properties.MessageFormat = 'CwXML';
--Set up the MQMD format
SET OutputRoot.MQMD.Format = 'MQHRF2 ';
--Set the MQRFH2 properties
SET OutputRoot.MQRFH2.(MQRFH2.Field)Format = 'MQSTR ';
SET OutputRoot.MQRFH2.mcd.Msd = 'mrm';
SET OutputRoot.Properties.MessageSet = 'DQHU3I807C001';
SET OutputRoot.Properties.MessageType = 'sap_ordrsp_orders05';
SET OutputRoot.MQRFH2.mcd.Fmt = 'CwXML';
SET OutputRoot.MQRFH2.jms.Dst = 'queue:///SAPALEREQUEST';
--Set up the XML schema attributes
SET "OutputRoot"."MRM"."version" = '1.0.0';
SET "OutputRoot"."MRM"."delta" = 'false';
SET "OutputRoot"."MRM"."verb" = 'Create';
SET "OutputRoot"."MRM"."xmlns_xsi" =
'http://www.w3.org/2001/XMLSchema-instance';
SET "OutputRoot"."MRM"."xmlns_sap_ordrsp_orders05" =
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/sap_ordrsp_orders05';
SET "OutputRoot"."MRM"."xmlns_bx" =
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema';
SET "OutputRoot"."MRM"."xmlns_sap_idoccontrol" =
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/sap_idoccontrol';
SET "OutputRoot"."MRM"."xmlns_sap_ordrsp_orders05_cwdata" =
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/sap_ordrsp_orders05_cwd
ata';
SET "OutputRoot"."MRM"."xmlns_sap_ordrsp_orders05_e2edk01005" =
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/sap_ordrsp_orders05_e2e
dk01005';
SET "OutputRoot"."MRM"."xmlns_sap_ordrsp_orders05_e2edk14" =
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/sap_ordrsp_orders05_e2e
dk14';
SET "OutputRoot"."MRM"."xsi_schemaLocation" =
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/sap_ordrsp_orders05
sap_ordrsp_orders05.xsd';
--Set up IDocControl mandatory properties
SET
"OutputRoot"."MRM"."Control_record"."sap_idoccontrol"."Name_of_table_structure"
= 'EDI_DC40';
SET "OutputRoot"."MRM"."Control_record"."sap_idoccontrol"."Client" = 404;
238 A B2B Solution using WebSphere Business Integration and WebSphere Business Connection
SET
"OutputRoot"."MRM"."Control_record"."sap_idoccontrol"."Direction_for_IDoc_trans
mission" = '2';
SET "OutputRoot"."MRM"."Control_record"."sap_idoccontrol"."Name_of_basic_type"
= 'ORDERS05';
SET
"OutputRoot"."MRM"."Control_record"."sap_idoccontrol"."Logical_message_type" =
'ORDRSP';
SET "OutputRoot"."MRM"."Control_record"."sap_idoccontrol"."Sender_port" =
'WBIA';
SET
"OutputRoot"."MRM"."Control_record"."sap_idoccontrol"."Partner_type_of_sender"
= 'LS';
SET
"OutputRoot"."MRM"."Control_record"."sap_idoccontrol"."Partner_number_of_sender
" = 'WBIA';
SET
"OutputRoot"."MRM"."Control_record"."sap_idoccontrol"."Partner_type_of_recipien
t" = 'LS';
SET
"OutputRoot"."MRM"."Control_record"."sap_idoccontrol"."Partner_number_of_recipi
ent" ='ITSO5404';
--Set up mandatory segment for IDoc ORDERS05, ORDRSP
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk01005"."sap_ordrsp_orders05_e2edk01005" = 'E1EDK01';
--Map the XML into IDoc
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk01005"."sap_ordrsp_orders05_e2edk01005"."Action_code_for_the_whole_EDI
_message" = '000';
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk01005"."sap_ordrsp_orders05_e2edk01005"."IDOC_document_number" =
"InputRoot"."XML"."PurchaseOrder"."PurchaseOrderNumber";
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk14"[1]."sap_ordrsp_orders05_e2edk14"."IDOC_qualifer_organization" =
'006';
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk14"[1]."sap_ordrsp_orders05_e2edk14"."IDOC_organization" = '01';
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk14"[2]."sap_ordrsp_orders05_e2edk14"."IDOC_qualifer_organization" =
'007';
Chapter 14. WebSphere MQ Integrator components 239
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk14"[2]."sap_ordrsp_orders05_e2edk14"."IDOC_organization" = '01';
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk14"[3]."sap_ordrsp_orders05_e2edk14"."IDOC_qualifer_organization" =
'008';
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk14"[3]."sap_ordrsp_orders05_e2edk14"."IDOC_organization" = '0001';
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk14"[4]."sap_ordrsp_orders05_e2edk14"."IDOC_qualifer_organization" =
'012';
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk14"[4]."sap_ordrsp_orders05_e2edk14"."IDOC_organization" = 'ZXCW';
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edka1003"."sap_ordrsp_orders05_e2edka1003"[1]."Partner_function__e_g__sol
d_to_party__ship_to_party______" = 'AG';
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edka1003"."sap_ordrsp_orders05_e2edka1003"[1]."Partner_number" =
"InputRoot"."XML"."PurchaseOrder"."BusinessPartner"."ID";
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk02"."sap_ordrsp_orders05_e2edk02"[1]."IDOC_qualifier_reference_documen
t" = '002';
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edk02"."sap_ordrsp_orders05_e2edk02"[1]."IDOC_document_number" =
"InputRoot"."XML"."PurchaseOrder"."PartnerPurchaseOrderNumber";
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edp01006"."sap_ordrsp_orders05_e2edp01006"[1]."Action_code_for_the_item"
= '000';
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edp01006"."sap_ordrsp_orders05_e2edp01006"[1]."Quantity" =
"InputRoot"."XML"."PurchaseOrder"."Items"."Quantity";
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edp01006"."sap_ordrsp_orders05_e2edp01006"[1]."Unit_of_measure" =
"InputRoot"."XML"."PurchaseOrder"."Items"."UnitOfMeasure";
SET
"OutputRoot"."MRM"."Data_record"."sap_ordrsp_orders05_cwdata"."sap_ordrsp_order
s05_e2edp01006"."sap_ordrsp_orders05_e2edp01006"."sap_ordrsp_orders05_e2edp1900

Get A B2B Solution using WebSphere Business Integration V4.1 and WebSphere Business Connection V1.1 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.