|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Insert Compund Element in a Simple. |
« View previous topic :: View next topic » |
Author |
Message
|
Gama |
Posted: Mon Apr 14, 2008 8:34 am Post subject: Insert Compund Element in a Simple. |
|
|
 Centurion
Joined: 11 Jan 2005 Posts: 103 Location: Portugal
|
Hello,
I have two messages, and i need to insert the BillingAddress Structure of the second message on BillinAddress element on first message.
<Customer>
<CustomerID>1193</CustomerID>
<CustomerTaxID>123456789</CustomerTaxID>
<CompanyName>xxxxxxxxxxxxxxxxxxxx</CompanyName>
<Contact></Contact>
<BillingAddress>C 1193</BillingAddress>
<ShipToAddress/>
<Telephone>0000000000000</Telephone>
<Fax>0000000000000</Fax>
<Email/>
<Website/>
</Customer>
<BillingAddress>
<AddressDetail>POSTBUS 625</AddressDetail>
<City>AP HOOFDDORP</City>
<PostalCode>2130</PostalCode>
</BillingAddress>
I already tryed the following code, but without success.
XML.Customer.BillingAddress = XML.BillingAddress;
the wished result is:
<Customer>
<CustomerID>1193</CustomerID>
<CustomerTaxID>123456789</CustomerTaxID>
<CompanyName>xxxxxxxxxxxxxxxxxxxx</CompanyName>
<Contact></Contact>
<BillingAddress>
<AddressDetail>POSTBUS 625</AddressDetail>
<City>AP HOOFDDORP</City>
<PostalCode>2130</PostalCode>
</BillingAddress
<ShipToAddress/>
<Telephone>0000000000000</Telephone>
<Fax>0000000000000</Fax>
<Email/>
<Website/>
</Customer>
Any help is welcome
Best regards
Gama |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Apr 14, 2008 8:56 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You have to modify fields on OutputRoot, not at "XML".
How are you getting both messages into the same invocation of the message flow?
You shouldn't be using the XML domain, please use XMLNSC on v6.1 or at least XMLNS on v5 and v6. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Gama |
Posted: Mon Apr 14, 2008 9:08 am Post subject: |
|
|
 Centurion
Joined: 11 Jan 2005 Posts: 103 Location: Portugal
|
jefflowrey wrote: |
You have to modify fields on OutputRoot, not at "XML".
How are you getting both messages into the same invocation of the message flow?
You shouldn't be using the XML domain, please use XMLNSC on v6.1 or at least XMLNS on v5 and v6. |
hello jefflowrey,
I am using wmb6.0
WHILE vPosCust < vCountCust DO
SET vPosCust = vPosCust + 1;
SET Environment.Variables.Docs.BillingAddress[] = PASSTHRU (strSQL);
SET Environment.Variables.Docs.Customer[vPosCust].BillingAddress.[] = Environment.Variables.Docs.BillingAddress[];
END WHILE;
I already use the XMLNS domain.
SET OutputRoot.XMLNS.AuditFile.MasterFiles.Customer[] = Environment.Variables.Docs.Customer[]; |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|