找回密码
 注册
查看: 1604|回复: 0

R语言 SSOAP包 SOAPServer()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-22 21:10:56 | 显示全部楼层 |阅读模式
SOAPServer(SSOAP)
SOAPServer()所属R语言包:SSOAP

                                        Create a SOAP server object
                                         创建一个SOAP服务器对象

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

These are constructors for the basic SOAPServer class which represent the location of the web services and methods. The basic SOAPServer-class is used to identify the host, port and URL of a SOAP server. The dynamic SOAP server is represented by  the class DynamicSOAPServer-class and that contains not only the location of the SOAP server, but also information about its methods and data types.  This information is typically read from a Web Services Description Language (WSDL) file.
这些都是基本SOAPServer类的构造代表Web服务和方法的位置。基本的SOAPServer-class是用来识别主机,端口和一个SOAP服务器的URL。动态SOAP服务器是由类代表DynamicSOAPServer-class“包含不仅SOAP服务器的位置,而且其方法和数据类型的信息,。这个信息通常是从Web服务描述语言(WSDL)文件读取。

We can use the form server$method(arg1, arg2, ...) to invoke a method in both types of server.
我们可以使用的形式server$method(arg1, arg2, ...)来调用一个方法,在两种类型的服务器。


用法----------Usage----------


SOAPServer(host, url, port = NA, s = new(className))
dynamicSOAPServer(iface, obj = new("DynamicSOAPServer"))



参数----------Arguments----------

参数:host
typically, the name of the host machine, e.g. "www.omegahat.org". Alternatively, a complete URL (e.g. http://www.omegahat.org/SOAP) may be given as the value for host and the individual parts are extracted from this.  
通常情况下,主机的名称,例如"www.omegahat.org"。另外,一个完整的URL(例如http://www.omegahat.org/SOAP)可作为主机和各个部分的价值提取。


参数:url
the file/URL within the server that contains the SOAP server. If this is omitted, we attempt to find the value from the value of host.
SOAP服务器内的服务器,它包含的文件/ URL。如果省略此,我们试图找到从host值的价值。


参数:port
the port number on which the server is listening. This is typically 80, the standard HTTP port. However, one can specify  this when creating the S server object to identify a different port. This is useful when testing a server since one can use a user-level port. It is left as NA if not specified to indicate that it was not explicitly set to 80.  
服务器正在侦听的端口号。这通常是80,标准的HTTP端口。但是,可以指定当创建S服务器对象,以确定不同的端口。测试服务器时,因为可以使用一个用户级的端口,这是非常有用的。它留给NA如果没有指定,以表明它没有明确设定为80。


参数:s
the object being created and initialized. Having this as an argument allows the caller to specify the class of the desired object and supply a partially initialized value and still get the “standard” initialization for the server object. className is computed in the body of the function and this mechanism works via lazy evaluation.  
正在创建和初始化对象。有此作为一个参数允许调用者指定所需的对象类,并提供部分初始化值,仍然可以得到的“标准”服务器对象的初始化。 className计算函数体中,这个机制通过懒惰的评价工作。


参数:iface
this is an object of class SOAPClientInterface-class typically returned from a call to genSOAPClientInterface. This represents the collection of methods that the SOAP server provides.  </table>
这是一个类的对象SOAPClientInterface-class一般调用genSOAPClientInterface从返回。这意味着SOAP服务器提供的方法收集。 </ TABLE>


参数:obj
the object that will be returned from the  dymanicSOAPServer function. This is specified with a default value so that this constructor can be easily reused for derived classes. Typically, a user-level call to this function will not need to specify this.
dymanicSOAPServer函数将返回的对象。这是指定一个默认值,可以很容易派生类的重用,使这个构造。通常,一个用户级调用此函数将不需要指定。


值----------Value----------

An object of class HTTPSOAPServer, FTPSOAPServer or SOAPServer. If the host is specified with an ftp: or http: prefix, an object of class FTPSOAPServer or HTTPSOAPServer respectively is returned. Otherwise, a generic SOAPServer is created.
一个对象的类HTTPSOAPServer,FTPSOAPServer或SOAPServer。如果主机指定ftp:或http:前缀,FTPSOAPServer或HTTPSOAPServer分别返回一个类的对象的。否则,创建一个通用的SOAPServer。


注意----------Note----------

In the future, we will use a SOAPConnection class that builds on the server and maintains a connection to the server. The URL may get dropped from the server as we can use the same basic host and port combination with different URLs for different requests. Experience will give us a better handle on an appropriate interface.
在未来,我们将使用SOAPConnection级服务器上,建立和维护一个连接到服务器。从服务器的URL可能被丢弃,我们可以使用不同的要求基本相同的主机和端口组合与不同的URL。经验将使我们更好地处理一个合适的接口。

Also, we may store a server-specific, default SOAPAction value in the server.
此外,我们可能会存储在服务器的特定服务器,默认SOAPAction值。


作者(S)----------Author(s)----------


Duncan Temple Lang &lt;duncan@wald.ucdavis.edu&gt;



参考文献----------References----------

http://www.omegahat.org/SSOAP, http://www.omegahat.org/bugs.

参见----------See Also----------

.SOAP $
.SOAP$


举例----------Examples----------


server = SOAPServer("www.nanonull.com", "TimeService/TimeService.asmx")

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-1-22 18:56 , Processed in 0.024107 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表