Javascript NodeJS发送HTTPS-SOAP请求
我正在尝试使用nodejs在特定的端点发送SOAP请求 我的请求如下所示:Javascript NodeJS发送HTTPS-SOAP请求,javascript,node.js,soap,https,Javascript,Node.js,Soap,Https,我正在尝试使用nodejs在特定的端点发送SOAP请求 我的请求如下所示: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://company.com/nse/types"> <soapenv:Header/> <soapenv:Body> <typ:Login> <
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://company.com/nse/types">
<soapenv:Header/>
<soapenv:Body>
<typ:Login>
<!--You have a CHOICE of the next 2 items at this level-->
<typ:Credential userName="x" password="y"/>
</typ:Login>
</soapenv:Body>
</soapenv:Envelope>
我还有一个https端点(例如)和一个WSDL文件
有人能告诉我最好的方法吗?我正在查看,似乎找不到输入所需端点的位置。您可以将端点指定为选项的一部分:
var soap = require( 'soap' );
soap.createClient( ep.wsdl, { endpoint : ep.uri }, function( err, client ) {
...
});