cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Ross <...@missioncriticalit.com>
Subject webservice proxy question
Date Wed, 02 Jul 2003 16:05:22 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message