Wcf.js module to access wcf services from nodejs - wcf

I have a requirement to access a wcf webservice from my node server.I came across a module called wcf.js which was rated for that purpose.But am confused with the part of message can anyone give me an explanation as how to code using that module will be really helpful.

The codeproject article at http://www.codeproject.com/Articles/379389/Wcf-js-Call-WCF-web-services-from-Node-js has some examples of how to call a WCF service using that package. And the project's page on GitHub also has some documentation.
In the GitHub project you can also find some examples, and the tests for this project (and for any project, in general) are always a good starting point to see how one would use a framework.

Related

.NET-Core Web API routing to diffrent process

My goal is to implement a generically extendible .NET core web API. The generic refers to modules that can be added at runtime and provide new endpoints as well as functionality. These modules will be developed based on a framework.
Currently I am still deciding if the modules will be included as a DLL or run as a separate process (.exe).
I have the basic understanding of Dependenci Injection regarding the addressing of controllers in a DLL. But now I wonder if and how to realize the whole thing via an own process.
The API should always be addressable via http://localhost/myapi/{endpoint}, i.e. a request to a module should be done via the same URL. For the user / developer of the frontend everything should be presented as one API.
Unfortunately I was not successful on my research and don't know exactly what I have to / should look for specifically. Therefore I hope that you can help me.
Examples are helpful, but I am also keywords or articles, which deal with such a topic, help me further.
kind regards

how to connect couchdb with web api core

want to connect to a CouchDb databse from asp.net core web api , but am having trouble finding the code to do so.
Can anyone help me with the code to do that? What is the 'normal' way of doing that?
Cheers!
You can use the MyCouch Library for .Net https://github.com/danielwertheim/mycouch
I had the same need and after evaluating the existing options, I created a set of mechanisms that met the requirements that I had to meet and made available on github and the nuget package.
The explanation of how to use it is on github.
Below is the link in case you want to take a look.
In time, to prevent someone from coming here and deleting my answer, I inform you that I have no intention of promoting what I did with this answer, just suggesting that you evaluate it and if it is your case, feel free to use it.
Link: Nuget Package |
Github
An example webapi core project follows how to make this connection and perform data operations with this lib: webapi core sample

Generating documentation for a Datasnap RESTful API

I've been looking for a way to include an auto-generated documentation endpoint to an existing Delphi Datasnap RESTful API.
Can it be done? Are there annotations or external tools I can use?
Where would I begin, how would I proceed? If not from within Delphi itself, can I integrate with e.g. Swagger?
It seems somewhat anachronistic to build a RESTful API without offering a documentation endpoint these days...
Any and all information that could help me in the right direction would be greatly appreciated.
Using Swagger, via YAML has just been added to Delphi through EMS, the latest RESTful API development option in Delphi.
https://delphiaball.co.uk/2016/04/22/swagger-yaml-delphi/
Its based on Attributes that are added to the API end points as they are defined and that in turn creates the YAML to import into Swagger.

s#arp repository constructor injection for wcf service/client

I understand there is a s#arp contrib collection of dlls but not much documentation (as far as I can see). I intend to use the s#arp architecture in a wcf service (console app hosted). Could someone please provide some code that shows me how to (constructor) inject a repository into a wcf service/client? Is there a transaction attribute for wcf methods similar to that for controller actions in asp.net mvc? Thanks.
PS:
The northwind example:
northwind
supposedly contains an example but the downloaded vs solution does not load properly.
Haven't used WCF in a while, but follow the steps here:
https://github.com/sharparchitecture/Sharp-Architecture-Contrib/wiki/preparing-your-application-to-use-attributes-with-Castle-facilities
You need to add the initialisation code at the start of the app.
Instead of downloading the dlls, just add them using nuget. from the nuget package manager console:
install-package SharpArchContrib.Core
install-package SharpArchContrib.Domain
install-package SharpArchContrib.Castle
There is some documentation about the transaction attribute here, which should provide a starting point WCF:
https://github.com/sharparchitecture/Sharp-Architecture-Contrib/wiki/Transaction-attribute-%28supports-nhibernate-or-system.transaction.-works-with-asp.net%2C-wcf%2C-windows-gui-and-windows-service-applications%29
Chris Richards has posted an example on how to use SharpArch in WCF Console App
https://github.com/yellowfeather/TestWcfService

Using autodocs with WCF REST Service Template 40

I'm looking for a documentation tool for REST services created using the 'WCF REST Service Template 40' and came across Autodocs (http://autodocs.codeplex.com/), however I'm not sure if they'll work together....
Anyone who has made it work or any suggestions to another tool to use for documentation (It's rather important that's it's the REST services which gets documented, and not the C# API)
TIA
Søren
Working with Autodocs for any length of time it becomes pretty obvious that the support is not there for the project yet. Its just too young. I ran into a few errors that stopped me from pursuing it after I found the documentation help methods integrated into WCF 4.0
The post explaining my error:
http://social.msdn.microsoft.com/Forums/eu/wcf/thread/b196a05f-2d28-449e-9620-a74f939a625f
WCF Web HTTP Service Help Page
http://msdn.microsoft.com/en-us/library/ee230442.aspx
Hope that helps you.