I'm trying to find a way to access a web service from a VB Script .vbs file running under wscript.exe. I pulled some sample code from Microsoft and modified it to use the SOAP 3.0 toolkit but it gives me an error.
Dim SOAPClient
Set SOAPClient = createobject("MSSOAP.SOAPClient30")
SOAPClient.mssoapinit("https://www.domain.com/Folder/Service.asmx?WSDL")
On that last line I get an error message:
WSDLReader: Could not find '/definitions' inside the default WSDL namespace HRESULT=0x80004005: Unspecified error - WSDLReader:Loading of the WSDL file failed HRESULT=0x80004005: Unspecified error - Client:One of the parameters supplied is invalid. HRESULT=0x80070057: The parameter is incorrect.
The reason it needs to be in VB Script is because it's going to be used in a program over which I have no control and that program only supports VB Script. Is there a way to get VB Script to be able to parse a newer WSDL file?
I do have the source code for the web service though I didn't write it myself. Is there something I can change in the web service to make it schema compatible with the SOAP toolkit 3.0? I can use this web service from a .Net app with no trouble at all.