We're actually just guessing that it's the firewall.
For testing, we're running a local server (Tomcat) behind the corporate firewall. So in order for the JSP servlet to contact Amazon, it has to go out through the firewall. When we run the sample code from the command line (after adding calls to System.getProperties().setProperty("socksProxyHost", mySocksProxy); and so on), everything works fine.
But when we call the same code from a JSP, we get exceptions. We've tried setting CATALINA_OPTS to define the proxyhost and proxyport, as people on the Tomcat list suggested, but that doesn't work for us either.
I suspect that this is just something to do with the way our network is set up or something, since no one else seems to have run into this problem. The Amazon code itself works just fine.
Steve
Michael C. Clark wrote:
Steve,
Why should your firewall care about receiving HTTP packets from
Amazon? Is the domain (Amazon) filtered?
Seems that one of the great selling features of SOAP in general is
that it's piggybacked on top of HTTP, and therefore "firewall
friendly"?
Just curious...
---- Original Message ----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Axis with Amazon Web Services
Date: Fri, 15 Nov 2002 09:24:15 -0800
Mike,
The Amazon Web Services package (which you can download at xml.amazon.com) comes with sample Java code (in a directory called --
not surprisingly -- JavaCodeSample). This relies on Axis client-side code and Axis' wsdl2java to create classes from Amazon's wsdl file.
I'm not sure about how (or if) using server-side Axis code would be useful. We've been trying to get something together on our server
using a combination of JSP and the same Axis classes from the Amazon sample
code to query the Amazon service and format the results into html. Unfortunately we haven't been able to get it to work, but I think
that's due to firewall issues.
Hope that helps.
Steven Gollery
[EMAIL PROTECTED]
Michael Fecina wrote:
alsoHas anyone used Amazon's Web Services in conjunctino with Axis?From looking on the web, I found a tutorial that uses the two but
auses IBM's toolkit. I'm wondering if there is anyone that could give me
brief rundown of how to create a client for Amazon's web services in Java ... I appreciate any help or information. Thanks, Mike Fecina ([EMAIL PROTECTED])