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 » IBM MQ Installation/Configuration Support » Http Request Maintain session MB Version 5

Post new topic  Reply to topic
 Http Request Maintain session MB Version 5 « View previous topic :: View next topic » 
Author Message
ranjith
PostPosted: Mon Sep 15, 2008 7:51 am    Post subject: Http Request Maintain session MB Version 5 Reply with quote

Apprentice

Joined: 04 May 2004
Posts: 25

Environment WMB Version 5

I need to call the webservice through 3 calls

My flow looks like below

MQInput-->Compute-->HTTPRequest-->compute-->HTTPRequest--->compute-->HTTPRequest-->Compute-->MQOutput

As per the wsdl i need make a call 3 times to the webservices..

on 1 st httprequest node i need to pass the userid and password (userlogin Method)
For the 2nd httrequest i need to maintain the session for the 2nd http request which is the original message(data)
for the 3rd httpreqeust i need to send a logout message to the (Userlogout Method)

My question is

Through message broker can i maintain the http session from the 1st call to the 2nd call.(Note the webservice application is using the cookie for maintaining the session)

Through Soap UI i am able to send the message successfully by maintaining the http session.


Please help me how we can do this in the mesage broker..Thanks in advance
Back to top
View user's profile Send private message
ranjith
PostPosted: Tue Sep 16, 2008 5:30 am    Post subject: Reply with quote

Apprentice

Joined: 04 May 2004
Posts: 25

Soap UI is using the HTTP1.1 and message broker is using HTTP1.0

will that make difference ?

Thanks
Back to top
View user's profile Send private message
ranjith
PostPosted: Wed Oct 08, 2008 1:34 am    Post subject: Reply with quote

Apprentice

Joined: 04 May 2004
Posts: 25

I am attaching the trace file for reference..please let me know this information helps

Trace information is quite big.

1st method input


(
(0x01000000):Properties = (
(0x03000000):MessageSet = ''
(0x03000000):MessageType = ''
(0x03000000):MessageFormat = ''
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 437
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2008-10-02 13:45:19.730'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'WMB.WMB.AIQMPREADYTOCOMMIT'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 437
(0x03000000):Format = 'WSREQHDR'
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d5120514d4941413334202020202048d4f7a4203b3902'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'QMIAA34 '
(0x03000000):UserIdentifier = 'nm04579 '
(0x03000000):AccountingToken = X'16010515000000ff13a58f3fad577979e3058ef103000000000000000000000b'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 11
(0x03000000):PutApplName = 'FX08242\Desktop\rfhutilc.exe'
(0x03000000):PutDate = DATE '2008-10-02'
(0x03000000):PutTime = GMTTIME '13:45:19.730'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000000):HTTPRequestHeader = (
(0x03000000):SOAPAction = 'http://www.xxx.com/webservices/UserLogin'
(0x03000000):Connection = 'keep-alive'
(0x03000000):Proxy-Connection = 'keep-alive'
)
(0x01000010):XMLNS = (
(0x01000000)http://www.xxx.com/webservices/:UserLogin = (
(0x07000012):xmlns = 'http://www.XXX.com/webservices/'
(0x01000000)http://www.xxx.com/webservices/:UserName = (
(0x02000000): = 'SYSADM'
)
(0x01000000)http://www.starlims.com/webservices/:Password = (
(0x02000000): = 'PASS'
)
)
)
)


1st method response

