• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it good to access JAX-WS through Service class?

 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends..

is it good to access JAX-WS through Service class (which autogenerated by wsimport glassfish)?..
its mean that i have to use wsimport for generate all of my WebService class (JAX-WS + EJB3.0)..
is it good implementation or no?..

i ask this beacuse i feel comfort use that Service class, but i don't know whatever its bad approach or no for accessing webservice..

Thanks in advance..
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Using generated artifacts to access a web service is a good approach. If you do not have any special reasons, then there is no need to do things at a too low level - it will make developing your client more complicated.
Best wishes!
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks van for your reply..

yaph, its wouldn't be a problem when we use Service class while we are being in Java scope,
(in mean, the client that accesses is built by Java too)..

assume that the client which want to access WebService is built by using .NET..
and then how to reach it?..
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Accessing web services is done in the same way, regardless of what language the web service implementation is written in.
Be warned that despite promises of interoperability, there may still be difficulties. I would advise you to choose a web service stack (yes, also for the client side) that has been tested for interoperability with .NET web services, for instance Metro: https://metro.dev.java.net/
Best wishes!
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks Ivan..
I'll browse and learn about it..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!