Node-soap client.describe()?

我试图通过使用本地WSDL文件来使用Web服务。 我已经使用了两个WDSL

  1. GDSQueue.wsdl
  2. GDSQueueAbstract.wsdl

第一个, GDSQueue.wsdl 导入 GDSQueueAbstract.wsdl 。 但在node-soap中,当我使用client.describe() ,它显示如下输出:

 { GdsQueueService: { GdsQueueCountServicePort: {}, GdsQueueListServicePort: {}, GdsQueuePlaceServicePort: {}, GdsEnterQueueServicePort: {}, GdsExitQueueServicePort: {}, GdsNextOnQueueServicePort: {}, GdsClearQueueServicePort: {}, GdsQueueAgentListServicePort: {} } } 

现在来调用服务,我应该使用

  GdsQueueService.GdsQueueCountServicePort.service(params , callback) 

但是没有任何调用这个Web服务的服务方法 。 因此,我不明白为什么node-soap不会创build服务方法

问题不清楚,但是你可以validation调用的语法,就像你应该使用它

 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