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

  • SEARCH
  • Home
  • 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 571755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:32:26+00:00 2026-05-13T13:32:26+00:00

Recently a colleague had to call a .NET 2.0 web service from script. We

  • 0

Recently a colleague had to call a .NET 2.0 web service from script. We noticed that we’d have to put the [ScriptService] attribute, either via AJAX extensions or upgrading to 3.5.

That’s all I’ve been able to find out – no-one explains what it’s doing under the hood!

Can anyone enlighten me?

Thanks
Duncan

  • 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-13T13:32:26+00:00Added an answer on May 13, 2026 at 1:32 pm

    Strictly speaking, you don’t need to do anything to a web service in order to make it callable from script.

    See here:
    How to call web service using vbscript (synchronous)?

    A web service is just a system that is addressible via remote protocols, usually web-based protocols. Often that means HTTP. A simple request can just be performed via an HTTP GET on a particular URL – the segments in the URL path or the query string make up the “parameters” to the web service request.

    A client might send an HTTP GET to

    http://server/appPath/p1/p2/p3
    

    And the application listening there would be responsible for unpacking that URL, maybe mapping the p1, p2, p3 into query parameters, and then determining how to respond to it.

    For more complex requests, the transaction might be HTTP POST, and the format of the payload is either XML, JSON, or something else that your application specifies.

    In this case the URL may be like so:

    http://server/appPath/resource1
    

    and the POST’d payload, if using JSON, might be:

    {"Age":35,"FirstName":"Peyton","LastName":"Manning"} 
    

    if using XML, it might be:

    <person>
      <Age>35</Age>
      <FirstName>Peyton</FirstName>
      <LastName>Manning</LastName>
    </person>
    

    You can form a request that complies to those constraints in any programming language, including script like Javascript.

    If you are using SOAP, then that XML document needs to be wrapped in a SOAP envelope.
    See Calling WCF service by VBScript for an example (VBScript, but easily translatable to Javascript).

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

Sidebar

Related Questions

I have recently had some input from a colleague regarding committing in a stored
I have recently had a few issues when checking out a colleagues ASP.NET project,
Recently I had to fix a bug that was reported from the field. While
I have recently moved a project from SVN to git, and my colleague only
I inherited a piece of code from a recently-retired colleague that gets the total
I have recently put together a JWS application which gets it's argument from a
I recently had a discussion with a colleague about serialization of byte data over
I recently saw some code from a college teacher where he had something like
I was recently advocating to a colleague that we replace some C# code that
I recently had a debate with a colleague who is not a fan of

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.