[prev in list] [next in list] [prev in thread] [next in thread]
List: kvm-interest
Subject: Re: Access a web service through a proxy--403 forbidden
From: Phani K <koka.phani () WIPRO ! COM>
Date: 2005-04-28 7:22:02
[Download RAW message or body]
Hi all,
Did any one found a work around, with out changing the proxy settings
for below exception.
In case, if we open a http connection setting the headers may do
c.setRequestProperty
>
> ("Proxy-Authorization","Basic "
> +BASE 64 encoded
> "userid:password");
>
The above one is taken from
http://archives.java.sun.com/cgi-bin/wa?A2=ind0102&L=kvm-interest&P=R330
72&I=-3
But my problem is, i am using WSDL stubs.
Is there any properties i can set in emulator.properties file?
I tried setting http.proxyUsername, http.proxyPassword in
emulator.properties file but no luck.
Thanks in advance
Phani
________________________________
From: A mailing list for KVM discussion
[mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Phani K
Sent: Wednesday, April 27, 2005 8:31 PM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Access a web service through a proxy--403 forbidden
Hi all,
I am trying to access a web service through a proxy and getting below
exception:
Javax.xml.rpc.JAXRPCException:
Java.io.IOException: Error initializing HTTP tunnel connection;
HTTP/1.0 403 Forbidden
server: Squid/2.5 STABLE
..
....
X-Squid-Error ERR_ACCESS_DENIED 0
---
Proxy-Connection: Close
Any any one tell me where i went wrong.
Thanks in advance.
Phani
========================================================================
=== To unsubscribe, send email to listserv@java.sun.com and include in
the body of the message "signoff KVM-INTEREST". For general help, send
email to listserv@java.sun.com and include in the body of the message
"help".
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1499" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2>Hi all,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2>Did any one found a work around, with out changing the
proxy settings for below exception.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2>In case, if we open a http connection setting the
headers may do</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN
class=879535506-28042005>c.setRequestProperty<BR>><BR>>
("Proxy-Authorization","Basic
"<BR>> \
+BASE 64 encoded<BR>> "userid:password");<BR>><BR></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2>The above one is taken from <A
href="http://archives.java.sun.com/cgi-bin/wa?A2=ind0102&L=kvm-interest&P=R330 \
72&I=-3">http://archives.java.sun.com/cgi-bin/wa?A2=ind0102&L=kvm-interest&P=R33072&I=-3</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2>But my problem is, i am using WSDL
stubs.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2>Is there any properties i can set in emulator.properties
file?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2>I tried setting http.proxyUsername, http.proxyPassword in
emulator.properties file but no luck.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2>Thanks in advance</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=879535506-28042005><FONT face=Arial
color=#0000ff size=2>Phani</FONT></DIV></SPAN><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> A mailing list for KVM discussion
[mailto:KVM-INTEREST@JAVA.SUN.COM] <B>On Behalf Of </B>Phani K<BR><B>Sent:</B>
Wednesday, April 27, 2005 8:31 PM<BR><B>To:</B>
KVM-INTEREST@JAVA.SUN.COM<BR><B>Subject:</B> Access a web service through a
proxy--403 forbidden<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN class=873054014-27042005>Hi
all,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=873054014-27042005>I am trying to
access a web service through a proxy and </SPAN></FONT><FONT face=Arial
size=2><SPAN class=873054014-27042005>getting below
exception:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005>Javax.xml.rpc.JAXRPCException:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=873054014-27042005>Java.io.IOException:
Error initializing HTTP tunnel connection;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=873054014-27042005>HTTP/1.0 403
Forbidden</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=873054014-27042005>server: Squid/2.5
STABLE</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005>..</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005>....</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=873054014-27042005>X-Squid-Error
ERR_ACCESS_DENIED 0</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005>---</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=873054014-27042005>Proxy-Connection:
Close</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=873054014-27042005>Any any one tell me
where i went wrong.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=873054014-27042005>Thanks in
advance.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005>Phani</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=873054014-27042005></SPAN></FONT> </DIV>=========================================================================== \
To unsubscribe, send email to listserv@java.sun.com and include in the body of
the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
</BODY></HTML>
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic