Php Soap Client equivalent in NodeJS

2019-07-07 03:51发布

问题:

I am trying to replicate PHP Soap Client in NodeJS.

In PHP:

$result = $client->__SoapCall('PAYMENT_METHOD', array($params));

This is working fine

When I use node-soap and do the following in NodeJS

client.PAYMENT_METHOD([params], function(err, result) { 
  console.log(err); 
},{},header);

I get this error:

<faultstring>Procedure 'PAYMENT_METHOD' not present</faultstring>