473,471 Members | 2,040 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SOAP Client timeout

Hi everyone,

I am encountering what appears to be a timeout problem using a PHP
soap client to connect to a VB.net soap server. I cannot provide the
WSDL as it is only available for internal use -- if this is essential
I can create an equivalent mockup.

I'm running an Apache 1.3 webserver. I call the script via a web
browser.

php.ini has the following pertinent settings:

default_socket_timeout = 120
max_execution_time = 60
memory_limit = 20M

A simple equivalent to the script looks like:

<?php

$soapClient = new SoapClient('http://www.example.com/path/to.wsdl',
array('connection_timeout' =120));

try {
$soapClient->WaitBeforeResponse(500);
} catch(Exception $e) {
echo $e->getMessage();
}

?>

The server method WaitBeforeResponse sleeps for the time provided, and
then returns 'Hello, World!'.

Consistently, after 15 seconds the Soap Client throws the following
exception:

"Error Fetching http headers"

Nowhere in any of my configuration files do I see the number '15' come
up. If WaitBeforeResponse(5) is called, it returns 'Hello, World!'
correctly.

Is anyone aware of a configuration directive I am missing that would
explain the consistent 15 second timeout? When executed directly on
the soap server (.NET provides built in WSDL execution functionality)
calls can take as long as they want, and still ultimately produce a
result.

Jun 5 '07 #1
1 29852
On Jun 5, 2:31 pm, lko...@gmail.com wrote:
Hi everyone,

I am encountering what appears to be a timeout problem using a PHP
soap client to connect to a VB.net soap server. I cannot provide the
WSDL as it is only available for internal use -- if this is essential
I can create an equivalent mockup.

I'm running an Apache 1.3 webserver. I call the script via a web
browser.

php.ini has the following pertinent settings:

default_socket_timeout = 120
max_execution_time = 60
memory_limit = 20M

A simple equivalent to the script looks like:

<?php

$soapClient = new SoapClient('http://www.example.com/path/to.wsdl',
array('connection_timeout' =120));

try {
$soapClient->WaitBeforeResponse(500);} catch(Exception $e) {

echo $e->getMessage();

}

?>

The server method WaitBeforeResponse sleeps for the time provided, and
then returns 'Hello, World!'.

Consistently, after 15 seconds the Soap Client throws the following
exception:

"Error Fetching http headers"

Nowhere in any of my configuration files do I see the number '15' come
up. If WaitBeforeResponse(5) is called, it returns 'Hello, World!'
correctly.

Is anyone aware of a configuration directive I am missing that would
explain the consistent 15 second timeout? When executed directly on
the soap server (.NET provides built in WSDL execution functionality)
calls can take as long as they want, and still ultimately produce a
result.
Apologies, I discovered that somewhere between php.ini and script
execution, default_socket_timeout is being set to 15.

Jun 5 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Glauco | last post by:
I'm trying to use SOAPpy 0.10.1 for a client but is difficult to handle easly Is this library in use or i'm using an OLD death library ? I'm alone in find a lot of problem in a SOAP Client ?...
0
by: Alvin A. Delagon | last post by:
Hello python programmers! I would like to add myself to the ever increasing number of python users. Here's my first question. I've written two SOAP clients using PERL and a PHP. I tried to wirte a...
2
by: George B | last post by:
Hi, I have developed a SOAP service using Perl's SOAP::Lite module and I am currently working through interoperability testing. I have written a client in VB6 using MSSOAP 3.0 and it works fine....
2
by: Dan | last post by:
All, I have a Web Service that validates a piece of data. However, the database that the data comes from is mamouth. So, it may take a long time for the validation query to complete. ...
0
by: jennifer.perkins | last post by:
I've seen a couple posts by people having similar problems, but the suggested solutions I've tried so far haven't worked. I'm using a SOAP client in VB.Net (constructed by wsdl.exe) and the...
0
by: kencana | last post by:
hi All, I got problem in passing data (more than one) from soap client to the soap server. but if i only passing one data at a time, it works successfully.. The following is the error message i...
2
by: Enda Manni | last post by:
Hi, I have a gSoap Web Service written using C++, it uses SOAP username and password authentication. I also have a C# form client consuming the web service, all this was working fine until I...
1
by: monsalvo | last post by:
Hello. I've just coded a VBScript SOAP Client to send requests to a web service in our intranet. It's working and we'll use it in a DTS cuz we have not implemented SQL Server 2005 yet. Anyway. I...
1
by: ehsanch | last post by:
Hi i am writing a SOAP client, when using php 5 soap , it send this code and i get error : <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.