wsdl:import
failing at child type wsdl:import
code //
var soap = require('soap');
var url = 'https://service.com/test.svc?wsdl'; var args = {name: 'value'}; soap.createClient(url, function(err, client) { console.log('here'); client.MyFunction(args, function(err, result) { console.log(result); }); });
///
assert.js:104
throw new assert.AssertionError({
^
AssertionError: Invalid child type
at [object Object].addChild (/Users/vartanarabyan/Development/testtest/node_modules/soap/lib/wsdl.js:318:9)
at [object Object].endElement (/Users/vartanarabyan/Development/testtest/node_modules/soap/lib/wsdl.js:108:20)
at [object Object].
me too^
code: // var soap = require('soap'); var url = 'http://192.168.1.100:8001/soa-infra/services/default/RznSearchService/RznSearchService_ep?WSDL';
soap.createClient(url, function(err, client) { console.log(err, client); });
console: // user161@webrzn:~/rznWebApp$ node soap
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
AssertionError: Invalid child type
at [object Object].addChild (/home/user161/rznWebApp/node_modules/soap/lib/wsdl.js:318:9)
at [object Object].endElement (/home/user161/rznWebApp/node_modules/soap/lib/wsdl.js:108:20)
at [object Object].
+1 here
Most of the code assumes a single WSDL with no imports. I had to fork the code to get multi-WSDL support on a single server/client.
+1. Have any of you guys found/implemented a workaround?
@alanbly How did you do that?
same error here for 0.4.0
@courthead @vartana @abbaspour 0.4.1 was released last night. Can you try recreating the issue with the latest version? Thanks!
@jsdevel Tried again with 0.4.2 and problem persists. Are imports the issue?
@ruaanvds that is something I'm not entirely sure of. What would really help, is if you could recreate the issue, either with a wsdl under test/wsdl, or test/request-response-samples.
@abbaspour @ruaanvds, can you guys collaborate on this, or find the time to fix this? It would be greatly appreciated. Thanks!