You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by falom <fa...@yahoo.com.cn> on 2007/01/12 04:26:13 UTC

Re: Need help to get HTTP Header

Hi,
   
  From the current msgcontext you can get http request and response, where you can get your headers.
   
  falom

Gnanasekaran Vinayakamurthy <Gn...@phoenix.edu> wrote:
      Hi all,
   
  Is there any way where I can get response HTTP Header data in Axis2?
   
  We are trying to get cookie from Http header, but no luck so far.... we are getting header values from xml soap message only, but not able to get the HTTP Header.
   
  Below is the soap response from the server (captured using tcpmon)
   
  **************************************************************************************************************************
    HTTP/1.1 200 OK
  Date: Thu, 11 Jan 2007 18:21:34 GMT
  Server: Microsoft-IIS/6.0
  MicrosoftOfficeWebServer: 5.0_Pub
  X-Powered-By: ASP.NET
  X-AspNet-Version: 2.0.50727
  RSAuthenticationHeader: sqlAuthCookie
  Set-Cookie: sqlAuthCookie=2E4D80C2D790C877650865B5FCD3E0F1DCC565C68BCCB22B3167B7063C61CBB11ED07D75F85354C1E56F17B46E6F3246D97F202C53424CA028F8DE4421BE498173FD58E42E8D2E55C3059167301E7E6C; path=/; HttpOnly
  
  Cache-Control: private, max-age=0 
   
  Content-Type: text/xml; charset=utf-8 
   
  Content-Length: 794 
   
   
  <?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:Header><ServerInfoHeader xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices"><ReportServerVersionNumber>2005.090.2047.00</ReportServerVersionNumber><ReportServerEdition>Enterprise</ReportServerEdition><ReportServerVersion>Microsoft SQL Server Reporting Services Version 9.00.2047.00</ReportServerVersion><ReportServerDateTime>2007-01-11T11:21:34</ReportServerDateTime></ServerInfoHeader></soap:Header><soap:Body><LogonUserResponse xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices" /></soap:Body></soap:Envelope>
   
  **************************************************************************************************************************
   
   
  Any help on this would be greatly appreciated.
   
  Thank you!
   
  Vinay



 		
---------------------------------
 Mp3疯狂搜-新歌热歌高速下