补充部分官方文档里没有的Client Library以及代码提示Schema更新(三)

Atlas WebServices 访问详解
本文详细介绍了如何使用<serviceMethod/>组件调用Web服务,并提供了客户端库的示例代码,包括必要的XML Schema文件下载链接,以便于在Visual Studio 2005中实现代码提示功能。
  配合《深入Atlas系列:Web Sevices Access in Atlas(4) - 特别的访问方式》,补充了对于<serviceMethod />的提示Schema。

点击这里下载,所有的下载链接均已更新。使用方式可以见我前一篇文章《为VS.NET 2005增加Atlas Scripts的代码提示功能》,那里的Schema下载也以更新。

以下是我写的Client Library,希望对大家有所帮助。

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 >

Script components:  required

Inherits:  Sys.Component


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值