File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

implementing a web service factory and service locator pattern

 
manish ahuja
Ranch Hand
Posts: 312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 547
2
Hibernate Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic