aspose file tools*
The moose likes Web Services and the fly likes How to create Webservice to accept XML as input and sends back an XML output to the consuming client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to create Webservice to accept XML as input and sends back an XML output to the consuming client" Watch "How to create Webservice to accept XML as input and sends back an XML output to the consuming client" New topic
Author

How to create Webservice to accept XML as input and sends back an XML output to the consuming client

Janarthanan Rajendran
Greenhorn

Joined: Nov 07, 2011
Posts: 7

Hi All,

I am new to webservice. I want to create Webservice which accepts and send back an XML message, also need to create a client that consumes. Could you please provide me some good article from where i can start with ?

Thanks for your help with this.

Regards,
Jana
Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

Webservices by default talk in XML only. As far as their creation is concerned you can use JAX-WS API and JAXB API for creating web-services and their clients.
Janarthanan Rajendran
Greenhorn

Joined: Nov 07, 2011
Posts: 7

Thanks Nitin.

So can I pass an xml document as an input, if so could you please point me to the right document/article. I googled but couldn't get one which tells exactly about reading xml document

Again thanks for your help

Regards,
Jana
Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

The whole thing is like :
1. create a web-service in JAX-WS
2. register that web-service in jUDDI using UDDI4J.
3. inquiry that web-service using UDDI4J.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
NetBeans.org has a section of web service tutorials: http://netbeans.org/kb/trails/web.html
Examples on how to develop SOAP as well as REST web services and clients.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Janarthanan Rajendran
Greenhorn

Joined: Nov 07, 2011
Posts: 7


Thanks Ivan for the link, its what exactly am looking for.

Regards,
Jana
 
 
subject: How to create Webservice to accept XML as input and sends back an XML output to the consuming client