Axis2 generate the WSDL document file on deployment time. By default, when you add ?wsdl
, Axis2 does not retrieve a previously generated WSDL document. It is generated every time. But if you put the WSDL document file and the corresponding XML Schema files inside the META-INF
folder in the service archive file, it can be recovered with:
http://localhost:8080/axis2/services/MyService.wsdl
The service name given in the services.xml
and the service name defined in the WSDL document should be the same.