Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7599053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:33:52+00:00 2026-05-30T22:33:52+00:00

for a project we need to call some webservices from vbscript. This is doable,

  • 0

for a project we need to call some webservices from vbscript. This is doable, but it requires building the entire XML fragment by hand. I’m spoiled by .NET so I want to do it better.

There is the option of building a COM component and calling that from vbscript, but unfortunately that also requires registering the COM component on the client, an option we don’t have.

Another thing I thought of is building a console application which handles the webservice calls and exceptions and things. Problem here is that I need to return a string to the vbcode, where a consoleapp can only return an exit code and nothing more (as far as I know). Since it’s a shared scenario, I can’t write to a textfile either since that will cause problems in multiuser scenario’s.

So I wondered if there are any options I missed and should consider? Or in the other case: what option would you guys pick and why?

Edit: worth mentioning; the webservice is mine and so is the server on which it runs. It will be secured with SSL and authorization to make sure no one other than our clients can use it. I set it up as a WCF service, but it’s to be constructed so I can still change that (either the service type or the bindingtype).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:33:54+00:00Added an answer on May 30, 2026 at 10:33 pm

    The answer would really depend on your exact scenario. For example if you have control over the web service you could expose a netTcpBinding endpoint and then consume it directly from vbscript.

    Here’s a nice article which shows how to achieve this step by step. Basically your client code might look like that:

    Dim addr
    addr = "service:mexAddress=""net.tcp://localhost:7891/Test/WcfService1/Service1/Mex"","
    addr = addr + "address=""net.tcp://localhost:7891/Test/WcfService1/Service1/"","
    addr = addr + "contract=""IWcfService1"", contractNamespace=""http://tempuri.org/"","
    addr = addr + "binding=""NetTcpBinding_IWcfService1"", bindingNamespace=""http://tempuri.org/"""
    
    Dim service1
    Set service1 = GetObject(addr)
    wscript.echo service1.GetData(123)
    

    The WCF service could either be hosted in WAS in IIS 7.0+ which allows to use netTcpBinding or be self hosted as a Windows Service for example.

    Another possibility if you have control over the service is to expose it as a REST which is easier to consume. You could opt for JSON and XML which might still require parsing on the client but at least it will make things cleaner.

    And if you are tied to SOAP then the recommended approach is to use the MSXML2.ServerXMLHTTP.6.0 as shown in this answer and build the envelopes manually.

    The MSSOAP.soapClient control that shipped with Windows XP is now obsolete even if it allowed to achieve exactly what you were looking for with a SOAP service.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project and I need to use some webservices, such as
The Junits I have in my project need to load property files from the
For some part of my project I need a process-local scheduling system that will
I've been doing .NET and C# programming for quite some time, but this is
I am working on a java project and I need to pull some values
I have a lot of methods (in this case, from web services, but maybe
I need to call function on timer (lets say onTickTack() function) and reload some
I have a project which will need to have some Java layer. I am
I use inline assembly massively in a project where I need to call functions
In my asp.net project I need to print a page with some dynamic content.I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.