• 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, need help on 2 things

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The application I'm looking into sends an XML file to an external vendor.
The vendor has a web service that we use.

I am relatively new to Java and have very basic knowledge of XML and web services. I need help on 2 items:

1. We use cron to run the job every 5 minutes. Can anyone provide guidance on how I can this process locally on my machine - I have JBuilder X.

2. We have an issue and we would like to be able to see the data we're sending. It uses XML to transfer the data. Is there a way to display it's contents? What would I need to do to achieve that?

Thank you.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. What OS is running on your local machine? If it's Linux, you could just create a cron job there?

2. You need an HTTP sniffer program. Maybe this one works: http://www.bizon.org/ilya/sniffer80.htm or this one: http://www.httpsniffer.com/ (both Windows only). Otherwise, search Google for "HTTP sniffer" and you'll find lots of alternatives.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Instead of using an HTTP sniffer, it would probably be easier to use a tool like TCPMon, which understands web service requests, and can show request and reply in a very nice, structured view. It acts as a WS proxy, so after starting it up, you need to point your WS requests to it, and tell TCPMon where to send them. That's all explained in the documentation, and not hard to set up.
 
gino jersey
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jesper, I have Windows XP
 
Jesper de Jong
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To schedule a program in Windows XP, go to Start / Control Panel / Scheduled Tasks and add a new task for running your program.
 
reply
    Bookmark Topic Watch Topic
  • New Topic