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 » httprequest node

Post new topic  Reply to topic
 httprequest node « View previous topic :: View next topic » 
Author Message
t_kluck5
PostPosted: Thu Feb 24, 2011 1:38 pm    Post subject: httprequest node Reply with quote

Newbie

Joined: 24 Feb 2011
Posts: 3

I'm losing data in the envelope when message goes into compute node. My flow looks like this:

httprequest node ----->compute1 node----------> MQOutput node

here is the message coming out of httprequest node

Message
Properties
MessageSet = OVRIQN4002001
MessageType = InsertOrder
MessageFormat =
Encoding = 785
CodedCharSetId = 500
Transactional = true
Persistence = true
CreationTime = 2011-02-14 21:00:15.770
ExpirationTime = -1
Priority = 0
ReplyIdentifier = 000000000000000000000000000000000000000000000000
ReplyProtocol = MQ
Topic =
Topic =
ContentType =
HTTPResponseHeader
X-Original-HTTP-Status-Line = HTTP/1.1 400 Bad Request
X-Original-HTTP-Status-Code = 400
Cache-Control = private
Server = Microsoft-IIS/7.0
X-AspNet-Version = 2.0.50727
X-Powered-By = ASP.NET
Date = Thu, 24 Feb 2011 19:20:09 GMT
Connection = close
Content-Length = 0
HTTPRequestHeader
Content-Length = 1197
SOAPAction = 'http://mrservices.lmsintellibound.com'/awg/InsertOrder
Content-Type = text/xml; charset=utf-8
Host = mrservices.lmsintellibound.com
Connection = close
MQMD
SourceQueue = QL.QBP.X.POHDR.MRUPDT
Transactional = true
Encoding = 785
CodedCharSetId = 500
Format = WSREQHDR
Version = 2
Report = 0
MsgType = 8
Expiry = -1
Feedback = 0
Priority = 0
Persistence = 1
MsgId = c3e2d840d4d8c3f14040404040404040c75549e66da1c406
CorrelId = 000000000000000000000000000000000000000000000000
BackoutCount = 0
ReplyToQ =
ReplyToQMgr = MQC1
UserIdentifier = itadh
AccountingToken = 180fc1e6c7d5c5e34bd8d5c4f1c3c9c3e25549e60d4d76000800000000000000
ApplIdentityData =
PutApplType = 1
PutApplName = QND1CICSQBJR
PutDate = 2011-02-14
PutTime = 21:00:15.770
ApplOriginData =
GroupId = 000000000000000000000000000000000000000000000000
MsgSeqNumber = 1
Offset = 0
MsgFlags = 0
OriginalLength = -1
XMLNSC
Envelope =
soapenc = 'http://schemas.xmlsoap.org/soap/encoding/'
soapenv = 'http://schemas.xmlsoap.org/soap/envelope/'
xsd = 'http://www.w3.org/2001/XMLSchema'
xsi = 'http://www.w3.org/2001/XMLSchema-instance'
Body =
InsertOrder
order
OwnerCode = 1CM
DownloadType = A
PONumber = 18399
DueDate = 2011-02-21T00:00:00
VendorNumber = 0003770001
ManagedType = B
Cases = 0000360
Weight = 1149.60
Pallets = 00006
EstReceivedPallets = 00003
BuyerCode = 075 001149600WFW01
ConsigneeCode =
Cube = 801000.10
Hot = 0
ProductCode = V2
PalletType = 042
Comments = 3030
CarrierMoveNumber =
CarrierID =
Diverter =
accessKey =
error
LocalEnvironment
LOCAL_STACK
sourceParserDomain = MRM
targetParserDomain = XMLNSC
tree_state = 3
GLOBAL_STACK
Environment


raw xml data

