It's technically possible to bypass WebSharper's RPC mechanism and call an RPC function directly from JavaScript (using the functions in WebSharper.Remoting.*), but it wouldn't save you much over using the communication protocol generated by WebSharper for you. (And otherwise you would have to deal with packaging arguments, manual function name resolution, and other technicalities - which can be a bit overwhelming.)

In short, instead, I would create a WebSharper ASP.NET server control that wraps the call you need to make and use that control in my legacy application.

By on 5/7/2015 11:40 AM ()

Thank you for reply!

Your proposal means that to invoke WebSharper controller via ASP.NET MVC controller? Could you taught me the way to wrap the call of control in the existing ASP.NET MVC application?

By on 5/8/2015 7:42 AM ()
By on 5/15/2015 7:02 PM ()

Thank you very much! I could succeed in reference to the link above. I respect your dedication. I love WebSharper!

By on 5/21/2015 4:42 PM ()

See the ASP.NET integration page from the documentation.

By on 5/13/2015 1:29 PM ()

In addition to that documentation page (which deals with ASP.NET and not ASP.NET MVC), we are also preparing some extra documentation for MVC projects, please keep an eye on our blog for details coming shortly.

By on 5/14/2015 7:51 AM ()

This is now available in WebSharper 3.1 - please see the announcement from today.

By on 5/15/2015 6:59 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper