Author |
Message
|
t_kluck5 |
Posted: Thu Feb 24, 2011 1:38 pm Post subject: httprequest node |
|
|
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 |
|
 |
fatherjack |
Posted: Thu Feb 24, 2011 4:04 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Thu Feb 24, 2011 8:15 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20763 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 |
|
 |
t_kluck5 |
Posted: Fri Feb 25, 2011 5:17 am Post subject: |
|
|
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 |
|
 |
rekarm01 |
Posted: Mon Feb 28, 2011 1:39 am Post subject: Re: httprequest node |
|
|
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 |
|
 |
|