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 » How to get rid of HTTPReposne Header from WS response msg

Post new topic  Reply to topic
 How to get rid of HTTPReposne Header from WS response msg « View previous topic :: View next topic » 
Author Message
abs_cal
PostPosted: Mon May 18, 2009 8:51 am    Post subject: How to get rid of HTTPReposne Header from WS response msg Reply with quote

Acolyte

Joined: 18 Aug 2005
Posts: 62

Hi! I am using SOAP/HTTP nodes. Response is coming as below message. I used Rfh2 to save this message(xml response message with the HTTPResponse Header. Because of this HTTPResposne header, I couldn't navigate into XML message to retrieve the session id.
Anyone can help me?


MD   ÿÿÿÿ  ¸ AMQ MQSIDEV2 J z¦ "ª MQSIDEV2 mqsidev 210   2009051816134692  ÿÿÿÿHTTP/1.0 200 OK
Server:
Content-Type: text/xml; charset=utf-8
Content-Length: 1550
Date: Mon, 18 May 2009 16:22:33 GMT
Connection: close
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><loginResponse><result><metadataServerUrl>https://na1-api.salesforce.com/services/Soap/m/15.0/4f1500D30000000V375</metadataServerUrl><passwordExpired>false</passwordExpired><sandbox>false</sandbox></result></loginResponse></soapenv:Body></soapenv:Envelope>
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon May 18, 2009 9:02 am    Post subject: Re: How to get rid of HTTPReposne Header from WS response ms Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

abs_cal wrote:
Because of this HTTPResposne header, I couldn't navigate into XML message to retrieve the session id.


Why not? How did you attempt it and what went wrong? Post your code snippet and relevent error codes / trace.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
abs_cal
PostPosted: Mon May 18, 2009 9:09 am    Post subject: Reply with quote

Acolyte

Joined: 18 Aug 2005
Posts: 62

Got the HTTPRepsonse in Compute node. In compute node, trying to get the metadataServerUrl value.

ET Environment.Variables.LOGIN_url= InputRoot.xml."soapenv:Envelope"."soapenv:Body".loginResponse.result."metadataServerUrl";

Nothing is being assigned to LOGIN_url from Input message.
..
Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon May 18, 2009 9:25 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Why would it be in InputRoot.XML?

Also note that InputRoot.xml is not the same as InputRoot.XML, and neither are the correct domain that an HTTP response message will be in, unless you have gone to some lengths to tell the HTTPRequest node to use the wrong domain for XML with NameSpaCes.
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Mon May 18, 2009 12:09 pm    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

mqjeff wrote:
NameSpaCes.


Ha ha, subliminal, I like it
Back to top
View user's profile Send private message
dilse
PostPosted: Mon May 18, 2009 3:44 pm    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

I am assuming the sessionid being the "HTTPRequestIdentifier" field. You can get this field from the HTTP headers.

Also to remove the HTTPResponseHeader, all you need to do is to set the HTTPResponseHeader in the OutputRoot to NULL.
_________________
DilSe..

Take life as it comes..
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 » How to get rid of HTTPReposne Header from WS response msg
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.