以下是我写的Client Library,希望对大家有所帮助。
ServiceMethodRequest Class
A component designed for invoking Web Services method and retrieving the result.
Syntax
Javascript
Declarative
Script components: required
ServiceMethodRequest Class
A component designed for invoking Web Services method and retrieving the result.
Syntax
Javascript
new Sys.Net.ServiceMethodRequest();
Declarative
<serviceMethod
aborted="event handler"
appUrl="the url of the web application"
completed="event handler"
dataContext="source for data binding operations"
error="event handler"
id="identifier for looking up the component by name"
methodName="the name of the web services method"
priority="the priority of the request"
propertyChanged="event handler"
timeout="event handler"
timeoutInterval="the time to wait before failing the request"
url="the url of the web services"
>
<aborted>
<!-- actions -->
</aborted>
< bindings >
<!-- bindings -->
</ bindings >
<completed>
<!-- actions -->
</completed>
<error>
<!-- actions -->
</error>
<parameters prop1="value1" prop2="value2" ... />
< propertyChanged >
<!-- actions -->
</ propertyChanged >
<timeout>
<!-- actions -->
</timeout>
</ serviceMethod >
aborted="event handler"
appUrl="the url of the web application"
completed="event handler"
dataContext="source for data binding operations"
error="event handler"
id="identifier for looking up the component by name"
methodName="the name of the web services method"
priority="the priority of the request"
propertyChanged="event handler"
timeout="event handler"
timeoutInterval="the time to wait before failing the request"
url="the url of the web services"
>
<aborted>
<!-- actions -->
</aborted>
< bindings >
<!-- bindings -->
</ bindings >
<completed>
<!-- actions -->
</completed>
<error>
<!-- actions -->
</error>
<parameters prop1="value1" prop2="value2" ... />
< propertyChanged >
<!-- actions -->
</ propertyChanged >
<timeout>
<!-- actions -->
</timeout>
</ serviceMethod >
Script components: required
Inherits: Sys.Component
本文转自 jeffz 51CTO博客,原文链接:http://blog.51cto.com/jeffz/60810,如需转载请自行联系原作者