(
(0x01000000):Properties = (
(0x03000000):MessageSet = ''
(0x03000000):MessageType = ''
(0x03000000):MessageFormat = ''
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 1208
(0x03000000):Transactional = FALSE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2008-10-02 04:07:26.705752'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
)
(0x01000000):HTTPRequestHeader = (
(0x03000000):Content-Length = '282'
(0x03000000):SOAPAction = 'http://www.starlims.com/webservices/UserLogin'
(0x03000000):Connection = 'keep-alive'
(0x03000000):Proxy-Connection = 'keep-alive'
(0x03000000):Content-Type = 'text/xml; charset=utf-8'
(0x03000000):Host = 'dqmpeur0.michelin.com'
)
(0x01000000):HTTPResponseHeader = (
(0x03000000):X-Original-HTTP-Status-Line = 'HTTP/1.1 200 OK'
(0x03000000):X-Original-HTTP-Status-Code = 200
(0x03000000):Connection = 'keep-alive'
(0x03000000):Date = 'Thu, 02 Oct 2008 13:45:42 GMT'
(0x03000000):Server = 'Microsoft-IIS/6.0'
(0x03000000):X-Powered-By = 'ASP.NET'
(0x03000000):X-AspNet-Version = '2.0.50727'
(0x03000000):Set-Cookie = 'ASP.NET_SessionId=ifojflrliexs5o452tmsh1jz; path=/'
(0x03000000):Cache-Control = 'private, max-age=0'
(0x03000000):Content-Type = 'text/xml; charset=utf-8'
(0x03000000):Content-Length = '588'
)
(0x01000010):XMLNS = (
(0x05000018):XML = (
(0x06000011): = '1.0'
(0x06000012): = 'utf-8'
)
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Envelope = (
(0x07000012)xmlns:soap = 'http://schemas.xmlsoap.org/soap/envelope/'
(0x07000012)xmlns:soapenc = 'http://schemas.xmlsoap.org/soap/encoding/'
(0x07000012)xmlns:tns = 'http://www.starlims.com/webservices/'
(0x07000012)xmlns:types = 'http://www.starlims.com/webservices/encodedTypes'
(0x07000012)xmlns:xsi = 'http://www.w3.org/2001/XMLSchema-instance'
(0x07000012)xmlns:xsd = 'http://www.w3.org/2001/XMLSchema'
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x03000000)http://schemas.xmlsoap.org/soap/envelope/:encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/'
(0x01000000)http://www.starlims.com/webservices/:UserLoginResponse = (
(0x01000000):UserLoginResult = (
(0x03000000)http://www.w3.org/2001/XMLSchema-instance:type = 'xsd:boolean'
(0x02000000): = 'true'
)
)
)
)
)
)


2nd method call

(
(0x01000000):Properties = (
(0x03000000):MessageSet = ''
(0x03000000):MessageType = ''
(0x03000000):MessageFormat = ''
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 1208
(0x03000000):Transactional = FALSE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2008-10-02 04:07:26.705752'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
)
(0x01000000):HTTPRequestHeader = (
(0x03000000):Content-Length = '282'
(0x03000000):SOAPAction = 'http://www.starlims.com/webservices/LIMSReferenceData'
(0x03000000):Connection = 'keep-alive'
(0x03000000):Proxy-Connection = 'keep-alive'
(0x03000000):Content-Type = 'text/xml; charset=UTF-8'
(0x03000000):Host = 'dqmpeur0.michelin.com'
(0x03000000):Cookie = 'ASP.NET_SessionId=ifojflrliexs5o452tmsh1jz'
(0x03000000):User-Agent = 'Jakarta Commons-HttpClient/3.0.1'
)
(0x01000000):HTTPResponseHeader = (
(0x03000000):X-Original-HTTP-Status-Line = 'HTTP/1.1 200 OK'
(0x03000000):X-Original-HTTP-Status-Code = 200
(0x03000000):Connection = 'keep-alive'
(0x03000000):Date = 'Thu, 02 Oct 2008 13:45:42 GMT'
(0x03000000):Server = 'Microsoft-IIS/6.0'
(0x03000000):X-Powered-By = 'ASP.NET'
(0x03000000):X-AspNet-Version = '2.0.50727'
(0x03000000):Set-Cookie = 'ASP.NET_SessionId=ifojflrliexs5o452tmsh1jz; path=/'
(0x03000000):Cache-Control = 'private, max-age=0'
(0x03000000):Content-Type = 'text/xml; charset=utf-8'
(0x03000000):Content-Length = '588'
)
(0x01000010):XMLNS = (
(0x05000018): = (
(0x06000011): = '1.0'
(0x06000012): = 'UTF-8'
)
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Envelope = (
(0x07000012)xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/'
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x01000000)http://www.starlims.com/webservices/:LIMSReferenceData = (
(0x01000000):correlationID = (
(0x02000000): = '000107'
)
(0x05000020):IGFile = (
(0x06000004): = 'FK9CIEC002001'
(0x06000008): = 'www.mrmnames.net/FK9CIEC002001'
(0x05000022): =
)
(0x01000000):IGFile = (
(0x07000012)xmlns:tns = 'http://schemas.xmlsoap.org/soap/encoding/'
(0x07000012)xmlns:xsd = 'http://www.w3.org/2001/XMLSchema'
(0x07000012)xmlns:enc = 'http://www.starlims.com/webservices/encodedTypes'
(0x07000012)xmlns:xsi = 'http://www.w3.org/2001/XMLSchema-instance'
(0x07000012)xmlns:xml = 'http://www.w3.org/XML/1998/namespace'
(0x01000000):update = (
(0x03000000)http://schemas.xmlsoap.org/soap/encoding/:arrayType = 'enc:DailyUpdate[]'
(0x01000000):DailyUpdate = (
(0x01000000):updateDate = (
(0x02000000): = '2008-10-02'
)
(0x01000000):UpdateEmpty = (
(0x02000000): = 'true'
)
(0x01000000):UpdateEnd = (
(0x02000000): = 'true'
)
)
)
)
)
)
)
)
)


