• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Web Service Design

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have just created my first web service . Behind the scene I used axis2, acegi, struts2, spring and hibernate.
I found that every time I changed my web service (i.e. added a new method), then the skeleton that was created
during wsdl2java was deleted, hence all my code (i.e. spring injected in services) within the skeleton are deleted
What would be the best design strategy for production? (i.e. still be able to keep my code, but generate a new skeleton).

Secondly what would be the best design strategy to authenticate a user using acegi and axis2?

Thanks for any help.
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I found that every time I changed my web service (i.e. added a new method), then the skeleton that was created
during wsdl2java was deleted, hence all my code (i.e. spring injected in services) within the skeleton are deleted



How is this happening? What do you mean by "change my web service"? What activities are you doing? It is not clear from your post how code is being deleted.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you'll have a look at the SOA Glossary: Web Service


you'll notice that the service logic is distinct and separate from the message processing logic. The service skeleton really should be seen as a part of the message processing logic, not the service logic. The service logic should probably be encapsulated as an Application Service. Any conversion logic that doesn't belong into the service logic can be placed into a service façade (SOA Glossary).
.
Once this separation is complete only the delegation code to the façade/logic would need to be replaced after a skeleton regeneration. Also in many cases you should simply be able to "cut and paste" (or merge) the "additions" found in the new skeleton into the previous "wired-up" version of the skeleton.

Mat Anthony wrote:Secondly what would be the best design strategy to authenticate a user using acegi and axis2?


Apparently Spring-WS 1.5 is already integrated with Spring Security (Acegi-based) which would enable you to use WS-Security rather than HTTP Basic Authentication (which is discussed in Integration of Acegi with Axis2).
 
Mat Anthony
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Peer
 
reply
    Bookmark Topic Watch Topic
  • New Topic