emcict
asked on
only string data is saved from WCF service when using Web Reference instead of Service Reference in VS 2008
I have created a WCF webservice that accepts a collection of an object of made of simple datatypes (int, string datettime)
when i test the service from the client side (a mobile application created in VS2008) Â using and add a Service Reference, all the data is saved to the database, however if I add a Web Reference, only datatypes of type string are saved. Also no exception is generated.
I am using basicHTTPBinding in the webservice to make it compatible with older client applications.
I cannot use a service reference at the client side because i need to implement a mobile solution on the compact framework 3.5 which is not supported.
Any help please?
when i test the service from the client side (a mobile application created in VS2008) Â using and add a Service Reference, all the data is saved to the database, however if I add a Web Reference, only datatypes of type string are saved. Also no exception is generated.
I am using basicHTTPBinding in the webservice to make it compatible with older client applications.
I cannot use a service reference at the client side because i need to implement a mobile solution on the compact framework 3.5 which is not supported.
Any help please?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it has worked for me and posted it so it might help others.
http://msdn.microsoft.com/en-us/library/ms751400.aspx