SoapClientPlugin
This plugin will provide a Foswiki Topic interface to SOAP::Lite calls.
It will cause the rendering of the topic to be as slow as the internet request - so its probably best to do on a local machine only.
Syntax Rules
- the service parameter specifies the WSDL interface
- call is the Soap method with parameters (will need to add quotes soon)
- format like SEARCH
- $list_element assumes the answer is an array of strings
- and $struct(name) assumes the answer is a struct (with member variable of name)
Examples
Examples using the G-Forge Soap Interface -
http://gforge.org/soap/index.php
- %SOAP{service="http://gforge.org/soap/index.php" call="getPublicProjectNames()" format=" * Group: $list_element $n"}%
%SOAP{service="http://gforge.org/soap/index.php" call="getPublicProjectNames()" format=" * Group: $list_element $n"}%
unfortuanatly, GForge has discontinued or moved this SOAP endpoint - if you find a simple reliable example please tell me
SoapClientPlugin Global Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write
%<plugin>_<setting>%
, i.e.
%INTERWIKIPLUGIN_SHORTDESCRIPTION%
- One line description, is shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = Provides a Foswiki Topic interface to SOAP::Lite calls
- Debug plugin: (See output in
data/debug.txt
)
Plugin Installation Instructions
Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where Foswiki is running.
- Download the ZIP file from the Plugin web (see below)
- install SOAP::Lite from CPAN
- Unzip
SoapClientPlugin.zip
in your foswiki installation directory. Content: File: Description: data/System/SoapClientPlugin.txt
Plugin topic data/System/SoapClientPlugin.txt,v
Plugin topic repository lib/Foswiki/Plugins/SoapClientPlugin.pm
Plugin Perl module
- use the configure script to enable
Plugin Info
Related Topics: DefaultPreferences,
SitePreferences,
Plugins
--
Foswiki:Main/SvenDowideit