@@ -175,39 +175,39 @@ private function RefreshServiceProxy()
175175 $ headers = array ();
176176
177177 $ headers [] = new SoapHeader (
178- $ this ->namespace ,
179- 'CustomerAccountId ' ,
180- $ this ->accountId
178+ $ this ->namespace ,
179+ 'CustomerAccountId ' ,
180+ $ this ->accountId
181181 );
182182
183183 $ headers [] = new SoapHeader (
184- $ this ->namespace ,
185- 'CustomerId ' ,
186- $ this ->customerId
184+ $ this ->namespace ,
185+ 'CustomerId ' ,
186+ $ this ->customerId
187187 );
188188
189189 $ headers [] = new SoapHeader (
190- $ this ->namespace ,
191- 'DeveloperToken ' ,
192- $ this ->developerToken
190+ $ this ->namespace ,
191+ 'DeveloperToken ' ,
192+ $ this ->developerToken
193193 );
194194
195195 $ headers [] = new SoapHeader (
196- $ this ->namespace ,
197- 'UserName ' ,
198- $ this ->username
196+ $ this ->namespace ,
197+ 'UserName ' ,
198+ $ this ->username
199199 );
200200
201201 $ headers [] = new SoapHeader (
202- $ this ->namespace ,
203- 'Password ' ,
204- $ this ->password
202+ $ this ->namespace ,
203+ 'Password ' ,
204+ $ this ->password
205205 );
206206
207- $ headers [] = new SoapHeader (
208- $ this ->namespace ,
209- 'AuthenticationToken ' ,
210- $ this ->authenticationToken
207+ $ headers [] = new SoapHeader (
208+ $ this ->namespace ,
209+ 'AuthenticationToken ' ,
210+ $ this ->authenticationToken
211211 );
212212
213213 /**
@@ -216,22 +216,24 @@ private function RefreshServiceProxy()
216216 * response, specify the SOAP_SINGLE_ELEMENT_ARRAYS feature.
217217 */
218218 $ options = array (
219- 'trace ' => TRUE ,
220- 'exceptions ' => TRUE ,
221- 'features ' => SOAP_SINGLE_ELEMENT_ARRAYS ,
222-
223- /**
224- * Map long type to string type. For details, see
225- * from_long_xml and to_long_xml callbacks.
226- */
227- 'typemap ' => array (
228- array (
229- 'type_ns ' => 'http://www.w3.org/2001/XMLSchema ' ,
230- 'type_name ' => 'xs:long ' ,
231- 'to_xml ' => 'to_long_xml ' ,
232- 'from_xml ' => 'from_long_xml '
233- ),
234- )
219+ 'trace ' => TRUE ,
220+ 'exceptions ' => TRUE ,
221+ 'features ' => SOAP_SINGLE_ELEMENT_ARRAYS ,
222+ // Disable keep-alive to avoid 'Process open FD table is full'
223+ 'keep-alive ' => FALSE ,
224+
225+ /**
226+ * Map long type to string type. For details, see
227+ * from_long_xml and to_long_xml callbacks.
228+ */
229+ 'typemap ' => array (
230+ array (
231+ 'type_ns ' => 'http://www.w3.org/2001/XMLSchema ' ,
232+ 'type_name ' => 'xs:long ' ,
233+ 'to_xml ' => 'to_long_xml ' ,
234+ 'from_xml ' => 'from_long_xml '
235+ ),
236+ )
235237 );
236238
237239 $ proxy = @new SOAPClient ($ this ->wsdlUrl , $ options );
0 commit comments