Node-RED中SOAP请求的服务调用错误

时间:2019-06-13 09:45:51

标签: javascript node.js soap node-red

我正在尝试将How to send a SOAP request in javascript, like in SoapUI上的示例从Node JS转换为Node RED。但是我一直收到服务呼叫错误。关于如何解决这个问题以及我做错了什么的任何想法?

[{"id":"c36205f7.40b708","type":"function","z":"13e8dd5b.8be643","name":"","func":"var newmsg={\n  server:\"https://wsiautor.uni-login.dk/wsiautor-v4/ws\",\n  options:{\n      forceSoap12Headers: true\n  },\n  headers:{\n    'Content-Type': 'application/soap+xml;charset=UTF-8',\n    'soapAction': 'https://wsiautor.uni-login.dk/hentDataAftaler'\n  },\n  payload:{\n      IPAddress:\"192.168.1.0\"\n  },\n};\n\nreturn newmsg;","outputs":1,"noerr":0,"x":340,"y":416,"wires":[["9d7c1176.39d0a"]]},{"id":"9d7c1176.39d0a","type":"soap request","z":"13e8dd5b.8be643","name":"SOAP Envelope","topic":"","wsdl":"57254698.7b5a18","method":"helloWorld","x":558,"y":414,"wires":[["4c13f2f6.22a8fc"]]},{"id":"7de5b0ed.4ebfd","type":"inject","z":"13e8dd5b.8be643","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"","x":161,"y":414,"wires":[["c36205f7.40b708"]]},{"id":"4c13f2f6.22a8fc","type":"debug","z":"13e8dd5b.8be643","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":886,"y":415,"wires":[]},{"id":"57254698.7b5a18","type":"soap-config","z":"","wsdl":"https://wsiautor.uni-login.dk/wsiautor-v4/ws?wsdl","auth":"0","user":"","pass":"","key":"","cert":"","token":""}]
  

“服务呼叫错误:错误:未定义:未定义”

0 个答案:

没有答案