Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 71883 invoked from network); 5 Feb 2008 18:10:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2008 18:10:57 -0000 Received: (qmail 28429 invoked by uid 500); 5 Feb 2008 18:10:34 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 28414 invoked by uid 500); 5 Feb 2008 18:10:34 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 28402 invoked by uid 99); 5 Feb 2008 18:10:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 10:10:34 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elisei.rotaru@gmail.com designates 72.14.246.241 as permitted sender) Received: from [72.14.246.241] (HELO ag-out-0708.google.com) (72.14.246.241) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 18:10:05 +0000 Received: by ag-out-0708.google.com with SMTP id 23so3366261agd.5 for ; Tue, 05 Feb 2008 10:10:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=mGpKFTuPaQvlzh+8ZW7QtqmruDF6a9W7pygFgSYOU0M=; b=mIYlo9paK/ssJGS3un4BPhswxSd5ddMiEl0Q3Dspw5zpEBokqD0larXMy50g87qZMOFinqwW+0a97c7o8xMszjHIOqRbzAB979tmOzUpDhwgjoaJg/36AwEGJ8LogU+z4r2R3ogg13SdtadfTvO1Yf7S+BReYl8jLO6nhSDX9VI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=DVaUCGTRcrZTWDODiKT5pDzqe6FvGZiEPu3XJyISHHXrQOkkWS0ibWPPM91gUNBovT0X6DeYLG51zaDT9eRmalahVcAuCZjjp1HBkrOClf/67L+OiAnrjl6Y3p4ybr68poc4rpl5FSCWQHhaUafMs6Z7Hzo4+MftHIDaMOHLOEs= Received: by 10.150.158.8 with SMTP id g8mr3688454ybe.25.1202235008258; Tue, 05 Feb 2008 10:10:08 -0800 (PST) Received: by 10.150.51.15 with HTTP; Tue, 5 Feb 2008 10:10:08 -0800 (PST) Message-ID: Date: Tue, 5 Feb 2008 19:10:08 +0100 From: "Elisei Rotaru" To: axis-user@ws.apache.org Subject: Re: Axis & Tomcat on a server which requires proxy settings In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9905_33393855.1202235008247" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_9905_33393855.1202235008247 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Michele, This is how i can set ProxyProperties when i access a webservice with axis2. In axis1 the ProxyProperties are set somehow else (i dont really know how and where). Another Question perhaps: If there is a webservice running with axis1, and i generate my stub classes from the wsdl file with wsdl2java from axis2, will that work? On another matter, can i access axis1 webservice with axis2? Thanks, On 05/02/2008, Michele Mazzucco wrote: > > Elis, > > try with HttpTransportProperties.ProxyProperties. > Once you have such an object, set it to the options with > > options.setProperty(HTTPConstants.PROXY, proxy); > > > HTH, > Michele > > On 5 Feb 2008, at 16:46, Elisei Rotaru wrote: > > > Hello, > > > > I run an axis2 1.3 webservice on a server which requires proxy > > settings to connect to the Internet. > > > > I try to access with my webservice an axis1 webservice. And to > > access this axis1 webservice i have to tell my axis2 webservice > > that he should connect to the axis1 webservice through a proxy. > > > > This works with System wide settings like: > > > > System.setProperty("http.proxyHost",); > > System.setProperty("http.proxyPort",); > > > > Only that other service get an http transport error afterwards. > > > > How can i set http proxy only for that webservice when he calls the > > axis1 service? > > > > Thanks a lot. > > > > Elis, > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > ------=_Part_9905_33393855.1202235008247 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Michele,

This is how i can set ProxyProperties when i access a webservice with axis2.

In axis1 the ProxyProperties are set somehow else (i dont really know how and where).

Another Question perhaps:

If there is a webservice running with axis1, and i generate my stub classes from the wsdl file with wsdl2java from axis2, will that work?
On another matter, can i access axis1 webservice with axis2?

Thanks,

On 05/02/2008, Michele Mazzucco <Michele.Mazzucco@ncl.ac.uk> wrote:
Elis,

try with HttpTransportProperties.ProxyProperties.
Once you have such an object, set it to the options with

options.setProperty(HTTPConstants.PROXY, proxy);


HTH,
Michele

On 5 Feb 2008, at 16:46, Elisei Rotaru wrote:

> Hello,
>
> I run an axis2 1.3 webservice on a server which requires proxy
> settings to connect to the Internet.
>
> I try to access with my webservice an axis1 webservice. And to
> access this axis1 webservice i have to tell my axis2 webservice
> that he should connect to the axis1 webservice through a proxy.
>
> This works with System wide settings like:
>
> System.setProperty("http.proxyHost",<ProxyHost>);
> System.setProperty("http.proxyPort",<ProxyPort>);
>
> Only that other service get an http transport error afterwards.
>
> How can i set http proxy only for that webservice when he calls the
> axis1 service?
>
> Thanks a lot.
>
> Elis,
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


------=_Part_9905_33393855.1202235008247--