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.
subject: implementing a web service factory and service locator pattern