File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 516
    
    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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: implementing a web service factory and service locator pattern
 
Similar Threads
service locator pattern
design patterns
Best Practice For Accessing EJB's
Caching Resources in EJB(Service Locator Pattern)
ServiceLocator with stateful session beans EJB 3.0