I have got three WSDLS which contains same PortType suppose ABC. Under ABC in the three WSDL different operations are defined.
Now if I want to implement a HTTP server to provide the services defined by the WSDLs, I have to implement ABC. In the below example service1 and service2 are from two different wsdls.
public class ABCImpl implements ABC{
...........................
public void startServer() {
try {
................
server.start();
.............
endPoint.publish(server.createContext("/ABC"));
} catch (Exception e) {
e.printStackTrace();
}
}
public Service1Response service1(
Service1Request request) {
Service1Response resp = new Service1Response();
return resp;
}
@Override
public Service2Response service2(
Service2Request request) {
// TODO Auto-generated method stub
return null;
}
}
Now if I acccess like
http://host:port/ABCImpl?wsdl only one wsdl is shown in the browser, that means server is not exposing both the wsdls.
So Do I need to run two servers for the two wsdls or is there any way to implement both the wsdls under the same server.
Thanks in advance