Link to home
Start Free TrialLog in
Avatar of emcict
emcictFlag for Malta

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?
ASKER CERTIFIED SOLUTION
Avatar of emcict
emcict
Flag of Malta image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aaron Jabamani
Use channel factory to create proxy instead of any references. Link has more details.
http://msdn.microsoft.com/en-us/library/ms751400.aspx
Avatar of emcict

ASKER

it has worked for me and posted it so it might help others.