Hello community!
I am newbie and trying to learn to use Node-RED. I have been creating flows to retrieve data from several API´s and presenting them in the dashboard. Everything went well until I tried to create flow for SOAP request.
I have used node-red-contrib-soap to create the request and I am able to get response when I use method authenticate(). The actual data that I would like to receive in response is returned by method getReportAffiliateSite().
My problem is that I dont know how to create an request that has both of these methods.
Summary:
-I can get response “payload: null” using the method authenticate()
-I get response "“Service Call Error: Error: SOAP-ENV:Client: Not yet authenticated.” using the method getReportAffiliateSite()
How should I proceed to include both methods in one request?
[{"id":"fbd211bd.a795f","type":"tab","label":"SOAP FLOW","disabled":false,"info":""},{"id":"98070efa.fc71a","type":"inject","z":"fbd211bd.a795f","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":120,"wires":[["ab92ca65.72fb68"]]},{"id":"5eede4db.0cfb3c","type":"debug","z":"fbd211bd.a795f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":930,"y":280,"wires":[]},{"id":"ab92ca65.72fb68","type":"function","z":"fbd211bd.a795f","name":"","func":"msg.payload = {};\nmsg.payload['customerID'] = 12345;\nmsg.payload['passphrase'] = 'INSERTPASSPHRASEHERE';\nmsg.payload['affiliateSiteID'] = '295113';\n\n\nmsg.options = {};\nmsg.options['dateFrom'] = '2018-01-01';\nmsg.options['dateTo'] = '2018-05-01';\n\n\nreturn msg;","outputs":1,"noerr":0,"x":280,"y":180,"wires":[["6acc89e5.277318"]]},{"id":"6acc89e5.277318","type":"soap request","z":"fbd211bd.a795f","name":"AUTHENTICATE","topic":"","wsdl":"a451ba1a.947968","method":"authenticate","x":760,"y":280,"wires":[["5eede4db.0cfb3c"]]},{"id":"47a6020b.937bfc","type":"soap request","z":"fbd211bd.a795f","name":"getReportAffiliateSite","topic":"","wsdl":"a451ba1a.947968","method":"getReportAffiliateSite","x":740,"y":200,"wires":[[]]},{"id":"a451ba1a.947968","type":"soap-config","z":"","wsdl":"http://ws.tradetracker.com/soap/affiliate?wsdl","auth":"0","user":"","pass":"","key":"","cert":"","token":""}]