Generating a WCF client proxy for the services

Developer
Dec 3, 2010 at 1: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?

Coordinator
Dec 3, 2010 at 2: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).

Developer
Dec 3, 2010 at 5:39 PM

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

Dec 6, 2010 at 8: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.

Glenn

Dec 6, 2010 at 8: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.