[Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 895
  • Last Modified:

How to call WCF service from VBScript or VBA

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")
objhttp.open "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
  • 2
1 Solution
ste5anSenior DeveloperCommented:
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?
iegAuthor Commented:
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
ste5anSenior DeveloperCommented:
A RESTful web service is based on the use of the HTTP protocol. So you should conntact the authors.

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now