How can I access an ASP.Net 2.0 web service using VB Script?

Posted by Steve Hiner on Stack Overflow See other posts from Stack Overflow or by Steve Hiner
Published on 2010-03-24T05:09:53Z Indexed on 2010/03/24 5:13 UTC
Read the original article Hit count: 403

Filed under:
|
|
|
|

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 but it gives me an error.

Dim SOAPClient, Response
Set SOAPClient = createobject("MSSOAP.SOAPClient")
SOAPClient.mssoapinit("https://www.domain.com/Folder/Service.asmx?WSDL")

On that last line I get an error message:

WSDLReader: No valid schema specification was found. This version of the SOAP Toolkit only supports 1999 and 2000 XSD schema specifications

After getting that message I installed the SOAP 3.0 SDK to make sure I have the most recent version (since it's now deprecated for .Net) but I still get the same error.

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 it 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. Is there something I can change in the web service to make it schema compatible with the SOAP toolkit?

© Stack Overflow or respective owner

Related posts about vbscript

Related posts about web-services