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 » Message Set problem on WBIMB V6

Post new topic  Reply to topic
 Message Set problem on WBIMB V6 « View previous topic :: View next topic » 
Author Message
bindu
PostPosted: Wed Apr 19, 2006 7:20 am    Post subject: Message Set problem on WBIMB V6 Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Hi,
I am doing Xml to CWF conversion in my flow. I created a message set for this. When i put message into I/P Q ...i am alaways getting the Out put message with default values not with passed values....I think something wrong in my Element definitions....Any help...I am posting my ESQL and also the trace after the compute node (this compute node i am doing the transaformation)

ESQL:

CREATE COMPUTE MODULE Request_MsgFlow_XML_TO_CWF
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();

SET OutputRoot.Properties.MessageSet = 'KMV5H6G002001';
SET OutputRoot.Properties.MessageType = 'msg_REQUEST';

SET OutputRoot.MQRFH=NULL;
SET OutputRoot.MQRFH2=NULL;

SET OutputRoot.Properties.MessageFormat= 'CWF1';
SET OutputRoot.Properties.CodedCharSetId= 500;
SET OutputRoot.Properties."Encoding"= 785;

SET OutputRoot.MRM = NULL;

SET OutputRoot.MRM.REQUEST.COMPANY.NAME = 'Company';
SET OutputRoot.MRM.REQUEST.ADDRESS_DETAILS.STREET_NAME = InputRoot.XML.Request.Company.Address.StreetName;
SET OutputRoot.MRM.REQUEST.ADDRESS_DETAILS.STATE = InputRoot.XML.Request.Company.Address.State;
SET OutputRoot.MRM.REQUEST.ADDRESS_DETAILS.COUNTRY = InputRoot.XML.Request.Company.Address.Country;
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.NAME_FIRSTNAME = '';
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.NAME_MIDDLENAME = '';
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.NAME_LASTNAME = '';
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.POSITION_TITLE = '';
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.SALARY = 75000;
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.GENDER = '';
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.ADDR_STNUMBER = 50;
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.ADDR_STNAME ='';
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.ADDR_CITY ='';
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.ADDR_STATE ='';
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.ADDR_ZIP = 12345;
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.CONTACT_HOME ='000-000-1234';
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.CONTACT_MOBILE ='000-000-1234';
SET OutputRoot.MRM.REQUEST.EMPLOYEE1_DETAILS.CONTACT_EMAILID ='1234567890@yahoo.com';
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.NAME_FIRSTNAME = '';
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.NAME_MIDDLENAME = '';
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.NAME_LASTNAME = '';
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.POSITION_TITLE = '';
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.SALARY = 75000;
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.GENDER = '';
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.ADDR_STNUMBER = 50;
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.ADDR_STNAME ='';
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.ADDR_CITY ='';
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.ADDR_STATE ='';
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.ADDR_ZIP = 12345;
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.CONTACT_HOME ='000-000-1234';
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.CONTACT_MOBILE ='000-000-1234';
SET OutputRoot.MRM.REQUEST.EMPLOYEE2_DETAILS.CONTACT_EMAILID ='1234567890@yahoo.com';

RETURN TRUE;
END;

CREATE PROCEDURE CopyMessageHeaders() BEGIN
DECLARE I INTEGER;
DECLARE J INTEGER;
SET I = 1;
SET J = CARDINALITY(InputRoot.*[]);
WHILE I < J DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I = I + 1;
END WHILE;
END;

CREATE PROCEDURE CopyEntireMessage() BEGIN
SET OutputRoot = InputRoot;
END;
END MODULE;

------------------

Trace details:

(
(0x01000000):Properties = (
(0x03000000):MessageSet = 'KMV5H6G002001'
(0x03000000):MessageType = 'msg_REQUEST'
(0x03000000):MessageFormat = 'CWF1'
(0x03000000):Encoding = 785
(0x03000000):CodedCharSetId = 500
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2006-04-19 15:08:30.820'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'Request.queue'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 785
(0x03000000):CodedCharSetId = 500
(0x03000000):Format = ' '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d51205742524b365f44454641554cfa4746442000831c'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'WBRK6_DEFAULT_QUEUE_MANAGER '
(0x03000000):UserIdentifier = 'name '
(0x03000000):AccountingToken = X'16010515000000a837d66519525f1243170a32eb03000000000000000000000b'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 11
(0x03000000):PutApplName = 'gs\name\Desktop\rfhutil.exe'
(0x03000000):PutDate = DATE '2006-04-19'
(0x03000000):PutTime = GMTTIME '15:08:30.820'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000021):MRM = (
(0x01000000):REQUEST = (
(0x01000000):COMPANY = (
(0x03000000):NAME = 'Company'
)
(0x01000000):ADDRESS_DETAILS = (
(0x03000000):STREET_NAME = ''
(0x03000000):STATE = ''
(0x03000000):COUNTRY = ''
)
(0x01000000):EMPLOYEE1_DETAILS = (
(0x03000000):NAME_FIRSTNAME = ''
(0x03000000):NAME_MIDDLENAME = ''
(0x03000000):NAME_LASTNAME = ''
(0x03000000):POSITION_TITLE = ''
(0x03000000):SALARY = 75000
(0x03000000):GENDER = ''
(0x03000000):ADDR_STNUMBER = 50
(0x03000000):ADDR_STNAME = ''
(0x03000000):ADDR_CITY = ''
(0x03000000):ADDR_STATE = ''
(0x03000000):ADDR_ZIP = 12345
(0x03000000):CONTACT_HOME = '000-000-1234'
(0x03000000):CONTACT_MOBILE = '000-000-1234'
(0x03000000):CONTACT_EMAILID = '1234567890@yahoo.com'
)
(0x01000000):EMPLOYEE2_DETAILS = (
(0x03000000):NAME_FIRSTNAME = ''
(0x03000000):NAME_MIDDLENAME = ''
(0x03000000):NAME_LASTNAME = ''
(0x03000000):POSITION_TITLE = ''
(0x03000000):SALARY = 75000
(0x03000000):GENDER = ''
(0x03000000):ADDR_STNUMBER = 50
(0x03000000):ADDR_STNAME = ''
(0x03000000):ADDR_CITY = ''
(0x03000000):ADDR_STATE = ''
(0x03000000):ADDR_ZIP = 12345
(0x03000000):CONTACT_HOME = '000-000-1234'
(0x03000000):CONTACT_MOBILE = '000-000-1234'
(0x03000000):CONTACT_EMAILID = '1234567890@yahoo.com'
)
)
)
)
-----------

Thanx in advance for your help...

Thanq You,
Bindu
Back to top
View user's profile Send private message
JT
PostPosted: Wed Apr 19, 2006 7:31 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Post the contents of the Input message prior to the Compute node.
Back to top
View user's profile Send private message
fschofer
PostPosted: Wed Apr 19, 2006 7:39 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,

please try to use OutputRoot.MRM instead of OutputRoot.MRM.REQUEST like

Code:
SET OutputRoot.MRM.COMPANY.NAME = 'Company';
instead of
Code:
SET OutputRoot.MRM.REQUEST.COMPANY.NAME = 'Company';

Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
bindu
PostPosted: Wed Apr 19, 2006 9:20 am    Post subject: Message Set problem on WBIMB V6 Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Hi,

Trace node1 (Before Compute Node)

