Simple web service question
We have a project where there are many surveillance systems which provide data. I have to develop a tool to retrieve data in a common way from all surveillance systems. So for this purpose I intent to use web service. My application just receives data but does not send back anything other than acknowledgement to say that I have received data.
My question is
1) Should I be writing a web service or a client to retrieve data? I am hoping that I should be a client as I am consuming the data.
2) Has there been any case where a client is written first and we expose the WSDL describing how we want the server to provide us information.
Highly appreciate you sharing whatever you know regarding the above issue.
# 1
1) You do not say what these surveillance systems are. Can you communicate with them directly via a client? Or do you need to webify them by exposing their
interface via a webservice. If the latter is the case you could develop a web service that gathers data from these surveillance systems and your client can communicate with the webservice for obtaining the data so your application can get it.
2) Usually I develop a webservice first, than a client, where the client imports the published WSDL from the deployed webservice endpoint. However, if you have a WSDL describing the webservice interface you could write the client first and than the service. The WSDL describes the bindin contract between both the server and the client for communication so I do not see why not.