Php Soap Client equivalent in NodeJS

孤人 提交于 2019-12-10 18:27:56

问题


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>

来源:https://stackoverflow.com/questions/39943122/php-soap-client-equivalent-in-nodejs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!