• 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

Advice on use of Web Service

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys

I am a near beginner in java and certainly not familiar with webservices.

I have a problem where I have been asked to send over data to other parties in the form of an xml, and I am wondering if I really need to implement Webservices or a simpler solution would do?

The data I need to send is some customer information such as:

Name Ph No Add Car Owned
D.Xavier 1231312 xxxxx a
F.Ahmed 1231211 xxxxx b
C.Gibson 12312 xxxxx c
A.Fowler 1231 xxxxx a


Where each row is a record and might go as an element between user-defined tags in an xml.


The alternate simple solution that I am referring to could include:

Having a blank input table on my screen (created using html/jsf) , entering the values that are needed and bind the values to a List.
Iterate the list, pick and write these to an output file (.txt) with respective tags needed for the xml to be produced.
Let the caller fetch the text based xml file directly as a resource from my server address.

I am certain this sounds overly simplistic, however would appreciate if anyone could please help me understand the flaws in this approach.

Appreciate any help that can come.

Cheers

P.S.: Given my clear lack of hold on the subject, it would be very helpful to know if there is a live chat option available (here or any other forum) to be able to interact with others from whom I can learn.


 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your client users are simply expecting an XML formatted document, then you certainly don't need to create a complex web service.

What you describe sounds like a "RESTful" architecture to me where the client is handed a URL that GETs your XML document.

You could also be sending users the XML document as email body or an email attachment.

Bill
 
Abbhinav Sharma
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bill

Thanks very much for the advice. The request from the client at this time is for a simple xml file, and it may well be best to solve it the most simple way by simply constructing the file in an off-hand manner.

As clearly I am a 'greenhorn' I am yet to learn a lot conceptually about the capabilities, complexities and limitations of WebServices.
As I had mentioned in my postscript, it would be very helpful to know of a live chat forum, where it would be possible to interact with adept programmers to seek help in clearing my concepts interactively.

Would be great if you could suggest any relevant forums or how best to get clarify my concepts.

Thanks
Abhinav
 
Without deviation from the norm, progress is not possible - Zappa. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic