• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Can SIB have multiple SEI?

 
Bartender
Posts: 2085
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

In Java Web Services Up and Running, there is an example:


How about multiple interfaces?




My question is if TimeServerImpl implements multiple interfaces, but @WebService cannot take more than one endpointInterface, what should I do?
 
Creator of Enthuware JWS+ V6
Posts: 3392
312
Android Eclipse IDE Chrome
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Himai,

My question is if TimeServerImpl implements multiple interfaces, but @WebService cannot take more than one endpointInterface, what should I do?


Then don't use the endpointInterface attribute in the @WebService annotation, because by default all the public methods will be exposed as WebService operations.

From the Web Services Metadata-2.0 (JSR-181)

If the implementation bean does not implement a service endpoint interface and there are no @WebMethod annotations in the implementation bean (excluding @WebMethod annotations used to exclude inherited @WebMethods), all public methods other than those inherited from java.lang.Object will be exposed as Web Service operations.



Regards,
Frits
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In JAX-WS, there are two techniques in SEI and SIB called :

1. Implicit SEI : When you do provide value to endpointInterface attribute in @WebService annotation, JAX-WS runtime creates a interface which has all the methods of SIB.
2. Explicit SEI : You have to provide value to endpointInterface. The value must be fully qualified name of SEI interface.

In the situation you described, implement as many interfaces you want and use Implicit SEI technique. Then, JAX-WS creates a interface dynamically whose methods are exposed web service operations.

Hope this helps .

Good Luck.

Kr
Sujeeth Pakala
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic