SOAP::Lite for Perl

SOAP::Lite for Perl is a collection of Perl modules which provides a simple and lightweight interface to the Simple Object Access Protocol (SOAP, also known as Service Oriented Access Protocol) both on client and server side.

Documentation

  • Support
  • Mailing Lists
  • Installation
  • SOAP cookbook
  • Quick Start Guide with SOAP and SOAP::Lite
  • man pages

Mailing Lists

  • Developers
  • Announcements
  • Users

Project Links

  • Bugs
  • SF.net Project Page
  • CVS

Recommended Books

  • Randy J. Ray: Programming Web Services with Perl

    Randy J. Ray: Programming Web Services with Perl
    An excellent introduction to Web services, and to SOAP, XML-RPC and more. The reference in the back is an indespensible resource.

Donate


Mailing Lists

The following mailing lists relate to the SOAP::Lite Perl Module project.

  • Announcements list - This list is a low volume mailing that only SOAP::Lite project leads can post to. Subscribers of this list will receive announcements about the SOAP::Lite project, such as releases, recently discovered bygs and vulnerabilities, etc.
    (go to Subscribe/Unsubscribe/Preferences)
  • User Support and Discussion - This list is for those seeking support (and wishing to provide support) for the SOAP::Lite Perl Module.
    (go to Subscribe/Unsubscribe/Preferences)
  • Development mailing list - This list is for those contributing to and those wishing to follow the continued development of the SOAP::Lite code base.
    (go to Subscribe/Unsubscribe/Preferences)

June 01, 2003 in Documentation | Permalink | Comments (5)

Installation Instructions

Unix Users

To install, download the latest version of SOAP::Lite and follow the standard Perl module installation procedures by entering the very familiar command sequence:

perl Makefile.PL
make
make test
make install
       

If you have CPAN.pm module installed and you are connected to the Internet, then run the following sequence of commands:

perl -MCPAN -e shell
> install SOAP::Lite

Or even:

perl -MCPAN -e 'install SOAP::Lite'

Windows Users

Windows users should use 'nmake' instead of make. For example:

perl Makefile.PL
nmake
nmake test
nmake install

Makefile.PL Command Line Options and Usage

Usage: perl Makefile.PL 


Possible options are:

  --noprompt            Disable interactive dialog
  --alltests            Perform extra testing
  --help, -?            Display this help text

  [Do not] install prerequisites for appropriate module:

  --[no]install-SOAP-Lite                    --[no]Lite
  --[no]install-SOAP-Transport-HTTPS-Client  --[no]HTTPS-Client
  --[no]install-SOAP-Transport-MAILTO-Client --[no]MAILTO-Client
  --[no]install-SOAP-Transport-FTP-Client    --[no]FTP-Client
  --[no]install-SOAP-Transport-HTTP-Daemon   --[no]HTTP-Daemon
  --[no]install-SOAP-Transport-HTTP-Apache   --[no]HTTP-Apache
  --[no]install-SOAP-Transport-HTTP-FCGI     --[no]HTTP-FCGI
  --[no]install-SOAP-Transport-POP3-Server   --[no]POP3-Server
  --[no]install-SOAP-Transport-IO-Server     --[no]IO-Server
  --[no]install-SOAP-Transport-MQ            --[no]MQ
  --[no]install-SOAP-Transport-JABBER        --[no]JABBER
  --[no]install-SOAP-MIMEParser              --[no]MIMEParser
  --[no]install-SOAP-Transport-TCP           --[no]TCP
  --[no]install-SOAP-Transport-HTTP          --[no]HTTP

Use perl Makefile.PL --noprompt to disable interactive configuration. Follow these instructions to install SOAP::Lite on your hosting account.

June 01, 2003 in Documentation | Permalink | Comments (21)

Composing messages with raw XML...

I was faced with the dilemna of having an XML document that I had scraped from a web page that I wanted to encode into a SOAP Envelope, but I couldn't figure out how to do it, so I asked the SOAP::Lite mailing list (a long time ago) and got my answer. And since several others (including this one, and this one) have asked the same question. Since the question is so popular - here is how you do it...

Continue reading "Composing messages with raw XML..." »

May 20, 2003 in Composition | Permalink | Comments (2)

How to access attributes in a response

