473,387 Members | 1,650 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,387 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 6967
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.