I have the following environment setup (please see diagram below - open it in a new tab in case it's too small):
What I need to achieve is the following:
Add the new data (job ads that come in once or twice per day) from the old database to the new database.
Which service model should I use - WCF or Web API?
Related
How can I create Two Applications in Dotnet Domain using (MVC ,WebServices (or) Class Library)?
I want to create Two application
1)which is having Database Connection(Developed One)
2)Client Application - With out Database Connection Need to get the
data from Application(1).
May I know which technologies is usefull?
A) MVC(Through Ajax Call will Connect) - WebServices(Having Database
Connection)
B) MVC(Through Ajax Call Will Connect) -Class Library(BY Sending
Class dll).
So, I need combination of technologies .
In Client Application I don't want a Database connectionstring.
Please help me.
Thanks in Advance
you need a Web Api not an mvc application to interact with db and and client application choice is upto you that can be anything mvc scf spf android
now the main thing is if you use Web Api then you can create multiple client application over multiple platforms without worrying about the code structure or platform since the webapi can return result in json format
so go for WebAPI for your application
I am using Azure Mobile Service as a backend in my Xamarin Andoid App. I want pull data from SQL View not a Table. How to pull data from VIEW, that is possible.?
Thanks a lot
Per my experience, what you want is possible. You can try to define a custom API controller in C# to query the view from Azure SQL Database to render JSON body, then pull data from the custom api on Xamarin Android App.
Please refer to the offical documents as below.
The section How to: Define a custom API controller of the tutorial Work with the .NET backend server SDK for Azure Mobile Apps
The section Work with a custom API of the tutorial How to use the managed client for Azure Mobile Apps
It's actually relatively easy to pull from an SQL View. Check out Chapter 3 of my book at http://aka.ms/zumobook - this goes into detail on how to set up the view. Once the view is defined properly (and matches the model in your code in the backend), it "just works".
We have planned to migrate our application to web role as web role splits the server traffics to other instances. We have some queries regarding that . Let me post it one by one.
1) Since web role involves multiple instances (redirecting to different servers at run time based on the number of instances created), what happens to my session related details which was maintained in one server (with inproc mode will get resides in iis ) when my next requests gets redirected to other server where my session related details wont be available know? Do the windows azure takes a copy of that too or do we need to manully handle?
2)Our application works like Presentation Layer makes a call to the web service which in turn queries the database and results are displayed accordingly (presentation -> webservice -> database). So when am making my presenataion layer as cloud service web role obvioulsy i would need to make my service also as a web role . Am i right?
2.1) If so, what happens when am making the request from presentation how the requests will get carried ?
2.2) Am having my database in a separated vm (not azure db) hosted in sql express when the service dynamically
creates multiple instances what happens to database part?
2.3) Shall we host service and presenation in same cloud service or different which will be preferrable one?
• I am using asp.net . I have to integrate quick books data into my asp.net application.
• In silverlight application using com objects am able to connect to QB and getting the data from that By selecting Company name from .
• But I have to do all this stuff from the iis. So using com objects it is not possible to get the data com object.
So I have chosen Web connector.
My requirement is :
I will select the company database from User interface
After that I have to get the data like : customers ,vendors.
That data I have to import into my database.
But using Web Connector : that has different scenario…
I have to select first .qwc file using this we are calling web services. From there we will get the data.
Is it possible to call the web connector through the coding…..calling web service from there…
Or is there any other solutions without selecting .qwc file
Is it possible to call the webconnector through the coding
No, the Web Connector calls your web service, not the other way around.
It can be scheduled to poll your web service every X minutes.
Or is there any other solutions without selecting .qwc file
To use the Web Connector, you go through a one-time setup process of installing the .QWC file. You only have to do that once. After you've done that, there's nothing else necessary on the end-user side of things.
I'm just start testing SignalR for monitoring application . I have a control which make a call to the Hub by the client side. I noticed , each time the client make Connection.Hub.Start() it creates a new Hub instance in the server , I need to refresh my control all the time , so I don't want it to create new Hub for each one.
Is there a way to create single Hub for all clients or I'm missing something?
A Hub instance is created for each request, much like an ASP.NET Page instance is created for each request in WebForms, a Controller is created for each request in ASP.NET MVC or a WCF service instance is created for each service request when using InstanceMode.PerCall.
If you want to maintain shared state between Hub requests/instances you would need to use a static field or some other, more advanced form of state sharing (e.g. dependency injected singleton).