This message send to the SOAP::Lite Message Board asks a question not easily (relatively) determined from the reference in the back of Programming Web Services with Perl, "How to you access an attribute found in a response?"

Continue reading "How to access attributes in a response" »

May 20, 2003 in Parsing | Permalink | Comments (3)

Override the root element of the response

Last week I showed how to override the root element of a request, but did not show a way to do the same thing for the root element of a response. So, read on if you would like to know how to modify the response's namespace, namespace prefix, encoding style, etc. It is not very intuitive, or pretty for that matter, but at least it is relatively simple.

Continue reading "Override the root element of the response" »

April 30, 2003 in Composition | Permalink | Comments (0)

How to easily turn on/off debugging information

One thing I find myself constantly doing with my SOAP::Lite clients is commenting in and out the "+trace => 'debug'" from the "use SOAP::Lite" call so that I can turn on and off debugging information. This became so annoying to me that I decided to programitize it. Now I just turn debugging on and off with a command line flag.

Continue reading "How to easily turn on/off debugging information" »

April 29, 2003 in Clients | Permalink | Comments (1)

How To Specify Multiple Namespaces

Someone asked on the SOAP::Lite message board about how to specify multiple namespaces in a request. The following little code snippet answers that question. The trick is using the SOAP::Data->attr() subroutine...

Continue reading "How To Specify Multiple Namespaces" »

April 29, 2003 in Composition | Permalink | Comments (0)

How do you modify the root element of a request?

SOAP::Lite's API allows you to call remote Web service operations easily within your code. Simply instantiate an instance of a service, and execute (or call) the remote method directly from your service instance. For example, a call might look like "$soap->myMethod(arguments)." However, while this convention makes for a nice API, by calling the method in this way you give up control over the attributes of the root SOAP Body element. So how do you change the namespace, the prefix, or attributes of the root element?

Continue reading "How do you modify the root element of a request?" »

April 24, 2003 in Composition | Permalink | Comments (0)

How to nest XML elements using SOAP::Lite

Someone posted a message to the SOAP::Lite newsgroup asking a common question: How do you nest XML elements using SOAP::Lite's SOAP::Data constructs. It is a simple problem, but enough people have problems with it that I figured I would detail the answer here.

Continue reading "How to nest XML elements using SOAP::Lite" »

April 22, 2003 in Complex Types | Permalink | Comments (0)

Working with multirefs, Axis, and SOAP::Lite

A posting (which is not archived in the group for some reason) in the SOAP::Lite message board raised yet again the shortcomings of SOAP::Lite and how it parses and interprets WSDL. It also brought to light a horrible SOAP Fault returned by Axis which led the poster and I in a completely mistaken direction when trying to solve the problem...

Continue reading "Working with multirefs, Axis, and SOAP::Lite" »

April 22, 2003 in Interoperability | Permalink | Comments (2)

« Previous

Don't Hate the Ads

Recent Comments

  • Samia on Support
  • Philoctetes on Installation Instructions
  • star trek gold on Intercepting the request and/or response before and after processing
  • shan on Parsing a result object from SOAP::Lite
  • Benjamin on Installation Instructions
  • Tim Collins on Installation Instructions
  • loki on Support
  • loki on Support
  • loki on Installation Instructions
  • Robert Ngo on Support

Recent Posts

  • SOAP-Lite 0.70_xx pre-releases
  • "SOAP::Sanity" - a guide for building complex data types
  • State of the SOAP
  • Announcing SOAP::Lite 0.67
  • Documentation gets a face lift!
  • Bowing to pressure, Byrne releases SOAP::Lite 0.66
  • Support for HTTP 1.1's Expect: 100-Continue
  • SOAP::Lite 0.65 Beta 6 released!
  • 0.65_5 Released - Critical update for XMLRPC users

Categories

  • Books
  • Clients
  • Code Samples
  • Complex Types
  • Composition
  • Documentation
  • Interoperability
  • News and Announcements
  • Parsing
  • Servers
  • Transport
Subscribe to this blog's feed
Add me to your TypePad People list
Blog powered by TypePad

Archives

  • March 2008
  • February 2008
  • February 2007
  • January 2007
  • January 2006
  • December 2005
  • October 2005
  • June 2005
  • May 2005
  • April 2005

More...