Tag Archives: web services

Windows Phone 7: Custom Tool Error failed to generate code for service reference

Stumbling here because you are having trouble updating a service reference in your Windows Phone 7 application? Are you getting a warning that reads something like this? Custom tool warning: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter Error: Could not load type ‘System.Runtime.Serialization.DataContractSet’ from assembly ‘System.Runtime.Serialization, Version=2.0.5.0,… Read More »

Avoiding SOAP Bloat with JSON Services

In this post I am going to walk through writing and consuming JSON services using ASP.Net, WCF, and jQuery to request the stock price for a company. Visual Studio 2010 Web Application Project Template Additions jQuery Intellisense – let Visual Studio write your jQuery for you AJAX-enabled WCF Service – item template that auto-generates the… Read More »

How to use NHibernate Lazy Initializing Proxies with Web Services or WCF

Working with object trees is risky business when combined with remoting. Object trees often have very deep branches and circular references that will clog your pipes and overflow your stack when not handled properly. NHibernate has addressed this same problem in the object-relational space with a very cool feature called lazy initialization, implemented using the… Read More »