Tag: wcf

WCF在node.js中的Web服务

任何人都可以帮我说下面的代码有什么问题 var BasicHttpBinding = require('wcf.js').BasicHttpBinding , Proxy = require('wcf.js').Proxy , binding = new BasicHttpBinding() , proxy = new Proxy(binding,"http://www.restfulwebservices.net/wcf/WeatherForecastService.svc") , message = '<Envelope xmlns=' + '"http://schemas.xmlsoap.org/soap/envelope/">' + '<Header />' + '<Body>' + '<GetCitiesByCountry xmlns="http://www.restfulwebservices.net/ServiceContracts/2008/01">' + '<Country>korea</Country>' + '</GetCitiesByCountry>' + '</Body>' + '</Envelope>' proxy.send(message, "http://www.restfulwebservices.net/ServiceContracts/2008/01/IWeatherForecastService/GetCitiesByCountry", function(response, ctx) { console.log(response) }); 我得到下面的错误 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode><faultstring xml:lang="en-US">The […]

如何找出WCF服务的期望?

我正在使用Node.js和wcf.js模块(npm install wcf.js)我试图使用的服务是https://webservice.kareo.com/services/soap/2.1/ 我已经知道,这个https://webservice.kareo.com/services/soap/2.1/KareoServices.svc?xsd=xsd0包含什么服务正在寻找收到,这些https://webservice.kareo.com/ services / soap / 2.1 / KareoServices.svc?wsdl = wsdl0是uri的提交给他们的。 如何在世界上弄清楚我应该如何构build请求? 这是wcf.js给我的例子 var BasicHttpBinding = require('wcf.js').BasicHttpBinding , Proxy = require('wcf.js').Proxy , binding = new BasicHttpBinding() , proxy = new Proxy(binding, " https://webservice.kareo.com/services/soap/2.1/") , message = '<Envelope xmlns=' + '"http://schemas.xmlsoap.org/soap/envelope/">' + '<Header />' + '<Body>' + '<GetData xmlns="http://tempuri.org/">' + '<value>GetAppointments</value>' + '</GetData>' + […]

在NodeJs中使用WCF服务(WsHttp绑定)

我正在尝试使用NodeJS使用WCF服务。 我试着security mode="TransportWithMessageCredential" BasicHttpBinding 。 它工作正常。 但是,如果我尝试使用WsHttpBinding和security mode="TransportWithMessageCredential"使用该服务,将引发以下错误: “消息不能被处理,这很可能是因为动作' http://tempuri.org/IService1/GetData '不正确,或者是因为消息包含无效或过期的安全上下文标记,或者是因为绑定之间不匹配如果服务由于不活动而中止通道,安全上下文令牌将是无效的,为了防止服务中止空闲会话过早地增加服务端点绑定的接收超时。 这是我的networkingconfiguration <bindings> <wsHttpBinding> <binding name="WsHttpBinding" maxReceivedMessageSize="104857600" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:01:00" sendTimeout="00:01:00" messageEncoding="Text" textEncoding="utf-8"> <!–Maximum size of the message which can be processed by the binding is 100 MB–> <security mode="TransportWithMessageCredential"> <transport clientCredentialType="None"/> <message clientCredentialType="UserName"/> </security> </binding> </wsHttpBinding> </bindings> <services> <service name="WcfService1.Service1" behaviorConfiguration="DefaultServiceBehaviors"> <endpoint address="" binding="wsHttpBinding" […]

Wcf.js模块从nodejs访问wcf服务

我有一个要求,从我的节点服务器访问一个wcf web服务。我遇到了一个名为wcf.js模块被评为这个目的。但是混淆部分的消息任何人都可以给我一个解释,如何使用该代码模块将非常有帮助。

如何在node.js中使用WCF soap web服务

我尝试了很多使用节点模块wcf.js的例子。 但是得不到合适的结果。 我正在使用下面的url https://webservice.kareo.com/services/soap/2.1/KareoServices.svc?wsdl 任何能够通过代码解释我的人都会很有帮助。 我想知道如何访问node.js中的wsdl 谢谢。

Node.js如何从networking/ TCP / HTTP连接的angular度来工作? WCF能模拟这个吗?

我的理解是,node.js是一个面向Linux世界的Python应用程序。 每个人似乎都对处理许多并发连接的速度和能力感到满意。 我来自微软的背景,并认为node.js可能能够使用WCF实现。 有人能告诉我node.js如何在networking背景下运行,并且可以select提供洞察,看看是否可以移植到WCF或Azure服务总线?

ASP.NET Web Api与Node.js

我最近已经开始将一个我正在使用的Web平台连接到主要用C#编写的其他相当复杂的系统上。 我的大部分经验是在PHP和JavaScript的Web开发中。我也有在WCF编写Web服务的经验。 令人遗憾的是,在为我的PHP Web平台编写WCF服务时遇到了很多困难,开发缓慢,configuration非常(非常)复杂,为了在JSON中做好响应并使用RESTful和更多。 当然,我开始环顾其他技术,特别是引起了我的注意,Node.js对我来说可能是完美的,因为我在JavaScript中有很多的经验,这样我就不再需要我的Windows服务器了。 我的另一个select当然是继续用C#编写服务,而是改用ASP.NET Web API。 交换机可能比从WCF到Node.js要容易得多。 有关于此事的任何想法或build议? 有没有人在Node.js中编写Web服务的经验,可以指向一个很好的教程方向? 还是我的方式,我不应该使用Node.js的Web服务呢?