(
(0x01000000):Properties = (
(0x03000000):MessageSet = ''
(0x03000000):MessageType = ''
(0x03000000):MessageFormat = ''
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 437
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2006-04-18 05:09:00.650'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'Request.queue'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 437
(0x03000000):Format = ' '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d51205742524b365f44454641554ccabb434420002f09'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'WBRK6_DEFAULT_QUEUE_MANAGER '
(0x03000000):UserIdentifier = 'names '
(0x03000000):AccountingToken = X'16010515000000a837d66519525f1243170a32eb03000000000000000000000b'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 11
(0x03000000):PutApplName = 'gs\name\Desktop\rfhutil.exe'
(0x03000000):PutDate = DATE '2006-04-18'
(0x03000000):PutTime = GMTTIME '05:09:00.650'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000010):XML = (
(0x05000018):XML = (
(0x06000011): = '1.0'
(0x06000012): = 'UTF-8'
)
(0x06000002): = '
'
(0x01000000):Request = (
(0x02000000): = '
'
(0x01000000):Company = (
(0x02000000): = '
'
(0x01000000):Name = (
(0x02000000): = 'IBM'
)
(0x02000000): = '
'
(0x01000000):Address = (
(0x02000000): = '
'
(0x01000000):StreetName = (
(0x02000000): = 'IBM Drive'
)
(0x02000000): = '
'
(0x01000000):State = (
(0x02000000): = 'ST'
)
(0x02000000): = '
'
(0x01000000):Country = (
(0x02000000): = 'USA'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
(0x01000000):Employee = (
(0x02000000): = '
'
(0x01000000):Details = (
(0x02000000): = '
'
(0x01000000):Name = (
(0x02000000): = '
'
(0x01000000):FirstName = (
(0x02000000): = 'FirstName'
)
(0x02000000): = '
'
(0x01000000):MiddleName = (
(0x02000000): = 'B'
)
(0x02000000): = '
'
(0x01000000):LastName = (
(0x02000000): = 'LastName'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
(0x01000000):Position = (
(0x02000000): = 'Programmer Analyst'
)
(0x02000000): = '
'
(0x01000000):Salary = (
(0x02000000): = '75000'
)
(0x02000000): = '
'
(0x01000000):Gender = (
(0x02000000): = 'M'
)
(0x02000000): = '
'
(0x01000000):Address = (
(0x02000000): = '
'
(0x01000000):StreetNumber = (
(0x02000000): = '02'
)
(0x02000000): = '
'
(0x01000000):StreetName = (
(0x02000000): = 'IBM Drive'
)
(0x02000000): = '
'
(0x01000000):City = (
(0x02000000): = 'Cityname'
)
(0x02000000): = '
'
(0x01000000):State = (
(0x02000000): = 'AA'
)
(0x02000000): = '
'
(0x01000000):ZipCode = (
(0x02000000): = '12345'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
(0x01000000):ContactInformation = (
(0x02000000): = '
'
(0x01000000):PhoneNumber = (
(0x02000000): = '
'
(0x01000000):Home = (
(0x02000000): = '000-000-0001'
)
(0x02000000): = '
'
(0x01000000):Mobile = (
(0x02000000): = '000-000-0001'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
(0x01000000):eMailID = (
(0x02000000): = 'name@yahoo.com'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
(0x01000000):Employee = (
(0x02000000): = '
'
(0x01000000):Details = (
(0x02000000): = '
'
(0x01000000):Name = (
(0x02000000): = '
'
(0x01000000):FirstName = (
(0x02000000): = 'FirstName'
)
(0x02000000): = '
'
(0x01000000):MiddleName =
(0x02000000): = '
'
(0x01000000):LastName = (
(0x02000000): = 'LastName'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
(0x01000000):Position = (
(0x02000000): = 'Programmer Analyst'
)
(0x02000000): = '
'
(0x01000000):Salary = (
(0x02000000): = '65000'
)
(0x02000000): = '
'
(0x01000000):Gender = (
(0x02000000): = 'F'
)
(0x02000000): = '
'
(0x01000000):Address = (
(0x02000000): = '
'
(0x01000000):StreetNumber = (
(0x02000000): = '50'
)
(0x02000000): = '
'
(0x01000000):StreetName = (
(0x02000000): = 'IBM Drive'
)
(0x02000000): = '
'
(0x01000000):City = (
(0x02000000): = 'San Ramon'
)
(0x02000000): = '
'
(0x01000000):State = (
(0x02000000): = 'AA'
)
(0x02000000): = '
'
(0x01000000):ZipCode = (
(0x02000000): = '12345'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
(0x01000000):ContactInformation = (
(0x02000000): = '
'
(0x01000000):PhoneNumber = (
(0x02000000): = '
'
(0x01000000):Home = (
(0x02000000): = '000-000-1234'
)
(0x02000000): = '
'
(0x01000000):Mobile = (
(0x02000000): = '000-000-1234'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
(0x01000000):eMailID = (
(0x02000000): = 'name@yahoo.com'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
)
(0x02000000): = '
'
)
)
)


Thanq You,
Bindu
Back to top
View user's profile Send private message
EAI Developer
PostPosted: Wed Apr 19, 2006 9:20 am    Post subject: Reply with quote

Centurion

Joined: 30 Nov 2005
Posts: 101
Location: US

Hi bindu,
U wrote.

SET OutputRoot.Properties.MessageType = 'msg_REQUEST';

and

SET OutputRoot.MRM.REQUEST.COMPANY.NAME = 'Company';


So tel me wot is the exact root tag here for u r output message.


Cheers,
EAI Developer.
Back to top
View user's profile Send private message Visit poster's website
bindu
PostPosted: Wed Apr 19, 2006 9:54 am    Post subject: Message Set problem on WBIMB V6 Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Hi,
The root tag for output message should be REQUEST

Thanq You,
Bindu.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Apr 19, 2006 10:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The MRM subsumes and reproduces the root tag for you.

Using OutputRoot.MRM.Request, when you have set the Root Tag on your msg_REQUEST model to be "REQUEST" will produce data like "<REQUEST><REQUEST>....</REQUEST></REQUEST>". Except, of course, you're validating on output and that's not in your model.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
bindu
PostPosted: Wed Apr 19, 2006 12:48 pm    Post subject: Message Set problem on WBIMB V6 Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Hi jeff,
I removed the REQUEST from my ESQl. now i am able to pass the values to O/P but i got some errors on my ESQL below

DECLARE k INTEGER;
DECLARE m INTEGER;
SET k=1;
SET m = CARDINALITY(InputRoot.XML.Request.Company.Employee[]);
WHILE(k<=m) DO

SET OutputRoot.MRM.COMPANY.EMPLOYEE[k]_DETAILS.NAME_FIRSTNAME = InputRoot.XML.Request.Company.Employee[k].Details.Name.FirstName;

SET k=k+1;
END WHILE;


Its because i am getting the input message with two employee nodes on it and i defined in message set for those like EMPLOYEE1_DETAILS for first & EMPLOYEE2_DETAILS for second.....Any help

Thanq You,
Bindu
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Apr 19, 2006 12:54 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
am always getting the Out put message with default values not with passed values
The CWF writer thinks that the elements are missing - that's why it outputs default values. In other words, it cannot match your message tree with your message model.
Adjust your ESQL to remove the root tag 'REQUEST' from the output message tree. If that does not work, post the details of your message definition ( or at least the root element and first level elements, if the message is large )
Back to top
View user's profile Send private message
bindu
PostPosted: Wed Apr 19, 2006 12:57 pm    Post subject: Message Set problem on WBIMB V6 Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Hi Kimbert,
Thanq you....I removed the REQUEST root tag based on jeff suggestion so it worked and still having some problems because of below ESQL code

DECLARE k INTEGER;
DECLARE m INTEGER;
SET k=1;
SET m = CARDINALITY(InputRoot.XML.Request.Company.Employee[]);
WHILE(k<=m) DO

SET OutputRoot.MRM.COMPANY.EMPLOYEE[k]_DETAILS.NAME_FIRSTNAME = InputRoot.XML.Request.Company.Employee[k].Details.Name.FirstName;

SET k=k+1;
END WHILE;


Its because i am getting the input message with two employee nodes on it and i defined in message set for those like EMPLOYEE1_DETAILS for first & EMPLOYEE2_DETAILS for second.....Any help

Thanq You,
Bindu
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Apr 19, 2006 1:05 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
i defined in message set for those like EMPLOYEE1_DETAILS for first & EMPLOYEE2_DETAILS for second.....Any help

You have two options.
Good: Change your message set so that the element name is 'EMPLOYEE_DETAILS' and set maxOccurs to 2 ( or whatever you need )
Less good: Change your ESQL so that it checks the value of 'k' and sets EMPLOYEE1_DETAILS or EMPLOYEE2_DETAILS accordingly.
Back to top
View user's profile Send private message
bindu
PostPosted: Wed Apr 19, 2006 1:27 pm    Post subject: Message Set problem on WBIMB V6 Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Hi Kimbert,
i am now trying for your second one ....its giving errors if i write ESQL like below

DECLARE k INTEGER;
DECLARE m INTEGER;
SET k=1;
SET m = CARDINALITY(InputRoot.XML.Request.Company.Employee[]);
WHILE(k<=m) DO

SET OutputRoot.MRM.COMPANY.EMPLOYEE[k]_DETAILS.NAME_FIRSTNAME = InputRoot.XML.Request.Company.Employee[k].Details.Name.FirstName;

SET k=k+1;
END WHILE;

Error looks like
valid options include: identifier )}],||/=>= > <= < - <> ( .+; * like this ...i find these errors after updating my ESQl in Developer prospective .......Any help....

Thanq You,
Bindu
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Apr 19, 2006 1:56 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
i am now trying for your second one
I don't think you are - your ESQL is the same as before. Or did you post the wrong ESQL?
You need something like this ( not tested )
Code:
IF (k = 1)
    SET OutputRoot.MRM.COMPANY.EMPLOYEE1_DETAILS.NAME_FIRSTNAME = InputRoot.XML.Request.Company.Employee[1].Details.Name.FirstName;
ELSIF ( k = 2 )
    SET OutputRoot.MRM.COMPANY.EMPLOYEE2_DETAILS.NAME_FIRSTNAME = InputRoot.XML.Request.Company.Employee[2].Details.Name.FirstName;
ELSE
    -- do some error handling
END IF
Back to top
View user's profile Send private message
bindu
PostPosted: Thu Apr 20, 2006 10:57 am    Post subject: Message Set problem on WBIMB V6 Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Thanq You kimbert...it worked for your second idea....I will try for your first one too....

Thanq You,
Bindu.
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 » Message Set problem on WBIMB V6
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.