How to call WCF service from VBScript or VBA

Posted on 2014-08-15
Last Modified: 2016-02-26
I am trying to find out how I can call a WCF service that runs with a net tcp binding using VBScript.
Our ERP system comes with an API we access through the WCF service. If the service is set to use http binding then it is a simple matter of using

Set objhttp = CreateObject("Msxml2.ServerXMLHTTP") "GET", "http://localhost/WCFService/REST/Logon?"& "Operator=ADMIN",False
and this works fine

But the WCF needs to run with net tcp binding for a variety of reasons and I can't work out how to call it.
The service does expose a REST address so I was hoping to use SOAP but the syntax and technique elude me

Any help greatly received
Question by:ieg
    LVL 32

    Expert Comment

    When it's only exposing  TCP/IP endpoints without using HTTP(S), then it's a hard task to query the service. But you said that it is a REST web service. This means that it must be reached be HTTP(S). So i'm a little bit confuesed. What's correct?

    Author Comment

    Thanks for helping.
    The url used in a test tool that comes with the WCF service uses this as the address


    Does this help? If not then I can contact the authors and ask them
    LVL 32

    Accepted Solution

    A RESTful web service is based on the use of the HTTP protocol. So you should conntact the authors.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
    This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now