<soapenv:Envelope
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/
XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
<soapenv:Body>
<NS1:InsertOrder xmlns:NS1="http://mrservices.lmsintellibound.com/awg/">
<NS1:order>
<NS1:OwnerCode>
1CM
</NS1:OwnerCode>
<NS1:DownloadType>
A
</NS1:DownloadType>
<NS1:PONumber>
18399
</NS1:PONumber>
<NS1:DueDate>
2011-02-21T00:00:00
</NS1:DueDate>
<NS1:VendorNumber>
0003770001
</NS1:VendorNumber>
<NS1:ManagedType>
B
</NS1:ManagedType>
<NS1:Cases>
0000360
</NS1:Cases>
<NS1:Weight>
1149.60
</NS1:Weight>
<NS1:Pallets>
00006
</NS1:Pallets>
<NS1:EstReceivedPallets>
00003
</NS1:EstReceivedPallets>
<NS1:BuyerCode>
075 001149600WFW01
</NS1:BuyerCode>
<NS1:ConsigneeCode>
</NS1:ConsigneeCode>
<NS1:Cube>
801000.10
</NS1:Cube>
<NS1:Hot>
0
</NS1:Hot>
<NS1:ProductCode>
V2
</NS1:ProductCode>
<NS1:PalletType>
042
</NS1:PalletType>
<NS1:Comments>
3030
</NS1:Comments>
<NS1:CarrierMoveNumber>
</NS1:CarrierMoveNumber>
<NS1:CarrierID>
</NS1:CarrierID>
<NS1:Diverter>
</NS1:Diverter>
</NS1:order>
<NS1:accessKey>

</NS1:accessKey>
</NS1:InsertOrder>
</soapenv:Body>
</soapenv:Envelope>

code in compute node

SET "OutputRoot"."Properties"."MessageSet" = 'BCC2S1S002001';
SET "OutputRoot"."Properties"."MessageType" = 'msg_LMSRESPONSETEXT';
SET "OutputRoot"."Properties"."MessageFormat" = 'CWF1';
SET "OutputRoot"."Properties"."CodedCharSetId" = '1208';
SET "OutputRoot"."Properties"."ContentType" = 'text/xml; charset=utf-8';

SET "OutputRoot"."Properties"."MessageDomain" = 'MRM';
SET "OutputRoot"."MQMD"."Format" = MQFMT_STRING;

DECLARE errSoapAction CHARACTER;
DECLARE errPONumber CHARACTER;
DECLARE soapenv NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE NS1 NAMESPACE 'http://mrservices.lmsintellibound.com/awg';

SET errPONumber = InputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.NS1:InsertOrder.NS1:order.NS1:PONumber;

SET errSoapAction = InputRoot.HTTPRequestHeader.SOAPAction;

SET "OutputRoot"."MRM"."LMSRESPONSE_MSG" = errSoapAction || errPONumber;

Any ideas? I have no problems getting data in errSoapAction.
Back to top
View user's profile Send private message
fatherjack
PostPosted: Thu Feb 24, 2011 4:04 pm    Post subject: Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

Have you tried a user trace ?
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Feb 24, 2011 8:15 pm    Post subject: Reply with quote

Grand High Poobah

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

Don't know where you're going with this, but considering the rest of your code you might want to comment out this line:
Code:
 SET "OutputRoot"."MQMD"."Format" = MQFMT_STRING;


Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
t_kluck5
PostPosted: Fri Feb 25, 2011 5:17 am    Post subject: Reply with quote

Newbie

Joined: 24 Feb 2011
Posts: 3

I'm trying to parse out the soapaction data and concatenate it with an XML data element (PONumber) from the original soap message. I'm not sure this piece of code is correct - InputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.NS1:InsertOrder.NS1:order.NS1:PONumber;
Back to top
View user's profile Send private message
rekarm01
PostPosted: Mon Feb 28, 2011 1:39 am    Post subject: Re: httprequest node Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

t_kluck5 wrote:
I'm trying to parse out the soapaction data and concatenate it with an XML data element (PONumber) from the original soap message. I'm not sure this piece of code is correct -
Code:
InputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.NS1:InsertOrder.NS1:order.NS1:PONumber;

Don't use the debugger. Add a Trace node. Take a usertrace. That will indicate whether this piece of code is correct.

t_kluck5 wrote:
Code:
SET "OutputRoot"."MRM"."LMSRESPONSE_MSG" = errSoapAction || errPONumber;

If either operand of the || operator is NULL, the result is NULL.

None of the double-quotes in the given SET statements are necessary.
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 » httprequest node
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.