I have tried to consume a web service by using local WSDL file. There are two WDSLs that I have used.
- GDSQueue.wsdl
- GDSQueueAbstract.wsdl
The first one, GDSQueue.wsdl imports GDSQueueAbstract.wsdl. But in node-soap, when I use client.describe()
, it shows following out put:
{ GdsQueueService:
{ GdsQueueCountServicePort: {},
GdsQueueListServicePort: {},
GdsQueuePlaceServicePort: {},
GdsEnterQueueServicePort: {},
GdsExitQueueServicePort: {},
GdsNextOnQueueServicePort: {},
GdsClearQueueServicePort: {},
GdsQueueAgentListServicePort: {} } }
Now to call a service, I should use
GdsQueueService.GdsQueueCountServicePort.service(params , callback)
but there is not any service method for calling this web service. As a result, I cant understand Why node-soap does not create service method.
The question is unclear, however you can verify the syntaxis of the call, as you should use it like
);
there is no reason to add
.service
at the end of your call