Tag: soap

使用iisnode,nodejs和node-soap库时,Win32应用程序无效

我在使用iisnode和node.js 0.10.20在IIS 7,Windows Server 2008上设置Node.js / Node-soap服务时遇到了一些问题。 这个相同的设置,使用相同的代码,在另一个服务器上运行,并且完美地工作。 问题是没有logging安装过程,并且把它放在一起的人不能将其迁移到新的服务器。 而且我在Node和IISnode中都没有预先的知识。 这是打印的错误信息: iisnode处理请求时遇到错误。 HRESULT:0x2 HTTP状态:500 HTTP原因:内部服务器错误您正在收到此HTTP 200响应,因为system.webServer/iisnode/@devErrorsEnabledconfiguration设置为“true”。 除了node.exe进程的stdout和stderr的日志之外,还可以考虑使用debugging和ETW跟踪来进一步诊断问题。 下面显示了由node.exe进程到stderr生成的最后一个64k输出: 应用程序已抛出一个未捕获的exception,并终止:错误:%1不是有效的Win32应用程序。 \ node_modules \肥皂\ node_modules \节点外籍\build造\发布\ node_expat.node at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (<Path to application>\node_modules\soap\node_modules\node-expat\lib\node-expat.js:4:13) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at […]

将java对象分配给node.jsvariables

