home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_615d46d837bbd617d835dec7e675a77e
< prev
next >
Wrap
Text File
|
2000-03-23
|
6KB
|
144 lines
<HTML>
<HEAD>
<TITLE>PPM::SOAPClient - SOAP client for PPM repository</TITLE>
<LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> PPM::SOAPClient - SOAP client for PPM repository</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#methods">METHODS</A></LI>
<LI><A HREF="#author">AUTHOR</A></LI>
<LI><A HREF="#see also">SEE ALSO</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>PPM::SOAPClient - SOAP client for PPM repository</P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<PRE>
use PPM::SOAPClient;
...
my $client = new PPM::SOAPClient;
my @results = $client->search( 'sarathy' );</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P><CODE>PPM::SOAPClient</CODE> implements a SOAP client to be used to access a PPM
repository through a SOAP interface. All of the functionality for making
and parsing the SOAP request is handled internally; simply access the
provided methods and you'll be returned a data structure containing the
actual response.</P>
<P>
<HR>
<H1><A NAME="methods">METHODS</A></H1>
<DL>
<DT><STRONG><A NAME="item_new">new ($server)</A></STRONG><BR>
<DD>
Instantiates a new SOAP client, specifying the server that will be used for
all later connections. '<CODE>$server</CODE>' should be provided as the URL to the
SOAP server that we're going to connect to and make queries against.
<P>Note, that this method accepts both ``http://'' and ``soap://'' server URLs
exactly the same way (we treat '<CODE>soap://</CODE>' URLs as standard HTTP URLs).</P>
<P></P>
<DT><STRONG><A NAME="item_version">version ()</A></STRONG><BR>
<DD>
Gets the version number of the SOAP server that we're connected to. If
we're unable to contact the server or its offline, this method returns
'<A HREF="../../../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A>'.
<P></P>
<DT><STRONG><A NAME="item_searchAbstract">searchAbstract ($search)</A></STRONG><BR>
<DD>
Searches within the '<CODE>ABSTRACT</CODE>' field within all of the packages held in
the repository on the server. The value '<CODE>$search</CODE>' may be a regex that
will be used to match against the abstracts. If no value for '<CODE>$search</CODE>'
is provided, the server treats the search to be for '<CODE>.*</CODE>' (everything).
<P></P>
<DT><STRONG><A NAME="item_searchAuthor">searchAuthor ($search)</A></STRONG><BR>
<DD>
Searches within the '<CODE>AUTHOR</CODE>' field within all of the packages held in
the repository on the server. The value '<CODE>$search</CODE>' may be a regex that
will be used to match against the authors. If no value of '<CODE>$search</CODE>' is
provided, the server treats the search to be for '<CODE>.*</CODE>' (everything).
<P></P>
<DT><STRONG><A NAME="item_searchTitle">searchTitle ($search)</A></STRONG><BR>
<DD>
Searches within the '<CODE>title</CODE>' field within all of the packages held in the
repository on the server. The value '<CODE>$search</CODE>' may be a regex that will
be used to match against the titles. If no value of '<CODE>$search</CODE>' is
provided, the server treats the search to be for '<CODE>.*</CODE>' (everything).
<P></P>
<DT><STRONG><A NAME="item_search">search ($search)</A></STRONG><BR>
<DD>
Searches through all of the fields within all of the packages held in the
repository on the server. The value '<CODE>$search</CODE>' may be a regex that will
be used to match against the field values. If no value of '<CODE>$search</CODE>' is
provided, the server treats the search to be for '<CODE>.*</CODE>' (everything).
<P></P>
<DT><STRONG><A NAME="item_packages">packages ()</A></STRONG><BR>
<DD>
Generates a list of all of the packages currently available in the
repository. The value returned to the caller is a list containing the names
of all of the packages in the repository.
<P></P>
<DT><STRONG><A NAME="item_fetch_ppd">fetch_ppd ($pkg)</A></STRONG><BR>
<DD>
Fetches the PPD associated with a given package. The full contents of the
PPD are returned to the caller in XML format as a scalar value.
<P></P>
<DT><STRONG><A NAME="item_fetch_summary">fetch_summary ()</A></STRONG><BR>
<DD>
Fetches the full summary of all of the packages held in the repository. The
full contents of the summary are returned to the caller in XML format as a
scalar value.
<P></P>
<DT><STRONG><A NAME="item__makeSOAPRequest">_makeSOAPRequest ($method, $search)</A></STRONG><BR>
<DD>
<STRONG>INTERNAL METHOD.</STRONG> Makes the SOAP request to the server, doing the bulk of
the actual work for us.
<P></P></DL>
<P>
<HR>
<H1><A NAME="author">AUTHOR</A></H1>
<P>Graham TerMarsch (<A HREF="mailto:gtermars@home.com">gtermars@home.com</A>)</P>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P><A HREF="../../../site/lib/PPM/SOAPServer.html">the PPM::SOAPServer manpage</A>,
<A HREF="../../../site/lib/SOAP.html">the SOAP manpage</A>.</P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> PPM::SOAPClient - SOAP client for PPM repository</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>