axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Greene" <agre...@romulin.com>
Subject Example of using EJB as source of Web Service
Date Fri, 05 Apr 2002 17:30:08 GMT
Does any have an example of a web service based on a stateless EJB.  This is
what I have:

deploy.wsdd

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
        <service name="myEJB" provider="java:EJB">
                <parameter name="beanJndiName"
value="Test_TestSP1EJB_TestSP1"/>
                <parameter name="homeInterfaceName"
value="com.adamgreene.TestHome"/>
                <parameter name="allowedMethods"  value="*"/>
                <parameter name="jndiURL" value="rmi://localhost:9191"/>
                <parameter name="jndiContextClass"
value="com.pramati.naming.client.PramatiClientContextFactory"/>
        </service>
</deployment>

And the Java files are attached.  I put these files in a .JAR and put them
in the WEB-INF/lib directory, but when I get the WSDL for the service, all I
get is this, it does not list the methods of the interface, of which there
is one, sayHello:

  <?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions
targetNamespace="http://localhost:8181/axis/services/myEJB"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:intf="http://localhost:8181/axis/services/myEJB"
xmlns:impl="http://localhost:8181/axis/services/myEJB-impl"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:portType name="Test" />
<wsdl:binding name="myEJBSoapBinding" type="intf:Test">
  <wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
  </wsdl:binding>
<wsdl:service name="TestService">
<wsdl:port name="myEJB" binding="intf:myEJBSoapBinding">
  <wsdlsoap:address location="http://localhost:8181/axis/services/myEJB" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>


Mime
View raw message