Title: Proxy

 

Brecht,

 

No, I never received an answer.  Here is an example of what I’m doing for right now.  I created a client stub using wsdl2java called TerraServiceStub.  Here is how my class sets up the proxy…

 

TerraServiceStub terraService = new TerraServiceStub();

 

      // Setup the proxy

ProxyProperties proxyProperties = new ProxyProperties();

proxyProperties.setProxyName("<your proxy server here>");

proxyProperties.setProxyPort(<your proxy port here>);

 

terraService._getServiceClient().getOptions().setProperty(HTTPConstants.PROXY, proxyProperties);

 

I hope that helps.

 

Todd

-----Original Message-----
From: Brecht Yperman [mailto:[EMAIL PROTECTED]
Sent:
Wednesday, September 27, 2006 11:31 AM
To: [email protected]
Subject: [Axis2] RE: Proxy

 

Hi,

 

was there an answer to this question?

 

I can't find it, and I desperately need a solution to get through the proxy server over here.

 

Thanks a lot,

Brecht

 


From: Doolittle, Todd [mailto:[EMAIL PROTECTED]
Sent: Tue 19/09/2006 23:06
To: [email protected]
Subject: Proxy

 

I’m writing a client that must go out through a proxy.  Axis 1 used the properties http.proxyHost and http.proxyPort.  They could be set on the VM command line like this -Dhttp.proxyHost=uskihsvpcflow -Dhttp.proxyPort=80. 

Axis 2 appears to ignore those properties.  I figured out that hack the generated service stub up to set the proxy in the transport options, but this can’t be the right way to do it.  What is the right way to get Axis 2 to use a proxy?

Thanks!

Todd


This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.


This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.

Reply via email to