I have a model that is used to create a web service endpoint on a server. The same model is used for the client. However, when a new operation is added to the server, but the client still uses the older model, the service is completed with an exception, for example, as follows (lines are added for clarity):
Exception in thread "main" javax.xml.ws.WebServiceException: Method someNewMethod is exposed as WebMethod, but there is no corresponding wsdl operation with name someNewMethod in the wsdl:portType{http://example.com}MyService
I understand the problem, but can this be ignored? I would like to be backward compatible when using a web service. As long as the methods are just added, this should work very well most of the time.
The problem occurs in the getPort method:
Service s = Service.create( new URL("http://example.com/foo?wsdl"), new QName("http://example.com", "MyService")); MyService m = s.getPort(MyService.class);
source share