You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Habib Ayob <ha...@netcb.com> on 2006/03/03 15:01:01 UTC
Re: [Axis2] Version 0.93 - How do I get a client through a
proxy
Hi Saminda
Thanks for letting me know about the bug, I think it would be best to move over to 0.94. I have just one more question regarding the Axis2.xml. As far as I know Axis2.xml is located on the server side, is there another on each of the clients? If this is true, where should it be located and how does one use it?
Thanks again
Habib
>>> saminda@opensource.lk 03/03/06 1:22 PM >>>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Ayob,
There was a bug in Axis2-0.93 proxy setting on runtime. It has been
fixed in Axis2-0.94 release and onwards. But if you use Axis2.xml to set
the proxy setting your setting will work.
I would encourage you to use Axis2-0.94 distribution to get full power
of basic authentication and NTLM authentication.
Please be kind enough to see the test case
http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawRuntimeProxyTest.java?view=markup
for more information.
Thank you,
Saminda
Habib Ayob wrote:
> Hi All
>
> I'm relatively new to Axis2 and I seem to have a problem. I've created a web service to enable clients to download software updates. All is well except that some clients need to go through a proxy. I've tried:
>
> HttpTransportProperties htprops = new HttpTransportProperties();
> HttpTransportProperties.ProxyProperties proxyProperties = htprops.new ProxyProperties();
>
> proxyProperties.setProxyName("localhost");
> proxyProperties.setProxyPort(3128);
>
> options.setProperty(HTTPConstants.PROXY, proxyProperties);
> call.setClientOptions(options);
>
> But my squid proxy access.log doesn't show any activity. It does show activity when I set my firefox proxy to this location. What am I doing wrong or missing?
>
>
>
>
> NETCB SOLUTIONS (PTY) LTD
> The Innovation Hub, Enterprise Building, 1st Floor, Unit U19
> Lynnwood, Pretoria
> P.O. Box 14449, Hatfield, Pretoria, 0028
> SOUTH AFRICA
> Tel. +27 12 844 0744
> Fax. +27 12 844 0763
>
> NetCB Solutions (Pty) Ltd trading as NetCB.com
> Reg. 2003/009745/07
> Directors: H de Bruin, JC du Toit, LJ Nel, CEO: JP Burgers
>
> This message and any attachments relating to official business of NetCB Solutions (Pty) Ltd (NETCB) is proprietary to NETCB and intended for the original addressee only. The message may contain information that is confidential and subject to legal privilege. Any views expressed in this message are those of the individual sender.
> If you have received this message in error, please notify the original sender immediately and destroy the original message. If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith. NETCB cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference. NETCB is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFECCcDYmklbLuW6wYRAsdZAKCKJqZehB4SEbYxijzOZBaUewRK1QCfW5Fy
uEPRO5U+g7QHHkw/AZc7kTU=
=yC1I
-----END PGP SIGNATURE-----
NETCB SOLUTIONS (PTY) LTD
The Innovation Hub, Enterprise Building, 1st Floor, Unit U19
Lynnwood, Pretoria
P.O. Box 14449, Hatfield, Pretoria, 0028
SOUTH AFRICA
Tel. +27 12 844 0744
Fax. +27 12 844 0763
NetCB Solutions (Pty) Ltd trading as NetCB.com
Reg. 2003/009745/07
Directors: H de Bruin, JC du Toit, LJ Nel, CEO: JP Burgers
This message and any attachments relating to official business of NetCB Solutions (Pty) Ltd (NETCB) is proprietary to NETCB and intended for the original addressee only. The message may contain information that is confidential and subject to legal privilege. Any views expressed in this message are those of the individual sender.
If you have received this message in error, please notify the original sender immediately and destroy the original message. If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith. NETCB cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference. NETCB is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments.
Re: [Axis2] Version 0.93 - How do I get a client through a
proxy
Posted by Habib Ayob <ha...@netcb.com>.
I think I found the problem: It seems that the proxy settings only work when application is being run on Java 1.5. Is this true? Is it possible to get it to work on 1.4.2?
>>> On Mon, Mar 6, 2006 at 2:10 pm, in message <44...@netcb.com>,
habiba@netcb.com wrote:
> Hi again
>
> I still have a problem with getting through the proxy. I'm quite new to
> Squid and Axis2 but I'm quite sure that it is set up correctly. When browsing
> in Firefox, I get entries in the squid access.log, but when I run my java
> application, all I get is Connection Refused and the access.log hasn't been
> edited. I use anonymous:anonymous:anonymous and localhost:3128. I'm now using
> 0.94.
>
> What am I doing wrong? I must be missing something
>
> Thanks
>
>> {
>
>>>>> On Sat, Mar 4, 2006 at 9:47 am, in message <44...@opensource.lk>,
>> saminda@opensource.lk wrote:
>>
>
>
>
>
> NETCB SOLUTIONS (PTY) LTD
> The Innovation Hub, Enterprise Building, 1st Floor, Unit U19
> Lynnwood, Pretoria
> P.O. Box 14449, Hatfield, Pretoria, 0028
> SOUTH AFRICA
> Tel. +27 12 844 0744
> Fax. +27 12 844 0763
>
> NetCB Solutions (Pty) Ltd trading as NetCB.com
> Reg. 2003/009745/07
> Directors: H de Bruin, JC du Toit, LJ Nel, CEO: JP Burgers
>
> This message and any attachments relating to official business of NetCB
> Solutions (Pty) Ltd (NETCB) is proprietary to NETCB and intended for the
> original addressee only. The message may contain information that is
> confidential and subject to legal privilege. Any views expressed in this
> message are those of the individual sender.
> If you have received this message in error, please notify the original
> sender immediately and destroy the original message. If you are not the
> intended recipient of this message, you are hereby notified that you must not
> disseminate, copy, use, distribute, or take any action in connection
> therewith. NETCB cannot ensure that the integrity of this communication has
> been maintained nor that it is free of errors, viruses, interception and/or
> interference. NETCB is not liable whatsoever for loss or damage resulting
> from the opening of this message and/or attachments and/or the use of the
> information contained in this message and/or attachments.
NETCB SOLUTIONS (PTY) LTD
The Innovation Hub, Enterprise Building, 1st Floor, Unit U19
Lynnwood, Pretoria
P.O. Box 14449, Hatfield, Pretoria, 0028
SOUTH AFRICA
Tel. +27 12 844 0744
Fax. +27 12 844 0763
NetCB Solutions (Pty) Ltd trading as NetCB.com
Reg. 2003/009745/07
Directors: H de Bruin, JC du Toit, LJ Nel, CEO: JP Burgers
This message and any attachments relating to official business of NetCB Solutions (Pty) Ltd (NETCB) is proprietary to NETCB and intended for the original addressee only. The message may contain information that is confidential and subject to legal privilege. Any views expressed in this message are those of the individual sender.
If you have received this message in error, please notify the original sender immediately and destroy the original message. If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith. NETCB cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference. NETCB is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments.
Re: [Axis2] Version 0.93 - How do I get a client through a
proxy
Posted by Habib Ayob <ha...@netcb.com>.
Hi again
I still have a problem with getting through the proxy. I'm quite new to Squid and Axis2 but I'm quite sure that it is set up correctly. When browsing in Firefox, I get entries in the squid access.log, but when I run my java application, all I get is Connection Refused and the access.log hasn't been edited. I use anonymous:anonymous:anonymous and localhost:3128. I'm now using 0.94.
What am I doing wrong? I must be missing something
Thanks
> {
>>>> On Sat, Mar 4, 2006 at 9:47 am, in message <44...@opensource.lk>,
> saminda@opensource.lk wrote:
>
NETCB SOLUTIONS (PTY) LTD
The Innovation Hub, Enterprise Building, 1st Floor, Unit U19
Lynnwood, Pretoria
P.O. Box 14449, Hatfield, Pretoria, 0028
SOUTH AFRICA
Tel. +27 12 844 0744
Fax. +27 12 844 0763
NetCB Solutions (Pty) Ltd trading as NetCB.com
Reg. 2003/009745/07
Directors: H de Bruin, JC du Toit, LJ Nel, CEO: JP Burgers
This message and any attachments relating to official business of NetCB Solutions (Pty) Ltd (NETCB) is proprietary to NETCB and intended for the original addressee only. The message may contain information that is confidential and subject to legal privilege. Any views expressed in this message are those of the individual sender.
If you have received this message in error, please notify the original sender immediately and destroy the original message. If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith. NETCB cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference. NETCB is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments.
Re: [Axis2] Version 0.93 - How do I get a client through a proxy
Posted by Saminda Abeyruwan <sa...@opensource.lk>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Ahob,
Client API contains a class called "ServiceClient". This is the class
you need to use as the client in Axis2-0.94 distribution and upwards.
Now you can easily give a axis2 repository location to ServiceClient.
ex: consider the following file structure in Linux file system,
/usr
+-temp/
+-conf/
axis2.xml {proxy configured axis2.xml}
and when you write the client,
- ---
ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("/usr/temp/",null);
ServiceClient sender = new ServiceClient(configContext, null);
- ----
So it's as simple as that.
Thank you,
Saminda
Habib Ayob wrote:
> Hi Saminda
>
> Thanks for letting me know about the bug, I think it would be best to move over to 0.94. I have just one more question regarding the Axis2.xml. As far as I know Axis2.xml is located on the server side, is there another on each of the clients? If this is true, where should it be located and how does one use it?
>
> Thanks again
> Habib
>
>
>>>>saminda@opensource.lk 03/03/06 1:22 PM >>>
>
> Hi Ayob,
>
> There was a bug in Axis2-0.93 proxy setting on runtime. It has been
> fixed in Axis2-0.94 release and onwards. But if you use Axis2.xml to set
> the proxy setting your setting will work.
>
> I would encourage you to use Axis2-0.94 distribution to get full power
> of basic authentication and NTLM authentication.
>
> Please be kind enough to see the test case
> http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawRuntimeProxyTest.java?view=markup
> for more information.
>
> Thank you,
>
> Saminda
>
> Habib Ayob wrote:
>
>>>Hi All
>>>
>>>I'm relatively new to Axis2 and I seem to have a problem. I've created a web service to enable clients to download software updates. All is well except that some clients need to go through a proxy. I've tried:
>>>
>>>HttpTransportProperties htprops = new HttpTransportProperties();
>>>HttpTransportProperties.ProxyProperties proxyProperties = htprops.new ProxyProperties();
>>>
>>>proxyProperties.setProxyName("localhost");
>>>proxyProperties.setProxyPort(3128);
>>>
>>>options.setProperty(HTTPConstants.PROXY, proxyProperties);
>>>call.setClientOptions(options);
>>>
>>>But my squid proxy access.log doesn't show any activity. It does show activity when I set my firefox proxy to this location. What am I doing wrong or missing?
>>>
>>>
>>>
>>>
>>>NETCB SOLUTIONS (PTY) LTD
>>>The Innovation Hub, Enterprise Building, 1st Floor, Unit U19
>>>Lynnwood, Pretoria
>>>P.O. Box 14449, Hatfield, Pretoria, 0028
>>>SOUTH AFRICA
>>>Tel. +27 12 844 0744
>>>Fax. +27 12 844 0763
>>>
>>>NetCB Solutions (Pty) Ltd trading as NetCB.com
>>>Reg. 2003/009745/07
>>>Directors: H de Bruin, JC du Toit, LJ Nel, CEO: JP Burgers
>>>
>>>This message and any attachments relating to official business of NetCB Solutions (Pty) Ltd (NETCB) is proprietary to NETCB and intended for the original addressee only. The message may contain information that is confidential and subject to legal privilege. Any views expressed in this message are those of the individual sender.
>>>If you have received this message in error, please notify the original sender immediately and destroy the original message. If you are not the intended recipient of this message, you are hereby notified that you must not disseminate, copy, use, distribute, or take any action in connection therewith. NETCB cannot ensure that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception and/or interference. NETCB is not liable whatsoever for loss or damage resulting from the opening of this message and/or attachments and/or the use of the information contained in this message and/or attachments.
>>>
>
>
NETCB SOLUTIONS (PTY) LTD
The Innovation Hub, Enterprise Building, 1st Floor, Unit U19
Lynnwood, Pretoria
P.O. Box 14449, Hatfield, Pretoria, 0028
SOUTH AFRICA
Tel. +27 12 844 0744
Fax. +27 12 844 0763
NetCB Solutions (Pty) Ltd trading as NetCB.com
Reg. 2003/009745/07
Directors: H de Bruin, JC du Toit, LJ Nel, CEO: JP Burgers
This message and any attachments relating to official business of NetCB
Solutions (Pty) Ltd (NETCB) is proprietary to NETCB and intended for the
original addressee only. The message may contain information that is
confidential and subject to legal privilege. Any views expressed in this
message are those of the individual sender.
If you have received this message in error, please notify the original
sender immediately and destroy the original message. If you are not the
intended recipient of this message, you are hereby notified that you
must not disseminate, copy, use, distribute, or take any action in
connection therewith. NETCB cannot ensure that the integrity of this
communication has been maintained nor that it is free of errors,
viruses, interception and/or interference. NETCB is not liable
whatsoever for loss or damage resulting from the opening of this message
and/or attachments and/or the use of the information contained in this
message and/or attachments.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFECUX6YmklbLuW6wYRArRcAJ4lAmfCqWEfWwVg9gWuYajZa457AQCfVl7q
SCyFZGU8v9QapcJACbtWqpE=
=Xwef
-----END PGP SIGNATURE-----