[thelist] PHP/Webservice -- send "string as number" or "number as string" ?

Hassan Schroeder hassan.schroeder at gmail.com
Tue Nov 11 09:26:45 CST 2008


On Tue, Nov 11, 2008 at 5:30 AM, Stefan Schwarzer <st.schwarzer at geois.de> wrote:

> I am developing a webservice, in which one needs to specify the type
> of the parameter being passed - string, integer etc...
>
> Now, while I want to sent a country ID, I wonder if one can somehow
> stay flexible in sending an integer or a string, as both IDs are being
> used often.

? This sounds like an application design problem. Why would an
attribute be of more than one type?

-- 
Hassan Schroeder ------------------------ hassan.schroeder at gmail.com



More information about the thelist mailing list