I am trying to use the webservice proxy to access a webservice that I
have made available using Apache Axis.
Here is the section of the sitemap that I have defined, does this look
correct to everyone?
<map:pipeline>
<map:match pattern="forms.html">
<map:generate type="proxy"
src="http://localhost:8080/axis/services/IntelligentForm?method=getForms"
/>
<map:transform src="transforms/forms.xslt"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
However I get the following error when attempting to run it:
Original Exception: java.lang.IllegalArgumentException: host parameter is null
at org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.java:227)
at
org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnection(SimpleHttpConnectionManager.java:115)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:548)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:476)
When I access the webservice through a web-browser I get
<soapenv:Envelope>
<soapenv:Body>
<getFormsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<GetFormsReturn xsi:type="xsd:string"><Forms><Form>FormA</Form><Form></GetFormsReturn>
</getFormsResponse>
</soapenv:Body>
</soapenv:Envelope>
I access through a proxy server, but I have set JAVA_OPTS to be
-Dhttp.proxyHost=hellman -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=localhost
before starting up Tomcat.
Can anyone thing of what the problem may be?
Thanks in advance,
Pete
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]