Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to consume third party webservice inside EJB

 
sri ramvaithiyanathan
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,

As per my requirement I want to consume third party webservice inside my EJB project.
Please share your views and let me know if you have any tutorial for that.

Regards
Sriram
 
Deepak Rao
Ranch Hand
Posts: 35
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sri,

Just do it the way you normally call webservices. I would have a POJO helper class which calls the webservice using jax-ws(maybe). I would call the pojo class from the EJB.

Deepak
 
Joemon Anthony
Greenhorn
Posts: 26
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepak, could you please elaborate it. If possible can you share an example.
 
Deepak Rao
Ranch Hand
Posts: 35
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a number of examples for calling webservices online.
 
Joemon Anthony
Greenhorn
Posts: 26
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Deepak.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic