Hi All,
I know how to write a webservice but I need some clarity on how it works.
As per my understanding, whenever we deploy a webservice using
java annotations , the wsdl will be automatically generated by the application server during deployment.
This is the wsdl we ll get when we hit the webservice URL. But my teammate told me that when we deploy a webservice in to the server, the development team will put the wsdl file (Contract first) into the src/main/resources location and server will use that wsdl file to deploy the webservice in the server and also this is the wsdl url we ll get when we hit the webserivce url.
I dont believe this, I think even if we put the WSDL file as part of java project workspace, the application server will automatically generate a new wsdl using the annotations which we provided in the java class and that automatically created wsdl will be returned when we hit the webservice http URL . Please advise whether my understanding is correct or my teammate's. Thanks !!!