i am making a webservice, mostly is done but the thing is [WebMethod] returns a .net DataTable so client using other platform won’t be able to call it, I need the architecture to be SOA(details here) like it takes a request and gives a response. I can use xml serializable classes to get the data but i have no idea how would they fit in. any ideas?
i am making a webservice, mostly is done but the thing is [WebMethod] returns
Share
Return an custom class and just use arrays and not lists or dictionary’s. Just did this and PHP, Java and .Net developers will be ale to work with your object.
You can also expose JSON there is a walk though on how to do that.
Also take a look at Web API you may decide to use it instead.
On another note: PHP can have trouble with its native SOAP support which is 1.1, so use basichttp bindings or the client will need to use NuSoap which is SOAP 1.2 instead.