我试图使用强肥皂包在节点js中使用wshttpbinding wcf服务。但它不起作用。请任何人帮助我完成此问题。
router.get('/ strong',function(req,res,next){ require('request')。debug = true var soap = require('strong-soap')。soap;可以使用,URL ='./wsdls/stockquote.wsdl' var url ='http://ddddddd.jj/Profile.svc?wsdl'; var options = {};变种 customRequestHeader = {customheader1:'test1'}; soap.createClient(url, 选项,功能(错误,客户端){console.log('err',err)
console.log(“ client”,client)
client.intiallizeconnection({con:“ database”}},函数(错误,结果, 信封,soapHeader){ console.log('result',result); },null,customRequestHeader)}); })