Red Hat APPLICATION SERVER - JONAS Manual page 266

Jonas
Hide thumbs Also See for APPLICATION SERVER - JONAS:
Table of Contents

Advertisement

258
Chapter 36. Web Service Interoperability between JOnAS and BEA WebLogic
!-- use of remote interfaces to access the EJB is allowed, but this
example uses local interfaces --
parameter name="homeInterfaceName" value="EJB_Home"/
parameter name="remoteInterfaceName" value="EJB_Interface"/
!-- JNDI properties: it may be necessary to modify hostname and port
number, protocol name could be changed in accordance with the ORB
used --
!-- for a RMI ORB --
parameter name="jndiURL" value="rmi:// url : port "/
parameter name="jndiContextClass"
value="com.sun.jndi.rmi.registry.RegistryContextFactory"/
!-- Specify here allowed methods for Web Service access (* for all) --
parameter name="allowedMethods" value="*"/
/service
/deployment
The various tags allow mapping of the web service on different java classes. If a web service uses a
complex type, this complex type must be mapped with a java class. To do this, two tags can be used:
beanMapping qName="ns:local" xmlns:ns="someNameSpace"
languageSpecificType="java:my.class"/
This maps the
QName [someNameSpace]:[local]
typeMapping qname="ns:local" wmlns:ns="someNamespace"
languageSpecificType="java:my.class" serializer="my.java.Serializer"
deserializer="my.java.DeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/
where
QName [someNameSpace]:[local]
class
my.java.Serializer
36.2.1.3. Web Service Deployment on JOnAS
First, deploy the web application or the application containing the EJB. Then, deploy the web service
using the Axis client tool:
jclient org.apache.axis.client.AdminClient
-hjonasServerHostname -p9000 deploy.wsdd
The web service WSDL is accessible from the url:
http://host:port/url-servlet/webservicename?wsdl.
36.2.2. EJB Proxy Development for WebLogic Server
This EJB provides access to the web service deployed on JOnAS from the WebLogic Server.
is mapped with
and the deserializer used is
with the class
my.class
. The serializer used is the
my.class
my.java.DeserializerFactory
.
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Application server

Table of Contents