• 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

Web Services Question

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a requirement. I am lookign for a way to sort this out.

I have a servlet, that would get input from the user. For some organization specific reasons, my company does not want to call a servlet to process the user input. We'll store the user data to a text file/xml file.

I need a way to process this data by a timed program(like a timer). It should pick up this text data and then give this data to a URL like("http://host/dataProcessor.jsp"). And my program should be able to get the data thats returned from this URL.

Is this soemthing that only a web service can do or is there any other way to do it or if its a web service thing, how do I do it.

I appreciate you help.

Thanks
 
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can achieve the requirement without web services but the primary reason I think for going for web services is any business process functionality that need to reused across organizations that may be hosting heterogeneous technology stack and ofcourse you cannot expect management services like service restart/start/stop etc. and performance so easily with web services.
 
S Subramonyan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kumar.

Ya, I realized, I don't even need Web Services for this. I was totally illiterate about URLConnection class in Java SE.

I used URLConnection and its working perfect as I wanted.

Thanks for your help!
 
Your mother was a hamster and your father was a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic