I have .net service. I want to consume it in website service which is hosted in MVC web application. What is the best design to do that in MVC pattern.
WCF and .net service
333 Views Asked by AudioBubble At
1
There are 1 best solutions below
Related Questions in .NET
- file download method in visual studio 2017
- Repository manager receives the wrong connection string in .net core
- MongoDb not connecting C#
- The current .NET SDK does not support targeting .NET Core 6.0. Brand new WPF Project VS Community 2022 17.9.5
- Why Scanning GSI on DynamoDb doesnt work as fast as expected when using CONTAINS?
- Are "blittable types" really unmanaged types for StructLayout Sequential
- Failed to fetch dynamically imported module on Blazor JS Interop
- Problem to upload several images per one request
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Stripe connect payout - throws exceptions
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Convert C# DateTime.Ticks to Bigquery DateTime Format
- Socket.io nodejs server .NET connection
- Producer Batching Service Bus Vs Kafka
Related Questions in ASP.NET-MVC
- I have a problem outputing the roles on the page ListRoles.cshtml
- Dropdown list showing SQLServer2005SQLBrowserUser$DONSERVER instead of Active Directory group name in ASP.NET MVC C#
- Hosting ASP.NET MVC application on IIS web server using Windows 2019 server
- How to display only department fields associated with a selected department in student automation system?
- How to send select input data for form submission?
- Multi level project reference using dll
- How to upload file to Onedrive using ASP.NET MVC?
- ASP.NET MVC web app looping between fields only on some devices
- Is there any automatic job to load AD-groups?
- How to restrict admin js files to download
- Download PDF in ASP.NET MVC application
- How to add bootstrap theme/example into ASP.NET MVC 5?
- Web API works with Windows authentication enabled when consumed via Swagger but throws an unauthorized issue when accessed through web app
- ASP.Net Core 7.0 Web App (Model-View-Controller) ErrorViewModel OnGet OnPost do not get called or executed
- OAuth 2.0 keep getting Authorization has been denied for this request
Related Questions in WCF
- Migrate ASMX web method to WCF which accepts string array
- Handling WCF enums when client and server have different versions of enum
- Objective tools for monitoring WCF APIs for latency, failures, and breakdowns?
- ASP.NET Core Web api + WCF
- WCF Authentification Android App - Maui WCF Webservice Basic
- WCF to WCFCore - Help Menu
- Problem with hashtag (#) character in httpclient and WCF
- How to add REST API to a .NET Framework Solution with existing WCF Services?
- How to run WCF service in VSCODE
- Adding HTTP Headers using MessageInspector in WCF (VB.NET) Not Working
- The data returned by the WCF service contains special characters, causing an error when the client attempts to receive it!"
- How to configure rest api’s in WCF project , making it hybrid solution
- WCF + PostgresQL. Npqsql connection is not open
- CORS Error that is not fixed with usual solution
- .NET project hosted on IIS is timing out in 5 minutes but works fine on localhost
Related Questions in WEB-SERVICES
- Apache CXF is unable to handle duplicate localnames
- Why do we call all http services 'Web Api/Web Service'?
- Postman Webservice PHP Curl Code POST request giving forbidden error when run in local
- Migrate ASMX web method to WCF which accepts string array
- PKIX failed when using custom SSLcontext with custom keyStore and trustStore
- Problems in Validations via Web Service in a Vue 3 Application
- Maven plugin 100% compatible Java21 to generate stub classes from WSDL file and generate *.wsdl from java classes? A solution
- Kubernetes Ingress Port to Port route
- How to handle a multi thread tests calling a single thread web service in .Net Framework 4.6?
- oracle.dataaccess.dll keep showing up as reference after build of C# web service using Oracle MDAC
- Your thoughts on the suggested architecture for addressing the challenges and maintenance of third-party API implementation
- Issue with BizTalk register WCF-WSHttp adapter while calling web service
- Does PHP SoapClient creates XML to be sent to webservice end point, based on WSDL file, while using CURL the XML should be manually created?
- Invoice API in Authorize.net like Square
- Publish JAXWS Endpoint in the same port than Spring boot
Related Questions in .NET-SERVICES
- Turn .Net 6 Background Service app as IoT Edge Module
- .Net service crashing while Unzipping 12GB File
- windows service can't access desktop UI
- When i'm posting binary data for images from angular 14 to Asp.Net 6 Rest Api, i just find image path & it's name but i lose binary data
- .NET Service System.Net.Sockets.SocketException: 'No such host is known'
- Oracle Net Service Name with 2 Connect Descriptors in ldap
- Stopping a Windows Service in the event of a critical error
- stop and start a service with html and javascript
- what are the limitations of a .net web api service?
- how to develop login using .net web services in android
- WCF and .net service
- How to hide Application Window when its EXE has been called from a Process?
- Service runs then dies
- Increase Sql timeout in .net
- Determine the last time an Application Pool recycled
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The solution ultimately depends on 1) Time and 2) Security. If you have plenty of time you can invest in a wrapper api which will in tern allow you to set security on access to the external web service methods. I assume you don't want to have direct access to the external service by javascript code. If you need information like "what user just asked for record XYZ" then you can also wrap auditing into your wrapper api. You will likely want to invoke some web service methods on the client side as well.
I would use ajax to get call the service (through your controller) if they are simple invocations. If they return large results then perhaps you need to call the web service directly in the control and push the data to the view model.
An example of just getting your web service results to json:
You can turn that action result into a
WebApicontroller if you so desire then you are essentially making aWebApiwrapper around your existing web service (which is of course protected from the public and called server side only).Alternatively you can pass your IEnumerable result from the web service back to the view model. Or just a
Tback to the view model.For additional information have a look at this similar question ASP.NET MVC & Web Services