Hai Friends,

I want to create webservice in apache tomcat server in xml format as

<xml>
<name>Name1</name>
<address>Add1</address>
</xml>

please tell how to do this.

Please elaborate your question, the above description is useless.

You can either use the RESTful approach for creating webservices or just use the SOAP stack.

RESTful approach shouldn't require anything more than a server side language along with a container (Tomcat and the likes if using Java) while using the SOAP approach would require you to use something along the lines of Apache AXIS.

When it comes to learning web services, either get a good book or be prepared to spend sleepless nights.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.