The first web service indeed can be implemented with web service.
But the second is most likely another technology, not web service. At least, the system that would be waiting for the file, would not be a web service. It can be another system, which would trigger or initiate a call to a web service to process it.
What is your operating system? or environment?
jee? ejb? Have you looked at
java's jse and jee 'timer' technology? (e.g. you can create either a jse timer or jee timer, that will check the file, regularly, and will call a web service if a condition is met, e.g. if a file exists)
[ August 27, 2007: Message edited by: Jesus Angeles ]
[ August 27, 2007: Message edited by: Jesus Angeles ]