Is webservice.htc obsolete?

R

Rob Kraft

I started developing a web service following samples that made use of
webservice.htc. I have since found a way to call a web service with
javascript from a web page that is MUCH easier than using webservice.htc. Is
webservice.htc obsolete? Would webservice.htc have any advantage over this
approach?

namespace MyCompany.Services.Control
{
[WebService(Namespace = "http://www.MyCompany.com/Services/Control/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
[ScriptService]
public class FrameItemService : System.Web.Services.WebService
{
[WebMethod(EnableSession=true)]
public string HelloWorld()
{
}
}
}
 
J

John Saunders

Rob Kraft said:
I started developing a web service following samples that made use of
webservice.htc. I have since found a way to call a web service with
javascript from a web page that is MUCH easier than using webservice.htc.
Is
webservice.htc obsolete? Would webservice.htc have any advantage over
this
approach?

webservice.htc is very old. It's from the days before AJAX. It is as
obsolete as the SOAP Toolkit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top