我试图从节点js调用soap web服务。但是服务器没有向我显示任何输出成功或错误。我正在使用http服务器
我的输出始终是:
[2016年12月15日15:12:16 GMT + 0530(印度标准时间)]“GET /views/bookNGo.html?empId=EMP2&empName=ABCD&mobile=3312&alternateMobile=678&address=hjhjh& ;地标= hjgjhgj&安培; DEPTID = hjhj&安培;专案编号= hjgh&安培;应用 rovingManager = kjhkj& pickupPoint = jkhjkh& dropPoint = jkhjk“”Mozilla / 5.0(Windows NT 6.1; Win64; x64)AppleWebKit / 537.36(KHTML,与Gecko一样)Chrome / 54.0.2840.99 Safari / 537.36“
var soap = require('soap');
console.log('One');
var url = 'https://ap2.salesforce.com/services/wsdl/class/InsertEmployee?WSDL';
var args = {"employeeId": "EMP2","employeeName": "Chandra","phoneNumber":"12345","alternatePhoneNumber": "98765","address": "Boduppal", "landMark": "Temple","departmentID": "001","projectID": "001","approvingManager": "Prashanth","pikupPoint": "Uppal","dropPoint":"Hitec"};
soap.createClient(url, function(err, client) {
client.createEmployee(args, function(err, result) {
console.log("Webservice called");
console.log(result);
});
});
我已经厌倦了在https://runkit.com/npm/soap中运行代码并且它给我一个错误,说“TypeError:无法读取未定义的属性'InsertEmployeeService'”。