How does web services been published ?
Are you talking about
publishing or
deploying a web service? If you're really talking about publishing, you've got two main alternatives: (1) create an entry into a registry such as UDDI (or ebXML, or something similar), and (2) put the WSDL document somewhere on the web. Note that (1) usually includes (2)... The way this is actually done depends on the products you're using, thus, it's best to take the product documentation and start reading.
Hows axis works? To run WS, we need axis.jar. What is the AxisServlet role here?
You should take a look at the
Axis Architecture Guide in order to understand how Axis works. In order to "run" Axis, you need to deploy it as a part of your application. Basically it means including the .jar files from the Axis distribution into your application's lib directory and merging the contents of Axis' web.xml into your application. The AxisServlet's role is to implement the HTTP
transport for
SOAP messages. Axis includes similar implementations for other transports as well (JMS, for example).