471,325 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

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

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
Jul 21 '05 #1
1 6729
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/de...ttprequest.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

SQLReporter wrote:
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

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Tiraman | last post: by
1 post views Thread by Andy | last post: by
reply views Thread by Pictor | last post: by
3 posts views Thread by =?Utf-8?B?Y2hlbmRyaWNrcw==?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.