Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cannot parse response" While calling method on WSDL #353

Open
aldo-kindredpest opened this issue Dec 27, 2021 · 0 comments
Open

"Cannot parse response" While calling method on WSDL #353

aldo-kindredpest opened this issue Dec 27, 2021 · 0 comments

Comments

@aldo-kindredpest
Copy link

i got error when i try to change my SOAP url to static file, previously when i use the url its work properly the url its manage by outsource, i download the result from that URL and try to connect by local file, here the code

soap.createClient(path.join(__dirname, '../wsdl/wsdl.xml'), {}, (err, client) => {
if (err) return reject(err);
client.setSecurity(new soap.BasicAuthSecurity(config().username, config().password));
const method = client.agentActivation;
console.log(method, 'method');
method(args, (err, result, envelope, soapHeader) => {
if (err) {
logger.info('error method');
logger.info(err.message);
return reject(err);
}
logger.info(result);
return resolve(result);
});
});

i got the method from client but when i call the method i got error "Cannot parse response "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant