Generating a WCF client proxy for the services

Dec 3, 2010 at 12:49 AM

Is there a way to do this?  Normally you can do Add Service Reference and point to the WCF service for discovery, but I'm not sure how that works when it goes through routing.  e.g. I tried pointing it to http://localhost/GalleryServer/Packages with no luck.  It's probably me just being ignorant about WCF, but is there a way to do this?

Dec 3, 2010 at 1:29 PM

As far as I know, this isn't supported with the WCF REST services. Maybe a question we can ask Glen Block, or somebody on that team. The Orchard Gallery takes a dependency on Gallery.Core in order to deserialize those types (which are returned from the services as JSON).

Dec 3, 2010 at 4:39 PM

Thanks, I'll ask Glenn.  You may very well be right that it's not supported.

Dec 6, 2010 at 7:28 PM

Won't work in .NET 4.0 though we are adding support for this in our new stuff.

What you can do in the interim however is use the Http client in the REST Starter Kit which supports serializing / deserializing types.


Dec 6, 2010 at 7:30 PM

REST Starter kit also has the "Paste as Xml Types" VS add-in which you can use to generate a client proxy that you can use with RSK.