P
Peter Kirk
Hi
I am trying to write a web service. This web service is a "generic
webservice" for our solution - that is, it should be able to return
different data depending on who calls it.
For example, we have 5 possible data items: name, address, company,
creation_date, telephone
(in reality there are 100s of possible data).
The companies who call our webservice can "subscribe" to a subset of this
data: maybe only name & address for example. So when they call the
webservice they receive only name & address back. Another company might
receive only name & telephone number.
(Configuration on the webserver determines what data is relevant for each
company, and they supply their "company id" when they call the web service).
What is a good type of data object to use as the return value? I thought of
a hastable, with key = "name" or "address" for example, and value as the
value. But now I am in doubt if a web service can return hashtables, or if
there might be a better data type anyway.
Thanks for any advice,
Peter
I am trying to write a web service. This web service is a "generic
webservice" for our solution - that is, it should be able to return
different data depending on who calls it.
For example, we have 5 possible data items: name, address, company,
creation_date, telephone
(in reality there are 100s of possible data).
The companies who call our webservice can "subscribe" to a subset of this
data: maybe only name & address for example. So when they call the
webservice they receive only name & address back. Another company might
receive only name & telephone number.
(Configuration on the webserver determines what data is relevant for each
company, and they supply their "company id" when they call the web service).
What is a good type of data object to use as the return value? I thought of
a hastable, with key = "name" or "address" for example, and value as the
value. But now I am in doubt if a web service can return hashtables, or if
there might be a better data type anyway.
Thanks for any advice,
Peter