aspose file tools*
The moose likes Web Services and the fly likes implementing a web service factory and service locator pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "implementing a web service factory and service locator pattern" Watch "implementing a web service factory and service locator pattern" New topic
Author

implementing a web service factory and service locator pattern

manish ahuja
Ranch Hand

Joined: Oct 23, 2003
Posts: 312
Hi there,

I was looking for some ideas around a service factory or service locator pattern like implementation for web services lookup.

So the web service calling client does not have to deal with the boilerplate every time the client has to invoke a web service. All the nuances get wrapped in a factory style implementation and also cache such object references a-la service locator.

Let me know your thoughts.


Regards,
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

Hi Manish,

I'm thinking what would stop in designing such factory absolutely possible to design a factory which would return an instance of the port by some lookup. However, consider proxy case, where we generate the artifacts before hand, supplying the WSDL. So if you could delegate the task of generating the artifacts at run time, then it is absolutely possible to get a reference of port. I vaguely remember and think Spring-ws has something of this sort.


Regards
KumarRaja

 
Consider Paul's rocket mass heater.
 
subject: implementing a web service factory and service locator pattern