Author |
Message
|
PankajS |
Posted: Wed Mar 22, 2006 4:53 am Post subject: Http Reply node not sending response back to Client |
|
|
Voyager
Joined: 27 Dec 2004 Posts: 82
|
Hi Friends,
I am working Webservice request reply scenario.
I am not getting reply back to Http client.Where as I can see the message just before HTTp reply node in trace.
I can get the message if i replace the HttpReply node with MQOutPut Node.
My flow is as follows.
HttpInput>>Compute_1>>MQOutPut_1>>Compute>>MQOutPut_2
MQInput_1>>MQGET>>Compute_2>>HTTP Reply
I put POST Request in HttpInput node using a Tool and expect responce in same window.
In MQOutPut_2 i store HTTP.RequestIdentifier.
Background application takes message from MQOutPut_1 and sends response to MQInput_1 .
MQGET node gets RequestIdentifier fromMQOutPut_2 .
Compute_2 uses RequestIdentifier from MQGET puts into OutputLocalEnvironment.
Message is forward to HttpReply Node.
I expect Httpreply node to throw response to Http Client (In this case the tool i am using)
Can you please point out where i am making mistake ?  |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Mar 22, 2006 5:07 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi PankajS,
Can you please post your reply to the HTTPRequest node.
Also what tool are u using...and if the flow is not sending a reply, u should atleast be getting a timeout message, r u getting that in the tool.
Regards. |
|
Back to top |
|
 |
PankajS |
Posted: Wed Mar 22, 2006 10:11 pm Post subject: |
|
|
Voyager
Joined: 27 Dec 2004 Posts: 82
|
Hi elvis_gn,
No I am not getting any thing on the Tool.Tool window is getting closed.But that is not regular behaviour of the tool.(I tested other webservice flows).That tool is HttpGetPut_demo.
Posting you Trace Just before the HttpReply Node.
(
(0x01000000):Properties = (
(0x03000000):MessageSet = 'M4H2IH4002001'
(0x03000000):MessageType = 'Envelope'
(0x03000000):MessageFormat = 'XML1'
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Transactional = FALSE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2006-03-22 11:59:34.420'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'414d512057535f504f43202020202020424c1a4420012b0e'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'MQIN_ISM'
(0x03000000):Transactional = FALSE
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 819
(0x03000000):Format = ' '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 2
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d512057535f504f43202020202020424c1a4420014101'
(0x03000000):CorrelId = X'414d512057535f504f43202020202020424c1a4420012b0e'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'WS_POC '
(0x03000000):UserIdentifier = '43226677 '
(0x03000000):AccountingToken = X'16010515000000273e39bf1fd05e775df6e3aa1940020000000000000000000b'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 11
(0x03000000):PutApplName = 'C:\WINDOWS\system32\java.exe'
(0x03000000):PutDate = DATE '2006-03-22'
(0x03000000):PutTime = GMTTIME '11:59:34.420'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000021):MRM = (
(0x0300000D)http://schemas.xmlsoap.org/soap/envelope/:Header = [color=red]NULL[/color] (
(0x0300000D):OpHdr = NULL What is the meanig of null here?Because i can see all the fields in this XML tab if i take this message in MQOutPut Node and View it as xml
(
(0x0300000D):OpHdrVersNum = '1.1'
(0x0300000D):OpDefin = NULL
(
(0x0300000D):SvceId = 'eCafe_ker'
(0x0300000D):OpId = 'WGGAI021'
(0x0300000D):SvceVersNum = '1.1'
)
(0x0300000D):OpDefin = NULL
(
(0x0300000D):SvceId = 'eCafe_ker'
(0x0300000D):OpId = 'WGGAI022'
(0x0300000D):SvceVersNum = '1.1'
)
(0x0300000D):OpDefin = NULL
(
(0x0300000D):SvceId = 'eCafe_ker'
(0x0300000D):SvceVersNum = '1.1'
)
(0x0300000D):OpDefin = NULL
(
(0x0300000D):SvceId = 'eCafe_ker'
(0x0300000D):SvceVersNum = '1.1'
)
(0x0300000D):OpDefin = NULL
(
(0x0300000D):SvceId = 'eCafe_ker'
(0x0300000D):RoutingData = '0000005254901150016294 1'
)
)
(0x0300000D):ISMHdr = NULL
(
(0x0300000D):ISMHdrVersNum = '1.1'
(0x0300000D):AppName = 'collections'
43.167000+05:30'
(0x0300000D):RespeCde = NULL
(
(0x0300000D):RtrnCde = '0000'
(0x0300000D):ReasCde = NULL
(0x0300000D):DiagText = NULL
)
)
)
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x0300000D)http://www.hsbc.com/ism1_1:RqstBundleOmsg = NULL
(
(0x0300000D):RqstElemt = 'GMABA YYN HBCA005EBD CA0098765431GYYNBFLINDALI 1 135000000000000CND20060306001987654321009'
(0x0300000D):RqstElemt = 'GMABA YYN HBCA005EBD CA0098765431GYYNBFLINDALI 135000000000000CND20060306001987654321009'
(0x0300000D):RqstElemt = 'GMABA YYN HBCA005EBD CA0098765431GYYNBFLINDALI 135000000000000CND20060306001987654321009'
(0x0300000D):RqstElemt = 'GMABA YYN HBCA005EBD CA0098765431GYYNBFLINDALI 135000000000000CND20060306001987654321009GMABA YYN HBCA005EBD CA0098765431GYYNBFLINDALI 135000000000000CND20060306001987654321009'
(0x0300000D):RqstElemt = 'GMABA YYN HBCA005EBD CA0098765431GYYNBFLINDALI ALI 135000000000000CND20060306001987654321009GMABA YYN HBCA005EBD CA0098765431GYYNBFLINDALI 13135000000000000CND20060306001987654321009GMABA YYN'
)
)
)
) |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Mar 22, 2006 10:30 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi PankajS,
Quote: |
No I am not getting any thing on the Tool.Tool window is getting closed.But that is not regular behaviour of the tool.(I tested other webservice flows).That tool is HttpGetPut_demo. |
I would suggest you try NetTool...you will find some recent posts regarding it...try a search...
If the tool is crashing then that means that the flow is working fine and trying to put the message onto the tool...
About the fields being NULL....
you say that you can see all the fields if oyu take the output from an MQOutput Node....
Do you see it as
or
Can you post your Output message.
Regards. |
|
Back to top |
|
 |
