Calling a Webservice from VBScript or ASP

Also Check Out: My latest venture. http://loqly.me – a way for you to ask questions and get answers about local businesses around you. iTunes link: http://bit.ly/e5u4jv (only available in US for now)

With so much push towards SOA architectures, you might have lot of your common code encapsulated in Webservices. Calling a webservice from .Net is a piece of cake. But how about calling a webservice from ASP or VBscript ?? That sounds like a practical requirement to me.

Well the two solutions I can suggest are :

1. Use SOAP toolkit – You will have to install the SOAP toolkit on your system

input.JPGusingsoaphtml.txt (Right click –> save target –> and then open in Notepad)
2. Use XMLHTTP – Real simple and you don’t have to install anything on your machine.

input.JPGusingxmlhttphtml.txt (Right click –> save target –> and then open in Notepad)

Advertisements

6 thoughts on “Calling a Webservice from VBScript or ASP

  1. http://techrepublic.com.com/html/tr/sidebars/1050036-1.html
    ‘ call a web service from windows script

    Const HOST = “http://localhost/stuff/ws/”
    Const URL = “servicename.asmx”

    ‘ Create the HTTP object
    Set xmlhttp = CreateObject(“Microsoft.XMLHTTP”)
    xmlhttp.open “POST”, _
    HOST & URL & “/escalate” , _
    false

    ‘Set the Content-Type header to the specified value
    xmlhttp.setRequestHeader “Content-Type”, _
    “application/x-www-form-urlencoded”

    ‘ Send the request synchronously
    xmlhttp.send

    MsgBox xmlhttp.responseText

    ‘Msgbox HOST

  2. Yoս arᥱ so cool! I don’t suppose ӏ’ve trսly гead
    thгough a single thing like thiѕ before.
    So ɡood to discover ѕomeone with unique thoᥙghts on this issue.
    Really.. many thanks fⲟr starting this up. Tɦis web site
    is something tһat is required on tһe internet, someone with a littlе originality!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s