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 » Information regarding the message set

Post new topic  Reply to topic
 Information regarding the message set « View previous topic :: View next topic » 
Author Message
satyasheel15
PostPosted: Fri Jun 04, 2004 9:26 am    Post subject: Information regarding the message set Reply with quote

Voyager

Joined: 04 Mar 2003
Posts: 86

Hi,

I have created one CWF messageset CreditCardMessage and it contains following elemets
CreditCardMessage (Message) (CreditCardMessageType)
|__MDSReqType (MDSRequestHeaderType)
|_ReqHdr (ReqHdrType)
|_HeaderType (xsd:string)

Now I have written a ESQL code to convert the CWF to XML like this:

SET OutputRoot.XML.MDSRequestHeader.ReqHdr.HeaderType = InputRoot.MRM.MDSReqType.ReqHdr.HeaderType ;

Please let me know is this correct way to take the value of " HeaderType " and pass it to XML element " HeaderType"

Thanks in anticipation.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
TonyD
PostPosted: Fri Jun 04, 2004 4:18 pm    Post subject: Reply with quote

Knight

Joined: 15 May 2001
Posts: 540
Location: New Zealand

Well what happens when you execute the ESQL?
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Sat Jun 05, 2004 2:40 pm    Post subject: Re: Information regarding the message set Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

satyasheel15 wrote:

Please let me know is this correct way to take the value of " HeaderType " and pass it to XML element " HeaderType"

Yes.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
satyasheel15
PostPosted: Mon Jun 07, 2004 6:31 am    Post subject: Reply with quote

Voyager

Joined: 04 Mar 2003
Posts: 86

Actually I want to know that did I written the correct ESQL to retrieve the value of the element.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
satyasheel15
PostPosted: Tue Jun 08, 2004 6:36 am    Post subject: Reply with quote

Voyager

Joined: 04 Mar 2003
Posts: 86

I have created one CWF messageset CreditCardMessage and it contains following elemets
CreditCardMessage (Message) (CreditCardMessageType)
|__MDSReqType (MDSRequestHeaderType)
|__ReqHdr (ReqHdrType)
|__HeaderType (xsd:string)

Now I have written a ESQL code to convert the CWF to XML like this:

SET OutputRoot.XML.MDSRequestHeader.ReqHdr.HeaderType =
InputRoot.MRM.MDSReqType.ReqHdr.HeaderType ;

Please tell is this the correct way to convert the HeaderType defined as CWF to XML.

Can you please send me the the code for the same as mentioned above.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
jefflowrey
PostPosted: Tue Jun 08, 2004 6:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

satyasheel15 wrote:

Please tell is this the correct way to convert the HeaderType defined as CWF to XML.

Can you please send me the the code for the same as mentioned above.


Please tell us what happens when you run the code you are trying to run.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
satyasheel15
PostPosted: Tue Jun 08, 2004 6:50 am    Post subject: Reply with quote

Voyager

Joined: 04 Mar 2003
Posts: 86

Its' going to fail queue [terminal] of the Compute Node where the code is written.

Please suggest
Back to top
View user's profile Send private message Send e-mail MSN Messenger
jefflowrey
PostPosted: Tue Jun 08, 2004 6:56 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

satyasheel15 wrote:
Its' going to fail queue [terminal] of the Compute Node where the code is written.

Please suggest


Please look at your local system error logs to determine why it is failing.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
satyasheel15
PostPosted: Tue Jun 08, 2004 7:08 am    Post subject: Reply with quote

Voyager

Joined: 04 Mar 2003
Posts: 86

It is showing the error in the code :

SET OutputRoot.XML.MDSRequestHeader.ReqHdr.HeaderType = InputRoot.MRM.MDSReqType.ReqHdr.HeaderType ;
Back to top
View user's profile Send private message Send e-mail MSN Messenger
jefflowrey
PostPosted: Tue Jun 08, 2004 7:15 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

satyasheel15 wrote:
It is showing the error in the code :

What is the exact error message, please?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Jun 08, 2004 7:34 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Now I have written a ESQL code to convert the CWF to XML like this:

SET OutputRoot.XML.MDSRequestHeader.ReqHdr.HeaderType = InputRoot.MRM.MDSReqType.ReqHdr.HeaderType ;

Please let me know is this correct way to take the value of " HeaderType " and pass it to XML element " HeaderType"

Only if HeaderType is a child of ReqHdr, and ReqHdr is a child of MSDReqType. Check your message definitions, and make sure that your ESQL path follows the hierarchy of the message definition.
Back to top
View user's profile Send private message
satyasheel15
PostPosted: Tue Jun 08, 2004 8:26 am    Post subject: Reply with quote

Voyager

Joined: 04 Mar 2003
Posts: 86

In my CWF messageset CreditCardMessage,

CreditCardMessage (Message) (CreditCardMessageType)
|__MDSReqType (MDSRequestHeaderType)
|__ReqHdr (ReqHdrType)
|__HeaderType (xsd:string)

Header Type is the child local element of of ReqHdr [this if of type ReqHdrType] and ReqHdr is the child of MDSReqType [this is of the type MDSRequestHeaderType], which is the child of the message CreditCardMessage.

So with this information, is the code :-
SET OutputRoot.XML.MDSRequestHeader.ReqHdr.HeaderType = InputRoot.MRM.MDSReqType.ReqHdr.HeaderType ;

is correct. Please confirm.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kimbert
PostPosted: Wed Jun 09, 2004 12:37 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Put a trace node in your message flow, and trace ${Root}.
If you still have problems, please post the trace node output in your next message.
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Jun 09, 2004 10:58 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Also, you can put a trace node in failure terminal of Compute node and printing ${ExceptionList} to capture exact error message.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Information regarding the message set
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.