Wednesday, 8 January 2014

Creating EJB webservice using JDEV

entity get generated..after that open entity.and add new annotaion to find users by id as follows.
Save it and Create Session bean.
session bean has created.Now we need to create webservice form this sessionbean.

Test Webservice...
NOTE:

in our selected table,Id field is type Number..So While creating Annotaions and in sessionbean,local and remote interfaces we need to pass int parameter rather than the default Object type paramter.Otherwise..test will fail like following..
Local and remote beans also need to change this type..

Now Test web service again.now it will work fine..
Deploy to em:

right-click on project and say deploy to ejbwebservices..
Add new connection with the new osb domain credentials...(where the server are installed)
pwd:welcome1

enter domain name "osb_domain"(which name we have given in configuration of this domain)

Test connections
9 should be successful

Deploy it to all domains..
We can get the WSDL of this webservice in EM.--Login to EM..Weblogic domain---adminserver---Deployments---
click on the application which we have deployed just now.Under Admin server click on test icon.we can get WSDL of the webservice here as follows.

WSDL:
http://172.16.2.155:7001/OSB_securing_SessionBean/SecuringWebservice_JAN8th?wsdl

We can use this WSDL later in Osb to create business and Proxy services  for practise.
















No comments:

Post a Comment

test