Author |
Message
|
abs_cal |
Posted: Mon May 18, 2009 8:51 am Post subject: How to get rid of HTTPReposne Header from WS response msg |
|
|
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 Jz¦ "ª 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 |
|
 |
Vitor |
Posted: Mon May 18, 2009 9:02 am Post subject: Re: How to get rid of HTTPReposne Header from WS response ms |
|
|
 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 |
|
 |
abs_cal |
Posted: Mon May 18, 2009 9:09 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Mon May 18, 2009 9:25 am Post subject: |
|
|
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 |
|
 |
WMBDEV1 |
Posted: Mon May 18, 2009 12:09 pm Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
mqjeff wrote: |
NameSpaCes. |
Ha ha, subliminal, I like it  |
|
Back to top |
|
 |
dilse |
Posted: Mon May 18, 2009 3:44 pm Post subject: |
|
|
 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 |
|
 |
|