MVC-style model binding in WCF?

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-05-12T21:59:40Z Indexed on 2010/05/12 22:04 UTC
Read the original article Hit count: 237

Filed under:
|
|

I want to bind POSTed form values to parameters in my WCF operation in the same way that ASP.Net MVC allows me to do.

So, for example if my form has "customer.Name" and "customer.Age" parameters, I want to make a standard HTML POST to a named endpoint/operation that takes a customer parameter and have it instantiated and populated like MVC can do...

It looks like I can use WebInvoke and its UriTemplate property to map simple parameters - does anyone know if a more MVC-like model-binding way is possible?

Thanks, Mark.

© Stack Overflow or respective owner

Related posts about wcf

Related posts about mvc