Hello. I found the solution to the problem :) It was the server-config.wsdd. Starting with the generaded wsdd by the demo webapp and AdminService/AdminClient fixed the problem. Puh!

- Tore.

<deployment xmlns="http://xml.apache.org/axis/wsdd/"; xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

<globalConfiguration>
<parameter name="adminPassword" value="admin"/>
<!--
<parameter name="attachments.Directory" value="/Users/halset/projects/jboss/jboss-3.2.1_tomcat-4.1.24/server/ gds/deploy/axistest.war/WEB-INF/attachments"/>
<parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
-->
<parameter name="sendXsiTypes" value="true"/>
<parameter name="sendMultiRefs" value="true"/>
<parameter name="sendXMLDeclaration" value="true"/>
<parameter name="axis.sendMinimizedElements" value="true"/>
<requestFlow>
<handler type="java:org.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="session"/>
</handler>
<handler type="java:org.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="request"/>
<parameter name="extension" value=".jwr"/>
</handler>
</requestFlow>
</globalConfiguration>


<handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
<handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
<handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>


 <service name="AdminService" provider="java:MSG">
  <parameter name="allowedMethods" value="AdminService"/>
  <parameter name="enableRemoteAdmin" value="false"/>
  <parameter name="className" value="org.apache.axis.utils.Admin"/>
  <namespace>http://xml.apache.org/axis/wsdd/</namespace>
  <namespace>http://xml.apache.org/axis/wsdd/</namespace>
 </service>

 <service name="Version" provider="java:RPC">
  <parameter name="allowedMethods" value="getVersion"/>
  <parameter name="className" value="org.apache.axis.Version"/>
 </service>

 <transport name="http">
  <requestFlow>
   <handler type="URLMapper"/>
   <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
  </requestFlow>
 </transport>

 <transport name="local">
  <responseFlow>
   <handler type="LocalResponder"/>
  </responseFlow>
 </transport>

</deployment>



On Jan 13, 2004, at 10:20, Tore Halset wrote:

Hello.

I still have problems generating wsdl for my web services. I am running jboss-3.2.1_tomcat-4.1.24 on OS X 10.3.2 with java build 1.4.1_01-99. "axis-1_1/webapps/axis" works very well. Both happyaxis, EchoHeaders and generating wsdl works.

I have created a minimal project to demonstrate the problem:

./build.xml - "ant war" creates dist/axistest.war
./lib - The libs from "axis-1_1/webapps/axis/WEB-INF/lib/"
./src/axistest/Version.java - My service class. Has only one methode: public String getVersion()
./src/EchoHeaders.jws - copied from "axis-1_1/webapps/axis"
./src/fingerprint.jsp - copied from "axis-1_1/webapps/axis"
./src/happyaxis.jsp - copied from "axis-1_1/webapps/axis"
./WEB-INF/server-config.wsdd - see below
./WEB-INF/web.xml - copied from "axis-1_1/webapps/axis"


This is the server-config.wsdd:
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
<service name="VersionService" provider="java:RPC">
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="axistest.Version"/>
</service>
</deployment>


The minimal project is 2MB and can be downloaded from:
http://www.pvv.ntnu.no/~halset/tmp/axis/axistest.tgz

This project looks very similar to the demo webapp included with axis-1.1, but my version has a problem: It can not generate a wsdl for the "VersionService" and for EchoHeaders.jws. happyaxis seem to by happy.

http://localhost:8080/axistest/services
 * "And now... Some Services": works

http://localhost:8080/axistest/services/VersionService
 * "Hi there, this is an AXIS service!": works

http://localhost:8080/axistest/services/VersionService?wsdl
 * "Could not generate WSDL! There is no SOAP service at this location"

http://localhost:8080/axistest/happyaxis.jsp - seem to be happy

http://localhost:8080/axistest/EchoHeaders.jws
* NPE when axistest.war are deployed as a single war-file
* shows "There is a Web Service here Click to see the WSDL" when deployed as a directory


http://localhost:8080/axistest/EchoHeaders.jws?wsdl
 * "Could not generate WSDL! There is no SOAP service at this location"

It would be very nice if I could get some help resolving this problem.

Regards,
 - Tore.



Reply via email to