easysoap
easysoap copied to clipboard
Procedure processCheckOut not present
I'm trying to call a method but the data that I'm getting is Procedure 'processCheckOut' not present
` var params = { "host": 'bla bla', "path": '/bla bla.php', "wsdl": '/bla bla.php?wsdl', headers: soapHeader};
const soapClient = EasySoap(params, { secure: true });
soapClient.getAllFunctions()
.then((functionArray) => { console.log(functionArray); })
.catch((err) => { throw new Error(err); });
soapClient.getMethodParamsByName('processCheckOut')
.then((methodParams) => {
console.log("METHOD PARAMS ARE \n "+JSON.stringify(methodParams)+"\n\n");
})
.catch((err) => { throw new Error(err); });
soapClient.call({
method: 'processCheckOut',
params: args
}).then((callResponse) => {
console.log("DATA IS --------- " + JSON.stringify(callResponse.data)); // response data as json
console.log("BODY IS--------- " + callResponse.body); // response body
console.log("HEADER IS--------- " + callResponse.header); //response header
}).catch((err) => { console.log("processCheckout error: " + err) });
`
getAllFunctions()
and getMethodParamsByName()
returns successfully but soapClient.call()
returns procedure not present
when logging out data console.log("DATA IS --------- " + JSON.stringify(callResponse.data));
DATA IS --------- {"Fault":{"faultcode":"SOAP-ENV:Server","faultstring":"Procedure 'processCheckOut' not present"}}