axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajneesh, Watsh Wr (HP-GDIC-Jetdirect)" <rwa...@hp.com>
Subject RE: Regarding 403 Access Forbidden Error
Date Fri, 04 Mar 2005 12:00:45 GMT
Hi All,
 
The document http://www.pankaj-k.net/WSOverSSL/WSOverSSL-HOWTO.html
<BLOCKED::http://www.pankaj-k.net/WSOverSSL/WSOverSSL-HOWTO.html>
mentions in its Known Issues section regarding the inability of an axis
client application to work across firewalls when the access protocol in
use is https. Has this issue been fixed in the current version of axis?
I am seeing the above mentioned issue in axis 1.1 for java. 
 
Is there any workaround?
 
Thanks in advance.
Warm Regards,
Watsh

________________________________

From: Rajneesh, Watsh Wr (HP-GDIC-Jetdirect) 
Sent: Friday, March 04, 2005 1:29 PM
To: axis-user@ws.apache.org
Subject: Regarding 403 Access Forbidden Error


Hi All,
 
We have an axis client behind customer firewall. It access our internet
available SOAP web service routed via the http proxy using https
protocol. The client works well if we are within the same firewall as
the server. But if we are in the customer premise and run the client by
setting the JVM system properties of httpProxyHost and httpProxyPort
then also we get a 403 - Access Forbidden error. From the machine
hosting the client app in the customer premise we are able to ping their
http proxy. Still we are in a fix as to why this access is not allowed
to the SOAP client. Following is the detailed error message from our
application's log file:

INFO   | jvm 1    | 2005/03/03 12:52:06 | AxisFault
INFO   | jvm 1    | 2005/03/03 12:52:06 |  faultCode:
{http://xml.apache.org/axis/}HTTP
INFO   | jvm 1    | 2005/03/03 12:52:06 |  faultSubcode: 
INFO   | jvm 1    | 2005/03/03 12:52:06 |  faultString: (403)Access
Forbidden
INFO   | jvm 1    | 2005/03/03 12:52:06 |  faultActor: 
INFO   | jvm 1    | 2005/03/03 12:52:06 |  faultNode: 
INFO   | jvm 1    | 2005/03/03 12:52:06 |  faultDetail: 
INFO   | jvm 1    | 2005/03/03 12:52:06 |  {}string: return code:  403
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;!DOCTYPE HTML PUBLIC
&quot;-//W3C//DTD HTML 3.2 Final//EN&quot;&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;html dir=ltr&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;head&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;style&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | a:link
{font:8pt/11pt verdana; color:FF0000}
INFO   | jvm 1    | 2005/03/03 12:52:06 | a:visited
{font:8pt/11pt verdana; color:#4e4e4e}
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;/style&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;META
NAME=&quot;ROBOTS&quot; CONTENT=&quot;NOINDEX&quot;&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;title&gt;You are not
authorized to view this page&lt;/title&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;META
HTTP-EQUIV=&quot;Content-Type&quot; Content=&quot;text-html;
charset=Windows-1252&quot;&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;/head&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;script&gt; 
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;!--
INFO   | jvm 1    | 2005/03/03 12:52:06 | function Homepage(){
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | // in real bits, urls get
returned to our script like this:
INFO   | jvm 1    | 2005/03/03 12:52:06 | //
res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm 
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 |  //For testing use DocURL =
&quot;res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm&q
uot;
INFO   | jvm 1    | 2005/03/03 12:52:06 |  DocURL=document.URL;
INFO   | jvm 1    | 2005/03/03 12:52:06 |  
INFO   | jvm 1    | 2005/03/03 12:52:06 |  //this is where the http or
https will be, as found by searching for :// but skipping the res://
INFO   | jvm 1    | 2005/03/03 12:52:06 |
protocolIndex=DocURL.indexOf(&quot;://&quot;,4);
INFO   | jvm 1    | 2005/03/03 12:52:06 |  
INFO   | jvm 1    | 2005/03/03 12:52:06 |  //this finds the ending slash
for the domain server 
INFO   | jvm 1    | 2005/03/03 12:52:06 |
serverIndex=DocURL.indexOf(&quot;/&quot;,protocolIndex + 3);
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 |  //for the href, we need a
valid URL to the domain. We search for the # symbol to find the begining

INFO   | jvm 1    | 2005/03/03 12:52:06 |  //of the true URL, and add 1
to skip it - this is the BeginURL value. We use serverIndex as the end
marker.
INFO   | jvm 1    | 2005/03/03 12:52:06 |
//urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
INFO   | jvm 1    | 2005/03/03 12:52:06 |
BeginURL=DocURL.indexOf(&quot;#&quot;,1) + 1;
INFO   | jvm 1    | 2005/03/03 12:52:06 |
urlresult=DocURL.substring(BeginURL,serverIndex);
INFO   | jvm 1    | 2005/03/03 12:52:06 |   
INFO   | jvm 1    | 2005/03/03 12:52:06 |  //for display, we need to
skip after http://, and go to the next slash
INFO   | jvm 1    | 2005/03/03 12:52:06 |
displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);
INFO   | jvm 1    | 2005/03/03 12:52:06 |
InsertElementAnchor(urlresult, displayresult);
INFO   | jvm 1    | 2005/03/03 12:52:06 | }
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | function HtmlEncode(text)
INFO   | jvm 1    | 2005/03/03 12:52:06 | {
INFO   | jvm 1    | 2005/03/03 12:52:06 |     return
text.replace(/&amp;/g, '&amp;amp').replace(/'/g,
'&amp;quot;').replace(/&lt;/g, '&amp;lt;').replace(/&gt;/g, '&amp;gt;');
INFO   | jvm 1    | 2005/03/03 12:52:06 | }
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | function TagAttrib(name,
value)
INFO   | jvm 1    | 2005/03/03 12:52:06 | {
INFO   | jvm 1    | 2005/03/03 12:52:06 |     return '
'+name+'=&quot;'+HtmlEncode(value)+'&quot;';
INFO   | jvm 1    | 2005/03/03 12:52:06 | }
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | function PrintTag(tagName,
needCloseTag, attrib, inner){
INFO   | jvm 1    | 2005/03/03 12:52:06 |     document.write( '&lt;' +
tagName + attrib + '&gt;' + HtmlEncode(inner) );
INFO   | jvm 1    | 2005/03/03 12:52:06 |     if (needCloseTag)
document.write( '&lt;/' + tagName +'&gt;' );
INFO   | jvm 1    | 2005/03/03 12:52:06 | }
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | function URI(href)
INFO   | jvm 1    | 2005/03/03 12:52:06 | {
INFO   | jvm 1    | 2005/03/03 12:52:06 |     IEVer =
window.navigator.appVersion;
INFO   | jvm 1    | 2005/03/03 12:52:06 |     IEVer = IEVer.substr(
IEVer.indexOf('MSIE') + 5, 3 );
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 |     return
(IEVer.charAt(1)=='.' &amp;&amp; IEVer &gt;= '5.5') ?
INFO   | jvm 1    | 2005/03/03 12:52:06 |         encodeURI(href) :
INFO   | jvm 1    | 2005/03/03 12:52:06 |
escape(href).replace(/%3A/g, ':').replace(/%3B/g, ';');
INFO   | jvm 1    | 2005/03/03 12:52:06 | }
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | function
InsertElementAnchor(href, text)
INFO   | jvm 1    | 2005/03/03 12:52:06 | {
INFO   | jvm 1    | 2005/03/03 12:52:06 |     PrintTag('A', true,
TagAttrib('HREF', URI(href)), text);
INFO   | jvm 1    | 2005/03/03 12:52:06 | }
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | //--&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;/script&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;body
bgcolor=&quot;FFFFFF&quot;&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;table
width=&quot;410&quot; cellpadding=&quot;3&quot;
cellspacing=&quot;5&quot;&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 |   &lt;tr&gt;    
INFO   | jvm 1    | 2005/03/03 12:52:06 |     &lt;td
align=&quot;left&quot; valign=&quot;middle&quot;
width=&quot;360&quot;&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |  &lt;h1
style=&quot;COLOR:000000; FONT: 13pt/15pt
verdana&quot;&gt;&lt;!--Problem--&gt;You are not authorized to view this
page&lt;/h1&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |     &lt;/td&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |   &lt;/tr&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |   
INFO   | jvm 1    | 2005/03/03 12:52:06 |   &lt;tr&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |     &lt;td
width=&quot;400&quot; colspan=&quot;2&quot;&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |  &lt;font
style=&quot;COLOR:000000; FONT: 8pt/11pt verdana&quot;&gt;You do not
have permission to view this directory or page from the Internet address
of your Web browser.&lt;/font&gt;&lt;/td&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |   &lt;/tr&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |   
INFO   | jvm 1    | 2005/03/03 12:52:06 |   &lt;tr&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |     &lt;td
width=&quot;400&quot; colspan=&quot;2&quot;&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |  &lt;font
style=&quot;COLOR:000000; FONT: 8pt/11pt verdana&quot;&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |  
INFO   | jvm 1    | 2005/03/03 12:52:06 |  &lt;hr
color=&quot;#C0C0C0&quot; noshade&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |  
INFO   | jvm 1    | 2005/03/03 12:52:06 |     &lt;p&gt;If you believe
you should be able to view this directory or page, please contact the
Web site administrator by using the e-mail address or phone number
listed on the
INFO   | jvm 1    | 2005/03/03 12:52:06 |  
INFO   | jvm 1    | 2005/03/03 12:52:06 |  &lt;script&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |  &lt;!--
INFO   | jvm 1    | 2005/03/03 12:52:06 |  if
(!((window.navigator.userAgent.indexOf(&quot;MSIE&quot;) &gt; 0)
&amp;&amp; (window.navigator.appVersion.charAt(0) == &quot;2&quot;)))
INFO   | jvm 1    | 2005/03/03 12:52:06 |  {
INFO   | jvm 1    | 2005/03/03 12:52:06 |    Homepage();
INFO   | jvm 1    | 2005/03/03 12:52:06 |  }
INFO   | jvm 1    | 2005/03/03 12:52:06 |  //--&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |  &lt;/script&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 |  home page.&lt;/p&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |  
INFO   | jvm 1    | 2005/03/03 12:52:06 |     &lt;h2
style=&quot;font:8pt/11pt verdana; color:000000&quot;&gt;HTTP 403.6 -
Forbidden: IP address rejected&lt;br&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |     Internet Information
Services&lt;/h2&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 |  &lt;hr
color=&quot;#C0C0C0&quot; noshade&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |  
INFO   | jvm 1    | 2005/03/03 12:52:06 |  &lt;p&gt;Technical
Information (for support personnel)&lt;/p&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;ul&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;p&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |
&lt;li&gt;Background:&lt;br&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | This error is caused when the
server has a list of IP addresses that are not allowed to access the
site, and the IP address you are using is in this list.&lt;/p&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;p&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;li&gt;More
information:&lt;br&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;a
href=&quot;http://www.microsoft.com/ContentRedirect.asp?prd=iis&amp;sbp=
&amp;pver=5.0&amp;pid=&amp;ID=403.6&amp;cat=web&amp;os=&amp;over=&amp;hr
d=&amp;Opt1=&amp;Opt2=&amp;Opt3=&quot;
target=&quot;_blank&quot;&gt;Microsoft Support&lt;/a&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;/li&gt;&lt;/p&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;/ul&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 |  &lt;/font&gt;&lt;/td&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |   &lt;/tr&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 |   
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;/table&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;/body&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | &lt;/html&gt;
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | 
INFO   | jvm 1    | 2005/03/03 12:52:06 | (403)Access Forbidden
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:630)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
org.apache.axis.client.Call.invokeEngine(Call.java:2564)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
org.apache.axis.client.Call.invoke(Call.java:2553)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
org.apache.axis.client.Call.invoke(Call.java:2248)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
org.apache.axis.client.Call.invoke(Call.java:2171)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
org.apache.axis.client.Call.invoke(Call.java:1691)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
soap.BizarcSoapBindingStub.processWJAOrder(BizarcSoapBindingStub.java:22
7)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
com.hp.arcproxy.ARCProxyWorkerTask.run(ARCProxyWorkerTask.java:138)
INFO   | jvm 1    | 2005/03/03 12:52:06 |  at
com.hp.arcproxy.util.ThreadPool$PooledThread.run(ThreadPool.java:64)

Can someone help us? Thanks in advance.
 
Warm Regards,
Watsh
 
Watsh Rajneesh
Senior Software Engineer
HP Global Delivery India Center
 
30C, Cunnigham Road,
Bangalore - 560052.
Tel: <80-2205-1116>
Mobile: <98860-97958>
Fax: <80-2220-0196>
 
Disclaimer:
This e-mail, and any files transmitted with it are "HP Confidential" and
intended solely for the use of the individual or entity to whom it is
addressed. If you have received this e-mail in error, please discard the
message and notify me directly.
 


Mime
View raw message