axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nadir Amra <a...@us.ibm.com>
Subject Re: Axis C++ clien not working: HTTPTransportException "Channel error: connection timed out before receiving"
Date Fri, 10 Aug 2007 13:39:31 GMT
I would suggest building Axis C++ from latest code in SVN and trying 
again.  There are numerous fixes in the transport that is not in 1.6b.

Nadir K. Amra


Илья Велесевич <win_perec@mail.ru> wrote on 08/10/2007 06:09:25 AM:

> Hi all!!!
> 
> I'm user Axis C++ 1.6b not long ago;
> 
> I have web service written on C# and located on my localhost 
> (Windows XP Pro, IIS server)
> (localhost - turn on)
> I've generate proxy classes(using WSDL2Ws tool):
>   Service1Soap.cpp
>   Service1Soap.hpp
> 
> And my client don't working
> I try run this code:
> 
> #include "stdafx.h"
> #include "Service1Soap.hpp"
> int _tmain(int argc, _TCHAR* argv[])
> {
>       Service1Soap ws;
>       xsd__string result = ws.HelloWorld();
> }
> 
> But in method ws.HelloWorld(): 
> //Next string m_pCall->invoke() generate exception:
> //"Channel error: connection timed out before receiving."
> if (AXIS_SUCCESS == m_pCall->invoke())
> {
>    if(AXIS_SUCCESS == m_pCall->checkMessage("HelloWorldResponse", "
> http://tempuri.org/"))
>    {
>        xsd__string pReturn = 
> m_pCall->getElementAsString("HelloWorldResult", 0);
>        if(pReturn)
>        {
>            Ret = new char[strlen( pReturn) + 1];
>            strcpy( Ret, pReturn);
>            Axis::AxisDelete( pReturn, XSD_STRING);
>        }
>     }
> }
> If open in log file
> can see that exception generate after:
> 
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPTransport > 
> getBytes @003280B0,"
> .
> .
> .
> .
> .
> .
> <then waiting.......>
> .
> .
> .
> .
> .
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPTransport > 
> readHTTPHeader @003280B0
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPChannel > 
> closeQuietly @0032A3F0,false
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPChannel < 
> closeQuietly @0032A3F0
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPChannel > 
> operator>> @0032A3F0,""
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPChannel > 
> applyTimeout @0032A3F0
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPChannel < 
> applyTimeout @0032A3F0,1
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPChannel < 
> operator>> @0032A3F0,[60613B00] <`a;.>
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPTransport < 
> readHTTPHeader @003280B0
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPTransport > 
> processHTTPHeader @003280B0
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPTransport > 
> processResponseHTTPHeaders @003280B0
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPTransport < 
> processResponseHTTPHeaders @003280B0
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPTransport < 
> processHTTPHeader @003280B0
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPTransport > 
> readHTTPHeader @003280B0
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPChannel > 
> closeQuietly @0032A3F0,false
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPChannel < 
> closeQuietly @0032A3F0
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPChannel > 
> operator>> @0032A3F0,""
> [10/08/2007 13:51:44:689 GTB Daylight Time] 1620 HTTPChannel > 
> applyTimeout @0032A3F0
> [10/08/2007 13:51:54:675 GTB Daylight Time] 1620 HTTPChannel < 
> applyTimeout @0032A3F0,0
> [10/08/2007 13:51:54:675 GTB Daylight Time] 1620 
> HTTPTransportException > HTTPTransportException @0012D5C8,60, 
> "Channel error: connection timed out before receiving"
> 
> [10/08/2007 13:51:54:675 GTB Daylight Time] 1620 
> HTTPTransportException > getMessageForExceptionCode @0012D5C8,60
> 
> [10/08/2007 13:51:54:675 GTB Daylight Time] 1620 
> HTTPTransportException < getMessageForExceptionCode 
> @0012D5C8,"HTTPTransportException:Channel error connection timeout 
> before receiving"
> 
> [10/08/2007 13:51:54:675 GTB Daylight Time] 1620 
> HTTPTransportException > getMessageForExceptionCode @0012D5C8,60
> 
> [10/08/2007 13:51:54:675 GTB Daylight Time] 1620 
> HTTPTransportException < getMessageForExceptionCode 
> @0012D5C8,"HTTPTransportException:Channel error connection timeout 
> before receiving"
> 
> [10/08/2007 13:51:54:675 GTB Daylight Time] 1620 
> HTTPTransportException < HTTPTransportException @0012D5C8
> 
> 
> I attach my Client log file (if that worked)
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
> 

Mime
View raw message