LDBWS wsdl doesn't play nice with autodiscovery

130 views
Skip to first unread message

Matt Harker

unread,
Jan 5, 2016, 11:04:18 AM1/5/16
to A gathering place for the Open Rail Data community
I've been trying to access the LDBWS interface via a node.js library, node-soap (https://github.com/vpulim/node-soap), which simplifies the procedure of sending SOAP requests by parsing the WSDL, creating methods for each of the operations available, and also ensuring that the right namespaces are included in any requests.

However, it seems like the LDBWS wsdl is actually incomplete as far as namespaces goes, as it doesn't include any namespace which actually includes the AccessToken element required for authentication. While I appreciate that that namespace isn't actually required for the actual definition of the wsdl, the fact that it's not included and not referenced at all makes the autodiscovery used by node-soap (And probably other libraries) completely non-functional.

To get around this i've had to download the wsdl to a local directory and augment the definition to include a reference to the namespace defined by http://thalesgroup.com/RTTI/2010-11-01/ldb/commontypes,  which then makes the autodiscovery work.

Is it possible to update the actual wsdl hosted to include this reference?

Derek Goodwin

unread,
Jan 11, 2016, 9:33:27 AM1/11/16
to A gathering place for the Open Rail Data community
The LDBWS wsdl does include a reference, it's right at the top

<wsdl:import namespace="http://thalesgroup.com/RTTI/2013-11-28/Token/types" location="darwin_token_types_2013-11-28.wsdl"/>


ja...@famnoon.com

unread,
Feb 17, 2016, 12:00:03 PM2/17/16
to A gathering place for the Open Rail Data community
Have you had any luck with this? I'm migrating from PHP to node and its proving a nightmare!

Tom Lane

unread,
Feb 18, 2016, 4:29:44 AM2/18/16
to A gathering place for the Open Rail Data community, ja...@famnoon.com
Vaguely related note: This works fine with the Visual Studio .net wsdl parsing/generation. 
Reply all
Reply to author
Forward
0 new messages