Fellow SOAP'ers,

In the past I found out that I could not read Sun's web-app_2.2.dtd because
of authentication problems with our Companies MS proxy server. I have been
playing around with IBM's wstk toolkit, and generated WAR-files to be read
by my server(s). When I start up my SOAP services (I have three running on
one Apache) I see the following error message in the dos boxes in which
each Tomcat is started:
<error>
XmlMapper: Can't find resource for entity: -//Sun Microsystems, Inc.//DTD
Web Application 2.3//EN --> http://nl-arn-l051682/dtds/web-app_2.2.dtd
"null"
ERROR reading C:\wrox\wroxinsurance\tomcat\webapps\common\WEB-INF\web.xml
        and
2002-03-12 13:37:03 - Ctx(/common) : web.xml: Fatal error
java.io.IOException: 
Server returned HTTP response code: 407 for URL:
http://nl-arn-l051682/dtds/web-app_2.2.dtd
</error>

Looking at this error trace reminds me to say I downloaded Sun's dtd and put
it on my own webserver in the hope not to have this error again. Anyway,
HTTP response 407 means Proxy Authentication Required. From the message
http://marc.theaimsgroup.com/?l=soap-dev&m=101479806629063&w=2 I found out I
need to use the setProxyPassword and setProxyUser methods in
org.apache.soap.transport.http.SOAPHTTPConnection.

Now my question:
I can take the change and set both Proxy User and Password while starting up
SOAP. But how to set it? Surely I can import SOAPHTTPConnection in een
class, and set username and password. But it is not a client, but the server
that is acting wrong. So I need to set name and password in a place that is
read at start up time of SOAP. Can anyone advice me what the best place is
to alter code?
Other information: Apache version 1.3.20, Win2000 and SOAP version 2.2

With regards,

Michel Bergijk

Reply via email to