This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Web services, need help on 2 things Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Web services, need help on 2 things" Watch "Web services, need help on 2 things" New topic
Author

Web services, need help on 2 things

gino jersey
Greenhorn

Joined: May 24, 2005
Posts: 21
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.
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12953
    
    3

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35443
    
    9
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.


Android appsImageJ pluginsJava web charts
gino jersey
Greenhorn

Joined: May 24, 2005
Posts: 21
Jesper, I have Windows XP
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12953
    
    3

To schedule a program in Windows XP, go to Start / Control Panel / Scheduled Tasks and add a new task for running your program.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Web services, need help on 2 things
 
Similar Threads
sending xml file from server to client dynamically.
XML
how to access cognos data cubes using j2ee
Need Help
How to build RESTful Web services in Java