readme
来自「GForge 3.0 协作开发平台 支持CVS, mailing lists, 」· 代码 · 共 91 行
TXT
91 行
This file contains instructions for setting and and configuring the GForge SOAP server.Server Setup1. Extract the tar file into the root GForge directory. For example, ifyour root diectory is /usr/share/gforge/www, then cd /usr/lib/gforge/www ; tar xvf {tarfile}should work. This will create a soap directory underneath the root directoryand there should be 5 files plus one sub-directory:README - this README fileSoapAPI.php - the PHP file that defines the SOAP functionsnusoap.php - the SOAP implementation provided by NuSOAP people (0.65)pre_soap.php - The includes from GForge directory for access to GForge system I couldn't use (and didn't want to use) the pre.php fileSoapAPI.wsdl - There is a bug in the nusoap WSDL generator so this file was hand created for consumption by WSDL enabled tools (like Visual Studio .NET)api - The directory containing the TCL scripts. Currently one very short but functional TCL script is provided to get you startedapi/apiInit.tcl - The TCL scriptOnce these are set up, you can use the WSDL file to connect and test two of the SOAP functions. One function is a simple string echo engine that echoes back whatever you send it plus some extra text. The other function defined in the WSDL file gives access to the User database in GForge. You pass inan array of strings to the 'user' function and it will return an array ofstrings back for each user in the input array. For example, passing inthe array 'bob','ted','mary' will return the user objects for these 3 users.If you pass in an empty list, you will get back all users.Command Line Setup-----------------The command line is based on TCL so you will need to install several TCL components beforehand.TclX8.3 apt-get tclx8.3TclDOM 2.0 http://sourceforge.net/projects/showfiles.php?group_id=131&release_id=127168TclLib 1.0 <--------* Must be 1.0 Do not get higher versions !!! http://prdownloads.sourceforge.net/tcllib/tcllib-1.0.tar.gz?downloadTclSOAP http://sourceforge.net/projects/showfiles.php?group_id=25970&release_id=40865Once these are installled properly, you should launch TCL from the shell.At the 'tcl>' prompt, source in the TCL script withtcl> source apiInit.tcl(the 'tcl>' prompt is shown for clarity. You can enter full path to the script file if you are not in the same directory as the script filewhen you started the TCL interpreter.The TCL script provides 3 functions, ---------------hello {arg} Sends a SOAP 'hello' action to the soap serverEXAMPLES hello WORLD---------------user get {user-list} sends a SOAP 'user' request to the SOAP server with a function code of 'get' followed by a list os unix_user_names to fetchEXAMPLES user get [list bob mary ted] # returns up to three users user get [list ] # retruns all users---------------group get {group-list} sends a SOAP 'group' request to the SOAP server with a function code of 'get' followed by a list of group_names to fetchEXAMPLES group get [list stats siteadmin] group get [list all](NOTE that the group function requires an arg list, cannot be empty list)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?