473,320 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 6960
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Prasad | last post by:
Hi, I am writing a service which takes a long time to stop after the OnStop call is given by the Services Snap-in. The problem is I cannot cut down on the time that it takes to Stop. The Service...
7
by: Tiraman | last post by:
Hi , I have 3 files , middle.aspx file include the header.aspx and footer.aspx files . in each of the include files there is a function and from some reason the call to the Footer() function...
1
by: SQLReporter | last post by:
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...
1
by: Andy | last post by:
Hi, I created a sample web service and tried calling it from my VBScript. Here it is: ---------------------------------------------------------------------------- --------------- '-- Declare...
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
6
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public...
0
by: Pictor | last post by:
Hello, I'm trying to consume a web service from ASP classic. I searched a lot but i've found only a lot o variant way to do this and noone is working or fit to my question. I have a web...
3
by: =?Utf-8?B?Y2hlbmRyaWNrcw==?= | last post by:
I have a C# winforms application that makes periodic web service calls in background thread to my web service server. These calls work fine almost all the time but on rare occassions the web...
2
by: jojoba | last post by:
Hello to all! I have a fairly simple webservice running in asp.net ajax under c# (vs 2008). I built the service and it runs just dandy when i test it by itself in visual studio. However, to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.