我尝试使用本地WSDL文件来使用web服务。我用过两个WDSL。
第一个是GDSQueue.wsdl 导入 GDSQueueAbstract.wsdl。但是在节点soap中,当我使用client.describe()时,它显示了如下输出put:
{ GdsQueueService:
{ GdsQueueCountServicePort: {},
GdsQueueListServicePort: {},
GdsQueuePlaceServicePort: {},
GdsEnterQueueServicePort: {},
GdsExitQueueServicePort: {},
GdsNextOnQueueServicePort: {},
GdsClearQueueServicePort: {},
GdsQueueAgentListServicePort: {} } }现在要调用服务,我应该使用
GdsQueueService.GdsQueueCountServicePort.service(params , callback)但是没有任何服务方法来调用这个web服务。因此,我无法理解为什么节点-soap不创建服务方法。
发布于 2015-03-08 23:37:24
这个问题还不清楚,但是您可以验证调用的合合性,因为您应该像这样使用它
soap.createClient(urlOfTheWebService, function (err, client)
{
client.GdsQueueService.GdsQueueCountServicePort(parameter,function(err, result)
{
//do something with the result or the error received
console.log(result);
});
});
没有理由在呼叫结束时添加.service
https://stackoverflow.com/questions/23978199
复制相似问题