Generate Asp.net MVC action url from WCF service
NickName:user3584627 Ask DateTime:2016-10-17T19:45:11

Generate Asp.net MVC action url from WCF service

I have email templates with replacable tokens and constructing of email content from WCF service, the one of token have navigating url, the url of the Asp.net MVC site. I need to generate dynamically Asp.net MVC action url from WCF service so I can place url in email templates. The both application are hosted in the same web site (i.e. Under DefaultWebSite).

Right now I have set the base url in web.config app setting and construct the url by switch casing. I am looking for batter solution by dynamically.

Copyright Notice:Content Author:「user3584627」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40085559/generate-asp-net-mvc-action-url-from-wcf-service

More about “Generate Asp.net MVC action url from WCF service” related questions

Generate Asp.net MVC action url from WCF service

I have email templates with replacable tokens and constructing of email content from WCF service, the one of token have navigating url, the url of the Asp.net MVC site. I need to generate dynamical...

Show Detail

ASP.NET Core MVC with WCF Service

Currently we have an ASP.NET MVC 5 website hosted in IIS. This MVC application also contains a WCF service (.svc), which is also hosted in IIS. The advantage is that we can use the same logic/servi...

Show Detail

Host a WCF Data Service in an ASP.NET MVC 3 application?

I've an ASP.NET MVC3 application, and now I would like to offer a WCF Data Service for heavy client. I can generate and configure my WCF service, but when I try to call it, it appears that templat...

Show Detail

How to generate URL in service layer of ASP.NET MVC 3 project

I am looking for a simple way (if it exists) to generate a URL in a service class for a specified controller and action in an ASP.NET MVC 3 web application. I want to do this in the service layer b...

Show Detail

How to check an ASP.NET MVC user is authenticated and authorized from a separate WCF service application?

I have two projects: An ASP.NET MVC 5.2 Application using ASP.NET Identity 2.2 A WCF Application SOAP XML service. Note: The WCF service is not hosted by ASP.NET, nor is it running in ASP.NET

Show Detail

WCF Service with asp.net mvc application

I have started using asp.net MVC and as traditional way I want to keep my data access layer in WCF service. How can I achieve that using asp.net MVC ? Scenario I started a test application in asp...

Show Detail

asp.net MVC calling wcf service

I have asp.net application which i am planning to convert into asp.net mvc app. One area that i havn't found how it could be done is, App is using scriptmanager to make ajax calls to wcf service. ...

Show Detail

Dynamically Change WCF Service URL in ASP.NET MVC

I have one solution in which I have 2 projects with: ASP.NET MVC Application to consume wcf services. 5 WCF services. I have added one web service reference in the project 1. Now, I need to use

Show Detail

Consume WCF Rest Service (JSON) using C# ASP.NET MVC

I'm having difficulty consuming a WCF REST service, which returns JSON, in a C# ASP.NET MVC application. I'm trying to consume the service in a Controller. I have a ASP.NET MVC project and a serv...

Show Detail

Which to choose: ASP.NET MVC or RESTful WCF?

With ASP.NET MVC, it is common to have AJAX code(e.g. jQuery) to invoke web service from server to without page refreshing. It's natural to make web service RESTful. It seems that there are two way...

Show Detail