I want to write an application that listens on a webservice end point:
hostname:port
and intercepts any response coming off that port. (I will later turn those responses into events and pass them to esper for CEP.) What's the easiest way to do this? (in Java)
P.S. There's no encryption/security/sessions. Just an exposed endpoint that spits out http/xml whenever a request comes in.
Edit: i am not deploying a web service, I am writing a client that will listen and intercept all and any http response coming off a webservice, requested by other clients. i need a listener...
Edit2/@Rami: i could build this as a filter into my ws stack, but lets say i have 100x such webservices and my goal, as stated above, is to route the data to an even processor. i cannot build a filter into every single one, plus others could be owned by vendors, point being, i have the right to consume the webservices i want ot listen on, i just want to monitor for responses for scenarios not originally build into/designed in the original deployment