There is an application that was configured and has developed by JAX-WS; the piece of code like this:
@WebService(targetNamespace = "http://webservice.bulk.test.net/", serviceName = "BulkService")
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
@XmlSeeAlso({
ObjectFactory.class
})
public class Bulk {
@WebMethod
@RequestWrapper(localName = "getProvinces", targetNamespace = "http://webservice.bulk.test.net/", className = "test.GetProvinces")
@ResponseWrapper(localName = "getProvincesResponse", targetNamespace = "http://webservice.bulk.test.net/", className = "test.GetProvincesResponse")
@Action(input = "http://webservice.bulk.test.net/Bulk/getProvincesRequest", output = "http://webservice.bulk.test.net/Bulk/getProvincesResponse")
public void getProvinces(
@WebParam(name = "username", targetNamespace = "") @XmlElement(nillable = false, required = true)
String username,
@WebParam(name = "password", targetNamespace = "") @XmlElement(nillable = false, required = true)
String password,
...) {
}
According to this webservice, so many clients(jax-ws clients) are using.
I want to change the jax-ws to jax-rs without changing the client, another hand, the clients have no sens about the changes and do api-call as before.
Is it possible?