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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]