这是我使用'java'模块在node.js中创buildjava对象的一段代码。 四个java对象被创build,我希望它们作为一个单一的对象。 所以我使用variables“args”来保存这些java对象。 var java = require("java"); java.classpath.push("commons-lang3-3.1.jar"); java.classpath.push("commons-io.jar"); var soap = require('soap'); var vehId = java.newInstanceSync("java.lang.Integer", 922); var lattitude = java.newInstanceSync("java.lang.Double", 8.6717136); var longitude = java.newInstanceSync("java.lang.Double", 76.8168311); var GregorianCalendar = java.import('java.util.GregorianCalendar'); var time = new GregorianCalendar(2014,4,29,8,7,6); console.log('vehId: '+vehId+'\nlattitude: '+lattitude+'\nlongitude '+longitude+'\ntime: '+time+'\n\n'); var args = { vehicleId : vehId, lat : lattitude, lan : longitude, […]

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

我是node.js的新手,我想通过提供请求并获取响应来使用node.js中的SOAP Web服务。 任何人都可以指导我如何做到这一点。 我已经在github中检查过node-soap 。 我不确定如何在那里提供我的请求并得到回应。 请帮助!

肥皂标准化变换

我正在尝试使用Datapower设备上托pipe的soap服务。 到目前为止,发送soap服务和接收方为下面的xml计算摘要是不同的。 应用于创build摘要值的转换 <ds:Reference URI="#TS-f3c103e9-1897-43d8-8cf6-274bdb647678"> <ds:Transforms> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> <ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="wsse soap"/> </ds:Transform> </ds:Transforms> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <ds:DigestValue>1rjXQQWVMM5KBWY8uswUynk6PCk=</ds:DigestValue> </ds:Reference> 引用的元素。 <wsu:Timestamp wsu:Id="TS-f3c103e9-1897-43d8-8cf6-274bdb647678"> <wsu:Created>2016-02-24T15:32:12.693Z</wsu:Created> <wsu:Expires>2016-02-24T15:37:12.693Z</wsu:Expires> </wsu:Timestamp> 上述元素的名称空间应用于根节点上 的xmlns:WSU = “http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd” 的xmlns:DS = “http://www.w3.org/2000/09/xmldsig#” 发送上述XML可以正常工作(从Java SOAP客户端库创build)。 但是,当我用节点sha1消化同样的元素时,我得到了不同的摘要值。 我正在尝试在计算摘要值之前发现java在转换中的作用。 如果我能找出它实际发送到sha1方法的内容,我可以修改节点中的代码来做同样的事情。 给定上面的引用元素,sha1之前的变换之前的输出xml是什么?

如何使用NTLM身份validation在节点js中调用SOAP webservice

我是NodeJS的新手,我需要一些帮助来连接到NTLM身份validation的SOAP Web服务。 执行此代码时,httpntlm模块中会显示一个错误: C:\soapclient\node_modules\httpntlm\ntlm.js:106 callback(new Error("Couldn't find NTLM in the message type2 comming from the server")); ^ TypeError: callback is not a function at Object.parseType2Message (C:\soapclient\node_modules\httpntlm\ntlm.js:106:3) at sendType3Message (C:\soapclient\node_modules\httpntlm\httpntlm.js:66:23) at Immediate._onImmediate (C:\soapclient\node_modules\httpntlm\httpntlm.js:93:4) at processImmediate [as _immediateCallback] (timers.js:383:17) 和代码: var soap = require('soap-ntlm-2'); var url ='https://ws.tmb.cat/secure/ws-ibus/IBusService?WSDL' var options = { wsdl_options: { ntlm: true, username: "xxxxxx", […]

meteor服务器中的asynchronousfunction

我正在使用vpulim:node-soap来运行soap服务器。 我的meteor服务器启动包含其中各种其他代码: authRequestOperation: function(args,cb,headers,req) { console.log(args); var authResponceObject = {}; var futureAuthResponse = new Future(); Fiber(function(){ if(collectorUsers.findOne({username: args.username})){ console.log("Found User"); authResponceObject = { username: args.username, nonce: Random.id() }; console.log("authResponceObject is: " + JSON.stringify(authResponceObject,null,4)); console.log("futureAuthResponse returning…"); futureAuthResponse.return(authResponceObject); } // console.log("futureAuthResponse waiting…"); // return futureAuthResponse.wait(); }).run(); console.log("authResponceObject after fiber is: " + JSON.stringify(authResponceObject,null,4)); return authResponceObject; }, 我想要做的是: […]

node-soap更改操作的命名空间

client.lastRequest从下面的代码是: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:services.example.com/"> <soap:Body> <getImagesDefinition> <Input>0001386669</Input> <getImagesDefinition/> </soap:Body> 这里是源代码: var soap = require('soap'); var url = 'http://www.example.com?sap-client=080'; var args = { INPUT: '0001386669' }; var auth = "Basic " + new Buffer("username" + ":" + "password").toString("base64"); soap.createClient(url, { wsdl_headers: { Authorization: auth } }, function (err, client) { client.setSecurity(new soap.BasicAuthSecurity('admin', 'password')); client.getImagesDefinition(args, function(err, result){ […]

如何在React js中调用Soap?

我已经尝试了几种方法通过Reactjs进行Soap调用。 但是我总是在每个方法上都面临一些错误。 有人可以帮我一下,或者给我提供一个小的工作例子,以便我可以参考吗? 我曾尝试使用npm soap和easysoap软件包,但是我无法成功。 任何工作的例子是非常appriciated。 我也尝试了以下的方式,但它也无法正常工作。 var xmlhttp = new XMLHttpRequest(); xmlhttp.open('GET', '{My soap endpoint}', true); // build SOAP request var sr = '<soap:Envelope xmlns:soap="{My soap request}"' xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4) { if (xmlhttp.status == 200) { alert('done. use firebug/console to see network response'); } } } // Send […]

SOAP请求使用nodejs

嗨,任何人都可以帮助我。 如何请求soap web服务并获取xml响应。 Senario:使用肥皂用户名,密码validation发送wsdlurl,我也将发送肥皂XML数据,我得到的回应。 同样的事情如何使用nodejs或sails进行存档。 在SoapUi中我的soap xml请求就像 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tier="http://HCSLN9191-GMS.gois.ito.unisys.com/Tier1ICLStd:Tier1ICLMB_StdDispatch"> <soapenv:Header/> <soapenv:Body> <tier:UnisysMB_Dispatch> <PayLoad>SomeData</PayLoad> </tier:UnisysMB_Dispatch> </soapenv:Body> </soapenv:Envelope> 和我的肥皂authentication是一样的 $用户名:xyz和密码:xyz 我的wsdlurl是http://esbuatt1wm.ito.xyz.com:7001/ws/Tier1ICLStd_New:Tier1ICLMB_StdDispatch_New?WSDL 提供这些信息之后,我得到了类似的XML响应 <ser-root:CommAck xmlns:ser-root="http://HCSLN1181-GMS.gois.ito.unisys.com/Tier1ICLStd_New:Tier1ICLMB_StdDispatch_New" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <CommAck> <MB_UUID>cbbb683d-e9b1-4d12-b0db-8006134aad27</MB_UUID> <ServiceID>McDonalds</ServiceID> <Acknowledge>0</Acknowledge> <Comment>Payload does not contain the pattermatch xpath.</Comment> </CommAck> </ser-root:CommAck> 我的问题是如何使用节点易皂上面的xml响应,我是新的肥皂概念。 可以anyboud帮助我给上述senario适当的片段…..

如何使用nodejs soap创buildwsdl soap请求

我用node.js的肥皂发送肥皂请求,但我不断收到错误。 在SoapUI中,我的xml如下所示: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:acl="http://schemas.datacontract.org/2004/07/Acl.WcfService.Model"> <soapenv:Header/> <soapenv:Body> <tem:GetOrder> <!–Optional:–> <tem:args> <!–Optional:–> <acl:ApiKey></acl:ApiKey> <!–Optional:–> <acl:OrderId></acl:OrderId> </tem:args> </tem:GetOrder> </soapenv:Body> </soapenv:Envelope> 这是我的代码: var args = { 'args': { 'ApiKey' : '***', 'OrderId' : '***' } }; soap.createClient(wsdlURL, function (err, soapClient) { soapClient.GetOrder(args, function (err, result) { //the result goes here if (err) { console.log(err); return; } console.log(result); […]