Hi Samisa,
Thanks for the quick response.
When I bypassed monitor port ( in the test properties file), setProxy()
worked and the test is passing. However, there is no information on what
happens when a user sets a proxy which is not alive/active. Should an
exception be thrown in such case ? I've tried setting a proxy which is not
alive and found nothing in test output or error file. For this reason only
I wanted to understand why we are using proxy server.
Regards
Manohar
"Samisa
Abeysinghe"
<[EMAIL PROTECTED] To
usa.com> "Apache AXIS C User List"
<[email protected]>
03/09/2005 12:36 cc
PM
Subject
RE: HTTP transport error while
Please respond to using setProxy() method
"Apache AXIS C
User List"
Hi Manohar,
When using the proxy, you may need to use an external endpoint
(which the proxy is aware of)
In your case, your proxy server does not know of 'localhost'.
If
you use the IP address of machine in place of 'localhost' it may work.
How I tested was to use inquire_v2 test with
http://www-3.ibm.com/services/uddi/testregistry/inquiryapi endpoint and
using my proxy server.
Thanks,
Samisa...
-----Original Message-----
From: Manohar K Chintala [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 12:41 PM
To: [email protected]
Subject: HTTP transport error while using setProxy() method
Hi Samisa,
As per the usage info provided for setProxy() method, I've written a
test.
Here is the code snippet.
try
{
sprintf(endpoint, "%s", url);
Calculator ws(endpoint);
ws.setProxy("proxy3.in.ibm.com",80);
iResult = ws.add(2,3);
printf("%d\n", iResult);
rc=0;
}
catch(AxisException& e)
{
cout << "Inside AxisException block: " << e.what() <<
endl;
}
When I ran the test inside ANT framework, the output file has the
following
error.
Inside AxisException block: HTTPTransportException:HTTP transport error
Proxy Error: Unable to connect to remote host "localhost:13260" or host
not
responding - URL
"http://localhost:13260/Calculator/services/Calculator",
errno: 79
Am I missing something in my client? What is the role of proxy server
here
? Does the request/response passes through proxy server ?
Regards
Manohar
--------------------------------------------------
Manohar Kumar.Ch
IBM Web Services Client for C/C++
India Software Labs,III floor, Golden Enclave,
Aiport Road, Bangalore-560017
Ph:- 91-80-25094304
internet id: [EMAIL PROTECTED]