Lostinet works: jscriptsoapclientv0.10beta easily calls WebService

zhaozj2021-02-17  53

Lostinet works: jscriptsoapclientv0.10beta easily calls WebService

Lostinet master http://lostinet.d2g.com/lostinet-publish/jscriptsoapclient/

After making a webservice, is it very hated that the client doesn't have SOAPTOOLKIT? ? ? Use this JScript implementation version to easily implement the call of WebService

/ * JScriptSoapClient For .Net 0.10 Beta Author: Lost network [Lostinet] offers an easy solution for your call WebService only supports string, int, float, double, boolean transmission

How to use: VAR WSDL = New JscriptsoapClient ("http://host.com/webservice.asmx?wsdl"); var ws = wsdl.createwebservice ("WebServiceName"); var res = ws.methodname (arg1, arg2); Alert (res.length); Alert (res.Item (0) res.Item (1) .value res.Item (2) .type); * /

-------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- ---------------------------------------------- Description --- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------

LostinetJscriptsoapClient V0.10 Beta Description Document Copyright @ 2002 http://www.lostinet.com (lostinet), All Right Reserved.

[1. Introduction] [2. Compatibility] [3. Use example] [4. Object model reference] [5.WebService analysis process] [6.WebMethod call process]

1. Introduction JScriptsoapClient (hereinafter, JSSC) is a client tool for SOAP implemented with JScript. It provides you with a simple and effective scripting program to access WebService (WebService for Microsoft.net). In this release, JSSC provides basic access methods, and support for simple data transfer types. JSSC supports input of multiple parameters and returns of multiple parameters. JSSC's design goal is to try to make SOAP [WebMethod] is simulated as a member function of an object of the client.

[Back to top]

2. Compatibility server side:

JSSC's writing process is done in accordance with the * .asmx file in Microsoft.net WebService. In the beta version, it cannot be guaranteed to have a complete support for .NET WebService. In the official version released later, it is not guaranteed to have sufficient support for non-.NET WebService.

JSSC V0.10 Beta only supports the binding of SOAPHTTP http://schemas.xmlsoap.org/soap/http. Only supported data types: String, int, float, double, boolean.

At the client:

JSSC is designed for MicrosoF Internet Explorer. Of course, the official version launched later can be used in scripting environments such as WSH. But JSSC is still designed to be implemented for Microsoft Internet Explorer. JSSC requires support for Microsoft.xmldom and Microsoft.xmlHTTP (there are versions after Windows 98).

Asynchronous calls:

JSSC V0.10 Beta does not support asynchronous calls. But the later version will provide this feature.

[Back to top]

3. A simple example of using an example code to write: The following example tells you that there is a strong flexibility in calling WebMethod with JSSC.