This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
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.