2nd method response

========> Trace Info <======== 2/10/2008 :: 15:45 >>> Exceptions +++++++ (
(0x01000000):Properties = (
(0x03000000):MessageSet = ''
(0x03000000):MessageType = ''
(0x03000000):MessageFormat = ''
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 1208
(0x03000000):Transactional = FALSE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2008-10-02 04:07:38.185449'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
)
(0x01000000):HTTPRequestHeader = (
(0x03000000):Content-Length = '746'
(0x03000000):SOAPAction = 'http://www.starlims.com/webservices/LIMSReferenceData'
(0x03000000):Connection = 'keep-alive'
(0x03000000):Proxy-Connection = 'keep-alive'
(0x03000000):Content-Type = 'text/xml; charset=UTF-8'
(0x03000000):Host = 'dqmpeur0.michelin.com'
(0x03000000):Cookie = 'ASP.NET_SessionId=ifojflrliexs5o452tmsh1jz'
(0x03000000):User-Agent = 'Jakarta Commons-HttpClient/3.0.1'
)
(0x01000000):HTTPResponseHeader = (
(0x03000000):X-Original-HTTP-Status-Line = 'HTTP/1.1 500 Internal Server Error'
(0x03000000):X-Original-HTTP-Status-Code = 500
(0x03000000):Connection = 'keep-alive'
(0x03000000):Date = 'Thu, 02 Oct 2008 13:45:49 GMT'
(0x03000000):Server = 'Microsoft-IIS/6.0'
(0x03000000):X-Powered-By = 'ASP.NET'
(0x03000000):X-AspNet-Version = '2.0.50727'
(0x03000000):Cache-Control = 'private'
(0x03000000):Content-Type = 'text/xml; charset=utf-8'
(0x03000000):Content-Length = '1972'
)
(0x01000000):BLOB = (
(0x03000000):UnknownParserName = ''
(0x03000000):BLOB = X'3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d227574662d38223f3e3c736f61703a456e76656c6f706520786d6c6e733a736f61703d22687474703a2f2f736368656d61732e786d6c736f61702e6f72672f736f61702f656e76656c6f70652f2220786d6c6e733a7873693d22687474703a2f2f7777772e77332e6f72672f323030312f584d4c536368656d612d696e7374616e63652220786d6c6e733a7873643d22687474703a2f2f7777772e77332e6f72672f323030312f584d4c536368656d61223e3c736f61703a426f64793e3c736f61703a4661756c743e3c6661756c74636f64653e736f61703a5365727665723c2f6661756c74636f64653e3c6661756c74737472696e673e53797374656d2e5765622e53657276696365732e50726f746f636f6c732e536f6170457863657074696f6e3a205365727665722077617320756e61626c6520746f2070726f6365737320726571756573742e202d2d2d2667743b2053797374656d2e457863657074696f6e3a200d0a0d0a2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d536572766572204572726f722d2d2d2d2d2d2d2d2d2d2d2d2d2d2d0d0a0d0a457863657074696f6e206f6620747970653a204e756c6c5265666572656e6365457863657074696f6e0d0a4465736372697074696f6e3a204f626a656374207265666572656e6365206e6f742073657420746f20616e20696e7374616e6365206f6620616e206f626a6563742e0d0a0d0a457865637574696f6e20537461636b3a0d0a0d0a2d2d2d2d2d2d2d2d2d2d456e6420536572766572204572726f722d2d2d2d2d2d2d2d2d2d0d0a0d0a0d0a0d0a53657276657220737461636b2074726163653a200d0a202020617420537461726c696d732e5365727665722e52656d6f7465436f6e74726f6c6c65722e5f52756e2853534c526571756573742073736c526571756573742c2053534c53657373696f6e2073736c53657373696f6e2c2053534c526573706f6e73652073736c526573706f6e73652c20537472696e6720757365724e616d652c20537472696e67207363726970742920696e20453a5c50726f6a656374735c5365727665725c417070446f6d61696e4d616e616765725c52656d6f7465436f6e74726f6c6c65722e63733a6c696e65203432360d0a202020617420537461726c696d732e5365727665722e52656d6f7465436f6e74726f6c6c65722e5f52756e284952657175657374603320726571756573742c204953657373696f6e60332073657373696f6e2c2049526573706f6e7365603420726573706f6e73652920696e20453a5c50726f6a656374735c5365727665725c417070446f6d61696e4d616e616765725c52656d6f7465436f6e74726f6c6c65722e63733a6c696e65203331380d0a202020617420537461726c696d732e5365727665722e52656d6f7465436f6e74726f6c6c65722e52756e284952657175657374603320726571756573742c204953657373696f6e60332073657373696f6e2c2049526573706f6e7365603420726573706f6e73652920696e20453a5c50726f6a656374735c5365727665725c417070446f6d61696e4d616e616765725c52656d6f7465436f6e74726f6c6c65722e63733a6c696e65203134380d0a20202061742053797374656d2e52756e74696d652e52656d6f74696e672e4d6573736167696e672e537461636b4275696c64657253696e6b2e5f5072697661746550726f636573734d65737361676528496e74507472206d642c204f626a6563745b5d20617267732c204f626a656374207365727665722c20496e743332206d6574686f645074722c20426f6f6c65616e206645786563757465496e436f6e746578742c204f626a6563745b5d26616d703b206f757441726773290d0a20202061742053797374656d2e52756e74696d652e52656d6f74696e672e4d6573736167696e672e537461636b4275696c64657253696e6b2e5072697661746550726f636573734d6573736167652852756e74696d654d6574686f6448616e646c65206d642c204f626a6563745b5d20617267732c204f626a656374207365727665722c20496e743332206d6574686f645074722c20426f6f6c65616e206645786563757465496e436f6e746578742c204f626a6563745b5d26616d703b206f757441726773290d0a20202061742053797374656d2e52756e74696d652e52656d6f74696e672e4d6573736167696e672e537461636b4275696c64657253696e6b2e53796e6350726f636573734d65737361676528494d657373616765206d73672c20496e743332206d6574686f645074722c20426f6f6c65616e206645786563757465496e436f6e74657874290d0a0d0a457863657074696f6e2072657468726f776e206174205b305d3a200d0a202020617420537461726c696d732e585f57535f4d494348454c494e2e4c494d535265666572656e6365446174615f77732e4c494d535265666572656e63654461746128537472696e6720636f7272656c6174696f6e49442c20494746696c6520494746696c65290d0a2020202d2d2d20456e64206f6620696e6e657220657863657074696f6e20737461636b207472616365202d2d2d3c2f6661756c74737472696e673e3c64657461696c202f3e3c2f736f61703a4661756c743e3c2f736f61703a426f64793e3c2f736f61703a456e76656c6f70653e'
)
) ++++++ Request Message ++++++ NULL ++++++ SOAP FAULT ++++++ <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&gt; System.Exception:



---------------Server Error---------------



Exception of type: NullReferenceException

Description: Object reference not set to an instance of an object.



Execution Stack:



----------End Server Error----------







Server stack trace:

at Starlims.Server.RemoteController._Run(SSLRequest sslRequest, SSLSession sslSession, SSLResponse sslResponse, String userName, String script) in E:\Projects\Server\AppDomainManager\RemoteController.cs:line 426

at Starlims.Server.RemoteController._Run(IRequest`3 request, ISession`3 session, IResponse`4 response) in E:\Projects\Server\AppDomainManager\RemoteController.cs:line 318

at Starlims.Server.RemoteController.Run(IRequest`3 request, ISession`3 session, IResponse`4 response) in E:\Projects\Server\AppDomainManager\RemoteController.cs:line 148

at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]&amp; outArgs)

at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]&amp; outArgs)

at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)



Exception rethrown at [0]:

at Starlims.X_WS_MICHELIN.LIMSReferenceData_ws.LIMSReferenceData(String correlationID, IGFile IGFile)

--- End of inner exception stack trace ---</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>

Back to top
View user's profile Send private message
Gaya3
PostPosted: Wed Oct 08, 2008 1:49 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Do you have HTTP Server ?

as HTTP is a stateless protocol, and it wont keep sessions, and MB flow work as HTTP Client so the session will expired. (Connection will be get closed)

the second Webservice call will initiate a new session again and it goes like that.
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
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 » IBM MQ Installation/Configuration Support » Http Request Maintain session MB Version 5
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.