PankajS |
Posted: Wed Mar 22, 2006 11:09 pm Post subject: |
|
|
Voyager
Joined: 27 Dec 2004 Posts: 82
|
HI elvis_gn,
Thnks for input.
Here is the XML message if i use MQOutPut node instead of HttpReply node.
<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.hsbc.com/ism1_1" xmlns:tns="http://www.hsbc.com/proprietary" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<OpHdr> <OpHdrVersNum>1.1</OpHdrVersNum>
<OpDefinCnt>5</OpDefinCnt>
<IgnrErrFlag>N</IgnrErrFlag>
<OpDefin>
<SvceId>eCafe_ker</SvceId>
<OpId>WGGAI021</OpId>
<SvceVersNum>1.1</SvceVersNum>
</OpDefin>
<OpDefin>
<SvceId>eCafe_ker</SvceId>
<OpId>WGGAI022</OpId>
<SvceVersNum>1.1</SvceVersNum>
</OpDefin>
<OpDefin>
<SvceId>eCafe_ker</SvceId>
<OpId>WGGAI023</OpId>
<SvceVersNum>1.1</SvceVersNum>
</OpDefin>
<OpDefin>
<SvceId>eCafe_ker</SvceId>
<OpId>WGGAI024</OpId>
<SvceVersNum>1.1</SvceVersNum>
</OpDefin>
<OpDefin>
<SvceId>eCafe_ker</SvceId>
<OpId>WGGAI025</OpId>
<SvceVersNum>1.1</SvceVersNum>
<RoutingType></RoutingType>
<RoutingData>0000005254901150016294 1</RoutingData>
</OpDefin>
[color=red</OpHdr>[/color]
<ISMHdr> As i have mentioned in earlier post,I get NULL for the highlighted fileds but at the same time i can see data from those fileds.Is it regular behaviour or I am missing some thing ?
<ISMHdrVersNum>1.1</ISMHdrVersNum>
<AppName>collections</AppName>
<UserId>VENA08</UserId>
<ClntId>12345</ClntId>
<ClntHostId>IPAddr</ClntHostId>
<GloblLogId>1099999582012023</GloblLogId>
<MsgInstcId>9999584229</MsgInstcId>
<UserDviceId>133.4.2.152</UserDviceId>
<InbndChanlId>2001</InbndChanlId>
<SessnId>9999582951</SessnId>
<MsgCreatTmsp>2006-01-04T09:15:43.167000+05:30</MsgCreatTmsp>
<RespeCde>
<RtrnCde>0000</RtrnCde>
<ReasCde></ReasCde>
<DiagText></DiagText>
</RespeCde>
</ISMHdr>
</soapenv:Header>
<soapenv:Body>
<ns:RqstBundleOmsg>
<RqstElemt>GMABA YYN HBCA005EBD CA0098765431GYYNBFLINDALI 135000000000000CND20060306001987654321009</RqstElemt>
<RqstElemt>GMABA YYN HBCA005EBD CA0098765431GYYNBFLINDALI 135000000000000CND20060306001987654321009</RqstElemt>
<RqstElemt>GMABA YYN HBCA005EBD CA0098765431GYYNBFLINDALI 135000000000000CND20060306001987654321009</RqstElemt>
<RqstElemt>GMABA YYN HBCA005EBD CA0098765431GYYNBFLINDALI 135000000000000CND20060306001987654321009</RqstElemt>
<RqstElemt>GMABA YYN HBCA005EBD CA0098765431GYYNBFLINDALI 135000000000000CND20060306001987654321009GMABA YYN</RqstElemt>
</ns:RqstBundleOmsg>
</soapenv:Body>
</soapenv:Envelope> |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Mar 22, 2006 11:26 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi PankajS,
The XML is fine....I am presuming that you entered the "NULL" in the trace ouput that you posted
The ISMHdr(for example) is a complex type...i.e there are simpler types of XML tags within it...that is why there is no value associated with it in the trace...only the simple tags will have value between itself.
You need to do some reading on XML....try www.w3schools.com
Now, I think that your message is fine...so you should try another tool...
Also, the request identifier should be there in the LocalEnvironment...
Code: |
SET OutputLocalEnvironment.Destination.HTTP.RequestIdentifier =
CAST(InputLocalEnvironment.MRM.tns:Header.HTTP.RequestIdentifier AS BLOB); |
If you are using v6.0 of MB, i would suggest you try the sample provided for WebServices....it will be perfect.
Regards. |
|
Back to top |
|
 |
PankajS |
Posted: Wed Mar 22, 2006 11:40 pm Post subject: |
|
|
Voyager
Joined: 27 Dec 2004 Posts: 82
|
HI elvis_gn,
Things are working fine with NetTool.Earlier also i had downloaded the tool but it was of latest version so do not have SEND option there.
Thnks a lot for ur patience because i know all my queries were at primary level.
I have downloaded tutorial for XML.  |
|
Back to top |
|
 |
vennela |
Posted: Thu Mar 23, 2006 8:56 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
What version of Nettool did you download .... I would like to download it too |
|
Back to top |
|
 |
elvis_gn |
Posted: Thu Mar 23, 2006 7:34 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
|
Back to top |
|
 |
|