4

If you have a RESTful web service that uses HTTP 301 redirects to send requests like:

http://server/customers/?name=John

to the url

http://server/customers/324

(as created by a service similar to the one in this question.)

Can these types of services be consumed with the WebChannelFactory and a ServiceContract? If so, how?

Community
  • 1
  • 1
Jacob
  • 22,785
  • 8
  • 39
  • 55
  • Can I ask why you want to use the WebChannelFactory stuff? .Net has some great libraries for accessing http based services. Why not use those? – Darrel Miller Jun 23 '09 at 16:16
  • 1
    @Darrel: what libraries? – John Saunders Jul 07 '09 at 00:04
  • @Jacob: did you ever get this fixed? For that matter, did you ever try this? Your question doesn't say what you tried and what the results were. – John Saunders Jul 07 '09 at 00:05
  • @John: Nope, I ended up never needing this from the client side of things. @Darrel: If you're talking about WebClient and its kin, that's one thing I seriously wanted to avoid (serializing and deserializing everythinh by hand? Meh.) Since I'm in control of the actual REST services, and they are also implemented in WCF, WebChannelFactory was the logical zero-friction choice. – Jacob Jul 07 '09 at 08:00

0 Answers0