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 » Request Identifier - HTTP Reply

Post new topic  Reply to topic
 Request Identifier - HTTP Reply « View previous topic :: View next topic » 
Author Message
veda
PostPosted: Mon Jan 03, 2011 2:47 pm    Post subject: Request Identifier - HTTP Reply Reply with quote

Novice

Joined: 01 Dec 2010
Posts: 24

Hi

I think this question has been posted earlier, but I was not able to find suitable answer for my problem in the forum.

My Question is I have httpinput and httpreply nodes in different message flows. To send a reply to the originator, do I need all the header information or can I just save the Http Request Identifier of the local environment, is that sufficient to send reply back to the client, from where I got the request.

Thank You!
Back to top
View user's profile Send private message
mgk
PostPosted: Mon Jan 03, 2011 3:11 pm    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Quote:
can I just save the Http Request Identifier of the local environment


Yes, all you need is the Request Identifier.


Kind Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jan 03, 2011 7:23 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

mgk wrote:
Quote:
can I just save the Http Request Identifier of the local environment


Yes, all you need is the Request Identifier.


Kind Regards,


As mgk says it is sufficient. Now you still need to find a way to pass it from the flow accepting the request to the flow sending the reply and keep it within the right context (flow instance).

From the way you asked your question, I figure you've already solved this part...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
veda
PostPosted: Tue Jan 04, 2011 6:30 am    Post subject: Reply with quote

Novice

Joined: 01 Dec 2010
Posts: 24

thank you mgk and fjb_saper for prompt response!!!

I am trying to save the request identifier in a queue in xml message format
as a string, should I take it as a blob?

and I am trying to get this req id in the reply flow through MQGet node.
Back to top
View user's profile Send private message
veda
PostPosted: Tue Jan 04, 2011 2:21 pm    Post subject: Reply with quote

Novice

Joined: 01 Dec 2010
Posts: 24

I am getting an error saying Invalid Context Info size when I try to convert the request identifier(extracting from xml msg) to bytes. Could someone please help me how to convert a string to Blob in Java compute node, I just need this one element to be in blob as the LocalEnvironment fields are all in BLOB format.
Back to top
View user's profile Send private message
optimist
PostPosted: Wed Jan 05, 2011 1:52 am    Post subject: Reply with quote

Apprentice

Joined: 18 Nov 2010
Posts: 33

For an example, take a look at the Sample code "Building the Web Services using HTTP nodes sample" in Info Center....

SET OutputLocalEnvironment.Destination.HTTP.RequestIdentifier =
CAST(InputLocalEnvironment.MRM.tns:Header.HTTP.RequestIdentifier AS BLOB);
Back to top
View user's profile Send private message
veda
PostPosted: Wed Jan 05, 2011 6:12 am    Post subject: Reply with quote

Novice

Joined: 01 Dec 2010
Posts: 24

optimist wrote:
For an example, take a look at the Sample code "Building the Web Services using HTTP nodes sample" in Info Center....

SET OutputLocalEnvironment.Destination.HTTP.RequestIdentifier =
CAST(InputLocalEnvironment.MRM.tns:Header.HTTP.RequestIdentifier AS BLOB);


Hi Thank you for the reply!!

I am using Java compute node , not compute node.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jan 05, 2011 7:55 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

veda wrote:
optimist wrote:
For an example, take a look at the Sample code "Building the Web Services using HTTP nodes sample" in Info Center....

SET OutputLocalEnvironment.Destination.HTTP.RequestIdentifier =
CAST(InputLocalEnvironment.MRM.tns:Header.HTTP.RequestIdentifier AS BLOB);


Hi Thank you for the reply!!

I am using Java compute node , not compute node.


Then all you have to do now is turn that ESQL into the equivalent Java calls.
Back to top
View user's profile Send private message
veda
PostPosted: Wed Jan 05, 2011 8:13 am    Post subject: Reply with quote

Novice

Joined: 01 Dec 2010
Posts: 24

Hi mqjeff,

thanks for the reply!

I have done the processing in java compute node, but still I get the exception saying "need return context info"

Here is the Trace

