I have some problems to moment invoke soap operations in specific WSDL using nodejs, actually use package soap version 0.5.0, I tested with some wsdls and working properly, but with this wsdl in specific cannot call to exposed services . Do you have had similar problem ?
This is part of client object in javascript before begin invoke operation :
{ wsdl:
{ uri: 'http://dummyhost:8090/Dummy/Service?wsdl',
callback: [Function],
options: { attributesKey: 'attributes' },
definitions:
{ ignoredNamespaces: undefined,
xmlns: [Object],
'$targetNamespace': 'http://ws.dummy.com/',
'$name': 'SwitchService',
messages: {},
portTypes: {},
bindings: [Object],
services: [Object],
schemas: [Object],
descriptions: [Object] },
xml: '<?xml version="1.0" encoding="utf-8"?>.......... more wsdl content',
services: { SwitchService: [Object] },
xmlnsInEnvelope: ' xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:tns="http://ws.dummy.com/"' },
SwitchService: { SwitchPort: {} } }
In this case object dont have operations for do calls to services .
This is part of client object before a called succesfull using other WSDL :
{ wsdl:
{ uri: 'http://www.webservicex.net/Statistics.asmx?WSDL',
callback: [Function],
options: { attributesKey: 'attributes' },
definitions:
{ ignoredNamespaces: undefined,
xmlns: [Object],
'$targetNamespace': 'http://www.webserviceX.NET',
messages: [Object],
portTypes: [Object],
bindings: [Object],
services: [Object],
schemas: [Object],
descriptions: [Object] },
xml:'<?xml version="1.0" encoding="utf-8"?>.......... more wsdl content',
services: { Statistics: [Object] },
xmlnsInEnvelope: ' xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:tns="http://www.webserviceX.NET"' },
GetStatistics: [Function],
Statistics:
{ StatisticsSoap: { GetStatistics: [Function] },
StatisticsSoap12: { GetStatistics: [Function] } } }
In this case operation GetStatistics is service to consume .