• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 7
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 129
Netbeans IDE Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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

Regards,
Jana
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic