steps to call a web service method from vbscript...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am trying to access a webservice method from a vbscript.
I have a .cs file generated for my webservice.
I am not sure how to proceed from this point onwards....
I have tried generating .dll from .cs file using csc /t:library....
But I don't actuallly know how to call the method from vbscript.
Can "CreateObject" be used in this situation...how..??
I can't figure out steps to call a web service method from vbscript...
Please help ......

Thanks in advance
 
You would have to modify the .cs file to expose the generated proxy
class via COM. Try researching COM Interop with .NET - specifically
creating COM Callable Wrappers.

However, it would probably be a lot easier to skip the .NET code
entirely. You can make web requests from VBScript using the
MSXML.XMLHTTP object.
http://msdn.microsoft.com/library/d...n-us/xmlsdk/html/xmmthopenixmlhttprequest.asp
Search the net for more info its use.

Once you know how to do a POST, you should be able to manually create a
SOAP message with the required input for the web service, and then parse
the XML response with MSXML. No need to use .NET at all.

Joshua Flanagan
http://flimflan.com/blog
 
Back
Top