ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Insert Compund Element in a Simple.

Post new topic  Reply to topic
 Insert Compund Element in a Simple. « View previous topic :: View next topic » 
Author Message
Gama
PostPosted: Mon Apr 14, 2008 8:34 am    Post subject: Insert Compund Element in a Simple. Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Mon Apr 14, 2008 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Gama
PostPosted: Mon Apr 14, 2008 9:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Insert Compund Element in a Simple.
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.