I have created a SOAP Server Application on Delphi XE8.
I used it as a ISAPI SOAP service, with interface and implementation files.
I deployed this service on IIS, and called it's functions from a VCL client.
I am now trying to make a new function on the SOAP service that communicates with a MSSQL database on the SQL server.
But every time i create a new Data module on the SOAP server, the service stops working.
Can anyone please tell me how to make a database layer, then connect my SOAP service to it, to be able to call from other clients.
Note : I am creating ISAPI.dll
Thanks.
Related
We have a WinForms desktop app that connects to a remote server to pull some data. The remote server hosts a web service on a standard IIS website that queries a SQL Server database installed on the same machine. Today, if the remote server is under maintenance or not available our end-user cannot retrieve the necessary data.
Now I am requested to make this feature fault-tolerant. Here are my questions:
Should I ask for another remote server that runs the same web service and move the DB to a third remote server? So the two web services can connect to the same DB?
Should I consider moving the web service logic to the WinForms desktop app and connect directly to a remote DB paying a first-class 99.99% availability service?
Do AWS or Azure provide a ready-to-use solution that fulfills my requirements?
Is there any other option I didn't consider?
For a university project we have to make a car repair workshop, that sends an email to the client when the car is repaired, it has a database in SQL and a webservice WCF, use of RabbitMQ(optional), and a frontend (in either java or other language not from Visual Studio).
my question is how to connect a web service WCF to a database(SQL).
WCF service example
FrontEnd in windowsForms as an example
SQL database
At first, you can call WCF service in your Winform application, then WCF can use ORM framework to connect the PostgreSQL.
You can refer to the below document to call a WCF service.
https://learn.microsoft.com/en-us/dotnet/framework/wcf/accessing-services-using-a-wcf-client
We either use Adding service reference dialog to generate a client proxy or SVCutil.exe to generate a client proxy and then call the method like what we call a method locally.
https://learn.microsoft.com/zh-cn/dotnet/framework/wcf/how-to-use-a-wcf-client
Second, the ORM framework can help the project connect and manage PostgreSQL. We can use Npgsql for Ado.net driver or entity framework to complete this, Ado.net and Entity framework are two different technology frameworks to manage the database.
https://www.npgsql.org/index.html
Feel free to let me know if there is anything I can help with.
I'm moving an on-premise SQL Server database to Azure SQL Database.
From inside a stored procedure, we need to make HTTP request.
I had built a CLR assembly to make HTTP request, and all was working well.
From what I understand, CLR Assemblies are not supported by Azure SQL Database.
So I have to find an alternative,
Note that the use of stored procedure is for a legacy app to communicate with our app.
The legacy app cannot make an HTTP request (or the devs don't know how).
So basically it goes like:
Legacy App --> Our Stored Proc --> Our Web App.
I'm looking for the simplest solution for an Azure SQL Database stored procedure to make a call to a Web App.
I would prefer no polling solution, ie: Legacy App insert row, then our Web App pools the database.
I am trying to find a way to call a web api web service that returns json from a SQL Server stored procedure. I have found ways to call SOAP web services but not web services that return json.
Also the web service requires authentication with username and passwd.
Any ideas?
You can use CLR (Common Language Runtime) SQL Server objects which enables programming in .NET within SQL Server
I used once created and used a CLR split function in SQL Server
Now I've got a question for you. I'm running a ASP.NET REST Web API using OWIN running as a windows service. Now I've got SQL Server running on a different host, containing a table with binary data and FILESTREAM enabled.
I want to pass this binary data from the web API to the caller. How do I get owin to access SQL Server with credentials that can access the FILESTREAM?
Appreciate your help!