|
XPlanner SOAP InterfaceNew for 0.6.2: Methods were added to the SOAP interface to support dynamic attributes associated with most XPlanner domain objects. This can be useful for integrating XPlanner with external systems (e.g. metadata for external data or systems). Generate and view the WSDL for more details. Michael G Schwern has developed a Perl module for accessing XPlanner data. See CPAN for more details. Overview The design objectives for the XPlanner SOAP interface are to provide a language-independent way of efficiently accessing an XPlanner web application. The SOAP interface in XPlanner creates new opportunities for extending XPlanner functionality and integrating it with external functionality. Here are some examples of things you can do with the SOAP services:
SOAP Service Endpoints There are three services defined for accessing XPlanner using SOAP. The can be accessed at the following URLs (replace the portions of the URL specific to your installation!). The access point is http://yourhost.com:port/xplanner/soap/XPlanner. These are authenticated services so you must use a user ID and password to access them. The same authentication you use for XPlanner web access will work for these services. Previous versions of XPlanner provided three endpoints (viewer, editor, admin) that provided different operations. Now, all operations are available through one service and XPlanner does server-side authorization on the calls. You can download a complete WSDL from http://yourhost.com:port/xplanner/soap/XPlanner?wsdl
Service API Specification The XPlanner WSDL-based service definition file (XPlanner.wsdl) can be generated using the generate.soap.wsdl Ant target. It will be generated in the soap-stubs directory. This specification can be used to write or generate client-side proxies for the SOAP services. Tips for writing clients Java - See the Apache Axis toolkit. Client-side proxies can be generated from the WSDL file. Perl - See the SOAP::Lite library. There is a sample Perl script in the xplanner/doc/soap-examples/perl directory. Be sure to look at this script since some special setup is required to use SOAP::Lite. PHP - See NuSOAP. There is a sample Perl script in the xplanner/doc/soap-examples/php directory. I've also included a patched copy of the NuSOAP library because of a bug that existed at the time the example was written. However, the bug has been reported so I'd suggested trying the latest official version of NuSOAP. |