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]

Reply via email to