简体   繁体   English

如何在NodeJS中添加对Web服务的引用

[英]How to Add a Reference to a Web Service in NodeJS

Is it possible to add Web reference in NodeJS project as we do in .NET framework Web API Projects ? 是否可以像在.NET框架Web API项目中一样在NodeJS项目中添加Web引用? Basically NodeJS API project will act as a middleware between Front End and XML Web service.XML Web service is kinda secured third party service which we want to integrate in our NodeJS projects.Configuring & Integrating web service in C# Web API project is very easy but in NodeJS its bit tricky it seems. 基本上NodeJS API项目将作为前端和XML Web服务之间的中间件.XML Web服务是一种安全的第三方服务,我们希望将其集成到我们的NodeJS项目中。在C#Web API项目中配置和集成Web服务非常容易但是在NodeJS中看起来有点棘手。

You can't add references directly like you do in .Net; 您不能像在.Net中那样直接添加引用; however, there are a number of node_modules which support integration with 3rd party services. 但是,有许多node_modules支持与第三方服务的集成。 For example (given that you mentioned XML), this module ( node ) takes a .wsdl file and generates a SOAP api wrapper. 例如(假设您提到了XML),此模块( 节点 )获取.wsdl文件并生成SOAP api包装器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM