If you are using Microsoft IE 5 or later, you can use the behavior/HTML-Component "WebService" to access a Web service. The "WebService" behavior communicates with Web services over HTTP using Simple Object Access Protocol (SOAP).
To use the "WebService" behavior, you must attach it to an element using the STYLE attribute, as follows:
A complete example taken from the Microsoft Web site is as follows:
var iCallID; function init()
var xfaultcode = event.result.errorDetail.code;
var xfaultstring = event.result.errorDetail.string;
var xfaultsoap = event.result.errorDetail.raw;
Add code to output error information here alert("Error "); }
service.innerHTML= "The method returned the result: "
Enter a Value
<input type='text' id='param1'>
<button onclick='iCallID = service.servicename.callService ("ProcedureName", param1.value);'>
Call A Web Method
Dig deeper on Java Web Services
What advice do you have for someone new to Web Services?
0 ResponsesJoin the Discussion
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.