首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >节点-soap client.describe()?

节点-soap client.describe()?
EN

Stack Overflow用户
提问于 2014-06-01 08:54:56
回答 1查看 1.2K关注 0票数 2

我尝试使用本地WSDL文件来使用web服务。我用过两个WDSL。

  1. GDSQueue.wsdl
  2. GDSQueueAbstract.wsdl

第一个是GDSQueue.wsdl 导入 GDSQueueAbstract.wsdl。但是在节点soap中,当我使用client.describe()时,它显示了如下输出put:

代码语言:javascript
复制
{ GdsQueueService: 
   { GdsQueueCountServicePort: {},
     GdsQueueListServicePort: {},
     GdsQueuePlaceServicePort: {},
     GdsEnterQueueServicePort: {},
     GdsExitQueueServicePort: {},
     GdsNextOnQueueServicePort: {},
     GdsClearQueueServicePort: {},
     GdsQueueAgentListServicePort: {} } }

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

代码语言:javascript
复制
 GdsQueueService.GdsQueueCountServicePort.service(params , callback)

但是没有任何服务方法来调用这个web服务。因此,我无法理解为什么节点-soap不创建服务方法

EN

回答 1

Stack Overflow用户

发布于 2015-03-08 23:37:24

这个问题还不清楚,但是您可以验证调用的合合性,因为您应该像这样使用它

代码语言:javascript
复制
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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23978199

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档