2011-01-05 11:06:02.627715 - MyVRN Flow
Root:
( ['MQROOT' : 0x1079449c8]
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x107af18c0]
(0x03000000:NameValue):MessageSet = '' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 273 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 1208 (INTEGER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2011-01-05 16:06:00.470' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'MQ' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Folder):XMLNSC = ( ['xmlnsc' : 0x1079451d8]
(0x01000400:NamespaceDecl):XmlDeclaration = (
(0x03000100:Attribute):Encoding = 'utf-8' (CHARACTER)
(0x03000100:Attribute):Version = '1.0' (CHARACTER)
)
(0x03000000:PCDataField ):Request = 'Hello' (CHARACTER)
)
)
LocalEnvironment:
( ['MQROOT' : 0x1079441b8]
(0x01000000:Name):Destination = (
(0x01000000:Name):HTTP = (
(0x03000000:NameValue):RequestIdentifier = X'485454500000000100000000000000000000000000000044' (BLOB)
)
)
)
Environment:
( ['MQROOT' : 0x10793c0b8]
(0x03000000:PCDataField):Request = 'Hello' (CHARACTER)
)
ExceptionList:
( ['MQROOT' : 0x107946a08]
(0x01000000:Name):RecoverableException = (
(0x03000000:NameValue):File = '/build/S700_P/src/DataFlowEngine/ImbDataFlowNode.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 1073 (INTEGER)
(0x03000000:NameValue):Function = 'ImbDataFlowNode::createExceptionList' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmWSReplyNode' (CHARACTER)
(0x03000000:NameValue):Name = 'motive_poc_reply_main_flow#FCMComposite_1_5' (CHARACTER)
(0x03000000:NameValue):Label = 'motive_poc_reply_main_flow.HTTP Reply' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2230 (INTEGER)
(0x03000000:NameValue):Text = 'Node throwing exception' (CHARACTER)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = '/build/S700_P/src/WebServices/WSLibrary/ImbWSReplyNode.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 495 (INTEGER)
(0x03000000:NameValue):Function = 'ImbWSReplyNode::evaluate' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmWSReplyNode' (CHARACTER)
(0x03000000:NameValue):Name = 'motive_poc_reply_main_flow#FCMComposite_1_5' (CHARACTER)
(0x03000000:NameValue):Label = 'motive_poc_reply_main_flow.HTTP Reply' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 1 (INTEGER)
(0x03000000:NameValue):Number = 3143 (INTEGER)
(0x03000000:NameValue):Text = 'Need return context info' (CHARACTER)
)
)
)

Plsss....
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Jan 05, 2011 8:23 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Are your flows in the same Execution Group?
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
veda
PostPosted: Wed Jan 05, 2011 10:40 am    Post subject: Reply with quote

Novice

Joined: 01 Dec 2010
Posts: 24

mgk wrote:
Are your flows in the same Execution Group?


Yes my flows are in same execution group, I am using execution group listener. If I don't use execution group listener I am able to get the response.

Could you clarify me if I need to configure anything else if I am using execution group listener ?
Back to top
View user's profile Send private message
mgk
PostPosted: Thu Jan 06, 2011 5:04 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hi, this problem has just come up as an APAR. Please raise a PMR asking for APAR: IC73430.

Kind Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jan 06, 2011 6:20 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

mgk wrote:
Hi, this problem has just come up as an APAR. Please raise a PMR asking for APAR: IC73430.


For fastest results, please either specifically ask for a build for this APAR, or put the URL to this thread into the PMR.
Back to top
View user's profile Send private message
veda
PostPosted: Thu Jan 06, 2011 6:58 am    Post subject: Reply with quote

Novice

Joined: 01 Dec 2010
Posts: 24

mqjeff wrote:
mgk wrote:
Hi, this problem has just come up as an APAR. Please raise a PMR asking for APAR: IC73430.


For fastest results, please either specifically ask for a build for this APAR, or put the URL to this thread into the PMR.


Thanks alot mqjeff and mgk....I will raise a PMR for APAR as mentioned.
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 » Request Identifier - HTTP Reply
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.