I am developing a .NET application (say A) which will talk to other .NET applications (say B). The application A is going to be consumed by a Java application (say X). I am currently using Apache Thrift. Thrift is great except for the basic support for OOPS features (such as overloading and inheritance). Of course, we can customize the Thrift compiler in the way we want as it is a open source technology.
One of my friend suggested to use WCF for application A and to use WSHttpBinding. Does WCF service when using Basic/WSHtppBinding has any limitations other limitations to go ahead with that? I guess the limitations of web service are applicable for the above stated way of hosting. Please guide me in this.
I have worked on a few projects where we have had to integrate WCF and Java. I have always ended up going for the BasicHttpBinding as that has allowed the two technologies to communicate with the least amount of friction. You lose a lot by using BasicHttpBinding over WsHttpBinding but that has not been an issue with the projects I have worked on. You are going to have to make the call between ease of use (BasicHttpBinding) and support for more/newer standards (WsHttpBinding).
Take a look at http://www.codeproject.com/Articles/36396/Difference-between-BasicHttpBinding-and-WsHttpBind
Limitations of WCF are :
ASP.NET 4.0
Visual studio 2010
IIS 7.5
MS SQL server 2008 R2
Related
i have a running webserver with ubuntu. (on ec2 instance)
i also have an asmx webservice i created with c#.
i want use this setup to connect between the webserver and couchbase. (but its not very important for the question itself)
is it possible (im guessing yes) to load that asmx(lets call it a file) to run on ubuntu?
what are the best tools/frameworks to deploy asmx webservice on ubuntu?
is there a reason why i should not do that, and deploy it on a windows based server instead?
(like performance, ease of use etc)
Thanks for your help!
1) is it possible (im guessing yes) to load that asmx(lets call it a file) to run on ubuntu?
Yes, you could use Mono.
2) what are the best tools/frameworks to deploy asmx webservice on ubuntu?
Hard to talk about best tools or frameworks. But you could run ASP.NET application on Apache.
3) is there a reason why i should not do that, and deploy it on a windows based server instead? (like performance, ease of use etc)
Yes, the native home of .NET applications is Windows. Mono can only follow the evolution and new features that get introduced in the .NET framework on Windows.
I have a .net 4.0 app computing data i'd like to visualise with www.unity3d.com which has c# mono scripting. To do this i'd like to send xml strings between the two apps - one of which is running .net and the other of which is running under mono.
I'm new to Interprocess communication but i think it's the way to go - does anyone know of a sample showing .net 4.0 to mono ipc?
any advice appreciated.
David
Don't think of it as "IPC". Use Web Services between the two. Use WCF on the .NET side. I don't know if Mono has support for WCF, but if not, WCF produces standard web services, so Mono should have no trouble consuming the WCF side.
this is more of a subjective Question, but I'll ask it anyway.
I'm about to develop a very data-centric application that has to run inside the browser. The frontend will be Silverlight, backed by a Fluent NHibernate service that runs server side.
The problem here is: Wherever I look for data-driven silverlight app I wind up finding Silverlight RIA services examples, but nothing on how to build this without some ADO.NET stuff involved.
I have little to no knowledge in WCF so far, but from the limited research I did it seems like WCF is pretty much the only way to let the client talk to the server.
Are there any tutorials/best practices on how to write a Silverlight MVVM app that provides CRUD for a non-EF database?
Suggestions would be very much appreciated. Thanks
PS: I can't use .NET remoting. The backend has to run on IIS6 :(
If you only need CRUD why not try REST via WCF
Otherwise create just a regular wcf. Walkthrough: Creating and Accessing WCF Services
There's a great series of posts from Brad A about using RIA Services at Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update Summary.
Some of these will be out of date, but it does cover using RIA Services from a collection of different data sources.
Is it possible to create a C# EXE or Windows Service that can process Web Service requests? Obviously, some sort of embedded, probably limited, web server would have to be part of the EXE/service. The EXE/service would not have to rely on IIS being installed. Preferably, the embedded web service could handle HTTPS/SSL type connections.
The scenario is this: customer wants to install a small agent (a windows service) on their corporate machines. The agent would have two primary tasks: 1) monitor the system over time and gather certain pieces of data and 2) respond to web service requests (SOAP -v- REST is still be haggled about) for data gathering or system change purposes. The customer likes the idea of web service APIs so that any number of clients (in any language) can be written to tap into the various agents running on the corporate machines. They want the installation to be relatively painless (install .NET, some assemblies, a service, modify the Windows firewall, start the service) without requiring IIS to be installed and configured.
I know that I can do this with Delphi. But the customer would prefer to have this done in C# if possible.
Any suggestions?
Yes, it's possible, you may want to have a look at WCF and Self Hosting.
Yes, it is possible (and fairly easy).
Here is a CodeProject article showing how to make a basic HTTP server in C#. This could easily be put in a standalone EXE or service, and used as a web service.
One technology you might want to check out is WCF. WCF can be a bit of a pain to get into but there's a great screencast over at DNRTV by Keith Elder that shows how to get started with WCF in a very simple fashion.
http://www.dnrtv.com/default.aspx?showNum=135
You could take a look at HttpListener in the .Net framework.
I would highly recommend WCF. It would fit very well into a product like you are describing. There are a good number of books available.
Sure, you can do that. Be sure to change the Output Type of the project to Console Application. Then, in your Main function, add a string[] parameter. Off of some switch that you receive on the command line, you can branch to ServiceBase.Run to run as a Windows Service or branch to some other code to run a console application.
This question is somewhat older but since I needed something similar some time ago it felt like this question is still relevant.
I wrote a small Rest-API with NancyFx and OWIN. OWIN is a standard interface between .Net applications and web servers. With OWIN it is possible to create a self-hosted WEB-API. Nancy on the other hand is
a lightweight, low-ceremony, framework for building HTTP based
services on .NET ยน
The combination of those two makes it possible to create a self-hosted C# Web service.
I am quite sure that there are many more possibilities to create something like this by now but since I used it like this I thought the Information might be useful to someone.
I would like to embed a light weight web server in a Windows application developed in .NET. The web server has to support PHP.
I have looked at Cassini, but it seems it is ASP.NET only.
The .net class HttpListener exposes the underlying http.sys upon which IIS is built. All machines since Windows XP2 have http.sys installed by default.
Here are some links to get you started.
XML-RPC SERVER USING HTTPLISTENER
HttpListener For Dummies
As for the PHP support, I don't know how you would enable this, but there is no technical reason you couldn't build it in.
I would look at the likes of XAMPP Lite which you could easily start up and shutdown with your application.
There is also AppWeb which claims to be exactly what you are looking for.
You can always use PHP as a CGI application. CGI is well documented, and AFAIK pretty easy to implement. Use Darrel Millers suggestion, and couple it with some CGI magick, and you should be cooking with gas.
Mongoose embedded webserver
https://code.google.com/p/mongoose/
You can build it with VS2012/10/08 as EXE and you can use PHP and also websockets to push data to the client app. Also you can build a DLL you can do this with make or bring the code into a VS DLL project and build out a _DLLMain, DEF file, etc. Then use it direct from C# - see the mongoose.cs and example.cs files.