mbt masai
 
Welcome !
         

                                
After experiencing a lot of down time, We decided to move this site to CrystalTech.com. CrystalTech.com is powered by only the finest Windows servers providing the best performance, reliability, and value anywhere.

 Calling ASP.Net Web Service from VB script

Author Message
arulmanoj78

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 2/4/2009
  • Status: offline
Calling ASP.Net Web Service from VB script Wednesday, February 04, 2009 8:39 PM (permalink)
0
Hi,
 
I have a asp.net web service installed in the server as DLL.
I am able to add a web reference for this web service in VS 2005.
 
But i want call this web service from vb script. Also i don't have the .asmx file in the installtion path.
 
Please it's very urgent.
Regards,

Arul Manoj
#1
    TNO

    • Total Posts : 2091
    • Scores: 34
    • Reward points : 0
    • Joined: 12/18/2004
    • Location: Earth
    • Status: offline
    RE: Calling ASP.Net Web Service from VB script Tuesday, March 17, 2009 5:40 AM (permalink)
    0
    You should be able to use XMLHTTPRequest to call the website with a GET/POST parameter just like you would do from an AJAX application
    To iterate is human, to recurse divine. -- L. Peter Deutsch
    #2
      abomb

      • Total Posts : 1
      • Scores: 0
      • Reward points : 0
      • Joined: 6/9/2009
      • Status: offline
      RE: Calling ASP.Net Web Service from VB script Wednesday, June 10, 2009 6:41 AM (permalink)
      0
      Hi!
      I'm extremely new to VBScript.
      I have been able to call a webservice and return a string (sort of) using the script below but eventually
      I will need to pass some xml to a webservice that will manipulate it and then add it to our database.
      Do I need to use an XML object? SOAP?

      Can someone please point me in the right direction? Thanks

      Dim objHTTP, result
      Set objHTTP = CreateObject("Microsoft.XMLHTTP")
      objHTTP.open "POST","http://localhost:4762/Service1.asmx/HelloWorld", False
      objHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
      objHTTP.Send()

      result = objHTTP.responseText

      'Return received XML
      MsgBox result
      #3
        TNO

        • Total Posts : 2091
        • Scores: 34
        • Reward points : 0
        • Joined: 12/18/2004
        • Location: Earth
        • Status: offline
        RE: Calling ASP.Net Web Service from VB script Wednesday, June 10, 2009 9:23 AM (permalink)
        0
        This may help:

        http://radio.javaranch.com/pascarello/2005/07/20/1121878017742.html

        The client example is in JavaScript, but its easy enough to translate to VBS if that is the language requirement
        To iterate is human, to recurse divine. -- L. Peter Deutsch
        #4

          Online Bookmarks Sharing: Share/Bookmark

          Jump to:

          Current active users

          There are 0 members and 1 guests.

          Icon Legend and Permission

          • New Messages
          • No New Messages
          • Hot Topic w/ New Messages
          • Hot Topic w/o New Messages
          • Locked w/ New Messages
          • Locked w/o New Messages
          • Read Message
          • Post New Thread
          • Reply to message
          • Post New Poll
          • Submit Vote
          • Post reward post
          • Delete my own posts
          • Delete my own threads
          • Rate post

          2000-2012 ASPPlayground.NET Forum Version 3.8
          mbt shoes www.wileywilson.com