如何调用WSDL接口方法 (only with output),在线等。。。
发布于 7 年前 作者 cnwuel 3817 次浏览 来自 问答

有一个WSDL文件, 部分如下,只含有output,怎么调用此接口呢? <wsdl:portType name=“calcP”> <wsdl:operation name=“multiplicar”> <wsdl:output message=“multiplicarResponse”/> </wsdl:operation> </wsdl:portType>

如果有input的情况下,知道怎么调用。
var soap = require('soap');
var url = 'http://xxx?wsdl';
soap.createClient(url, function(err, client) {
        client.multiplicar(args, function(err,res){
            ......
         });
});
回到顶部