tags:

views:

253

answers:

3

I know there is a library for .NET to use XML-RPC - but does anyone know if it can be used in the ASP.NET MVC environment or not?

+1  A: 

If it works with .NET, it works with ASP.NET MVC. The ASP.NET MVC environment is just a layer on top of the .NET Framework, so anything you can build with .NET can be used in an ASP.NET MVC application.

Tomas Lycken
and.............
kenny
+2  A: 

The above answer is correct - it will work (you can simply deploy an XML RPC endpoint in your MVC app and call it directly).

If, however, what you mean is does it work with MVCs routing and controller actions, then I'm afraid the answer is 'not without a lot of work'. The well known XML RPC library (by cook computing is it?) is based on something similar to asmx technology.

There is also a WCF XML RPC component (faster and more future proof I think) - which I've written about in the context of writing a Live Writer backend. But this also will not integrate directly with MVC routing and Controller Actions.

Whilst it's possible that you could theoretically write ActionFilters, a custom Controller Factory, ModelBinder and (probably) more to provide XML Rpc results etc; you're better off simply choosing your XML RPC implementation and calling it directly.

Not sure if this has added anything useful :)

Andras Zoltan
+2  A: 

The Cook Computing xml-rpc.net library can be used with any ASP.NET project, including ASP.NET MVC.

http://xml-rpc.net/

Haacked
Phil - do you any more input on how to do that?
NTulip