This project is read-only.

Render2 throwing exception: Error Fetching http headers

Apr 14, 2011 at 5:20 PM

Very recently, we started getting the following exception from SSRSReport.php on line 471, $stdObject = $this->_soapHandle_Exe->Render2($parameters).

Has anyone seen this problem or has an idea for a resolution.

btw:  I have changed PHP.INI setting from 60 to 180, ex:  default_socket_timeout = 180, with no affect.

The following exception content is returned when this happens:

Context:
Array
(
    [soapFault] =SoapFault Object
        (
            [message:protected] =Error Fetching http headers
            [string:private] =
            [code:protected] =0
            [file:protected] =C:\Larry\SSRSPHP\SSRSReport.php
            [line:protected] =471
            [trace:private] =Array
                (
                    [0] =Array
                        (
                            [function] =__doRequest
                            [class] =SoapClient
                            [type] =->
                            [args] =Array
                                (
                                    [0] =<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices"><SOAP-ENV:Header><ExecutionHeaderPDF&lt;DeviceInfo&gt;&lt;/DeviceInfo&gt;Estimatehttp://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices"><ExecutionID>54oljav4gzaacrbl3hlxbnbx</ExecutionID></ExecutionHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:Render2><ns1:Format>PDF</ns1:Format><ns1:DeviceInfo>&lt;DeviceInfo&gt;&lt;/DeviceInfo&gt;</ns1:DeviceInfo><ns1:PaginationMode>Estimate</ns1:PaginationMode></ns1:Render2></SOAP-ENV:Body></SOAP-ENV:Envelope xmlns="54oljav4gzaacrbl3hlxbnbx>

                                    [1] =http://DB3:80/ReportServer/ReportExecution2005.asmx
                                    [2] =http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/Render2
                                    [3] =1
                                    [4] =0
                                )

                        )

                    [1] =Array
                        (
                            [function] =__call
                            [class] =SoapClient
                            [type] =->
                            [args] =Array
                                (
                                    [0] =Render2
                                    [1] =Array
                                        (
                                            [0] =Array
                                                (
                                                    [Format] =PDF
                                                    [DeviceInfo] =<DeviceInfo></DeviceInfo>
                                                    [PaginationMode] =Estimate
                                                )

                                        )

                                )

                        )

                    [2] =Array
                        (
                            [file] =C:\Larry\SSRSPHP\SSRSReport.php
                            [line] =471
                            [function] =Render2
                            [class] =SoapClient
                            [type] =->
                            [args] =Array
                                (
                                    [0] =Array
                                        (
                                            [Format] =PDF
                                            [DeviceInfo] =<DeviceInfo></DeviceInfo>
                                            [PaginationMode] =Estimate
                                        )

                                )

                        )

                    [3] =Array
                        (
                            [file] =C:\Larry\system\Reports\v2\results.php
                            [line] =149
                            [function] =Render2
                            [class] =SSRSReport
                            [type] =->
                            [args] =Array
                                (
                                    [0] =RenderAsPDF Object
                                        (
                                            [Columns] =
                                            [ColumnSpacing] =
                                            [EndPage] =
                                            [HumanReadablePDF] =
                                            [MarginBottom] =
                                            [MarginLeft] =
                                            [MarginRight] =
                                            [MarginTop] =
                                            [PageHeight] =
                                            [PageWidth] =
                                            [StartPage] =
                                        )

                                    [1] =Estimate
                                    [2] =
                                    [3] =
                                    [4] =
                                    [5] =
                                    [6] =
                                )

                        )

                )

            [faultstring] =Error Fetching http headers
            [faultcode] =HTTP
        )

 

Apr 14, 2011 at 5:36 PM

Additional note, using HTTPFox, :

when default_socket_timeout = 60, the post would take 61 secs to respond with failure\exception being thrown

when default_socket_timeout = 180, the post would take 181 secs to respond with failure\exception being thrown.

it is like the call is failing during the soap request but will will throw exception when timeout is reached.