Program for all languages
I want to write a collection of开发者_如何学编程 methods that can be used by all languages. Java, .net, php, javascript etc.
I've thought of using wcf or web services... what are my other options?
I would stick to a web service solution since this will make the collection available to all languages that can program against these services which includes both client side scripts such as Javascript, server side such as php and normal desktop application languages.
Consuming SOAP services is easy and widely accessible.
You could consider a basic http implementation, but it will be a lot labour work just to achieve the same thing as a SOAP service. However, some languages might not be able to consume SOAP services but will be able to do a http request.
If your programming the methods in .net then use WCF.
精彩评论