Hi,

It is my understanding that it should be possible to add a new operation to a Web Service and still connect to it from old clients. The books and articles I have read imply this, but in practice I have not been able to accomplish it.

What I have are a set of EJB Service  beans. I generate the WSDL using  axis Java2WSDL.  I deploy  the WSEndPoints on my client and I use the following code to access the proxy:
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(url, qname);
ServerWSEndPoint endpoint = (ServerWSEndPoint) service.getPort(ServerWSEndPoint.class);
This works fine. Now when I add a new method to the ServerWSBean and redeploy to the server but not the client I get an exception:
javax.xml.rpc.ServiceException: Incompatible service endpoint interface: com.etish.useme.est.webservices.ServerWSEndPoint
Which is understandable since the server and client have different versions of the ServerWSEndPoint class.

I figure that I a missing a piece of the puzzle.  I would appreciate any suggestions or pointers to a reference that actually explains what I need to know.

Thanks,
Joel

Reply via email to