Hi,
I was able to deploy a simple EJB and then deploy
an axis service exposing it. The simple WSDD file I manually created and used
for the axis deployment is as follows.
--------------------------------
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <service name="SimpleBean"
provider="java:EJB">
<parameter name="beanJndiName" value="SimpleBeanEJB"/> <parameter name="homeInterfaceName" value="com.fujitsu.fast.ejb.SimpleBeanHome"/> <parameter name="remoteInterfaceName" value="com.fujitsu.fast.ejb.SimpleBean"/> <parameter name="allowedMethods" value="sayHello"/> </service> </deployment>
--------------------------------
This all works. I can acess my EJB thru the browser like http://localhost:9002/axis12beta3/servlet/AxisServlet/SimpleBean?method=sayHello&value=WORLD and
all is OK.
But now I want to write a java SOAP client to access my EJB web service. I
use ant task axis-java2wsdl to get the WSDL and from that axis-wsdl2java to get
the generated stubs. The wsdl2java also made another WSDD file but it is quite
different to the WSDD file I manually created earlier
---------------------------------
<deployment
xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <!-- Services from SimpleBeanService WSDL service -->
<service name="SimpleBean" provider="java:RPC" style="rpc"
use="encoded">
<parameter name="wsdlTargetNamespace" value="urn:SimpleBean"/> <parameter name="wsdlServiceElement" value="SimpleBeanService"/> <parameter name="wsdlServicePort" value="SimpleBean"/> <parameter name="className" value="com.fujitsu.fast.ejb.SimpleBeanSoapBindingSkeleton"/> <parameter name="wsdlPortType" value="SimpleBean"/> <parameter name="allowedMethods" value="*"/> <parameter name="scope" value="Session"/> </service>
</deployment> ---------------------------------
For one thing it is provider="java:RPC" instead of
provider="java:EJB". Also the other EJB provider specific parameters are missing
~~~
My questions are:
Q. When exposing an EJB as an axis web service do I have to
always *manually* make the WSDD file or can I somehow make an appropriate
one using wsdl2java.
Q. And if I have to manually make it, how do I generate the client stubs
using wsdl2java without also creating an extra WSDD file I don't want?
Thanks for any help.
Peter
This is an email from Fujitsu Australia Software Technology Pty Ltd, ABN 27 003 693 481. It is confidential to the ordinary user of the email address to which it was addressed and may contain copyright and/or legally privileged information. No one else may read, print, store, copy or forward all or any of it or its attachments. If you receive this email in error, please return to sender. Thank you. If you do not wish to receive commercial email messages from Fujitsu Australia Software Technology Pty Ltd, please email [EMAIL PROTECTED] |
- Re: WSDD files for EJB web services Peter Smith
- Re: WSDD files for EJB web services Adrian Perez Jorge
- Re: WSDD files for EJB web services Peter Smith