Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I have an ASMX-Web Service and tested whether I can access the iPhone over the web wervice url (using json instead of soap) and everything worked. What bothers me is if there is any possibility to exchange objects than Collections or primitive data types? Is it possible to send LINQ-TO-SQL objects to the iPhone and parse it as an Object defining the right class?

Because I get responses like {d:["My_Project"]} and it's wrapped into a json "d"-object.

Example: LINQ-To-SQL Entity: Customer (server side)

The one solution I saw was to create an extra Object-Class, like cloning the Linq-To-SQL Entity and defining Data Members etc. Is this way to go, because there are dozens of tutorials which advices you to manually build your jason string with JavaScriptSerializer which is the wrong way to go than let it serializing automatically. Are there any people who did it that way before and are ready to share their experiences?

I'm really thankful for answers / solutions.
Posted
Updated 20-Mar-14 23:23pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900