File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
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
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13875
    
  10

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: 39549
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
gino jersey
Greenhorn

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

Joined: Aug 16, 2005
Posts: 13875
    
  10

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://aspose.com/file-tools
 
subject: Web services, need help on 2 things
 
Similar Threads
how to access cognos data cubes using j2ee
sending xml file from server to client dynamically.
Need Help
How to build RESTful Web services in Java
XML