Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Janarthanan Rajendran
Greenhorn
Posts: 7
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 129
Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 129
Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Janarthanan Rajendran
Greenhorn
Posts: 7
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

Regards,
Jana
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic