Catalyst::Model::XMLRPC man page on Pidora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Pidora logo
[printable version]

Catalyst::Model::XMLRPUser Contributed Perl DocumentCatalyst::Model::XMLRPC(3)

NAME
       Catalyst::Model::XMLRPC - XMLRPC model class for Catalyst

SYNOPSIS
	# Model
	__PACKAGE__->config(
	   location => 'http://webservice.example.com:9000',
	);

	# Controller
	sub default : Private {
	   my ($self, $c) = @_;

	   my $res;

	   eval {
	       $res = $c->model('RemoteService')->send_request('system.listMethods');
	       $c->stash->{value} = $res->value;
	   };
	   if ($@) {
	       # Something went wrong...
	   }

	   ...
       };

DESCRIPTION
       This model class uses RPC::XML::Client to invoke remote procedure calls
       using XML-RPC.

CONFIGURATION
       You can pass the same configuration fields as when you call
       RPC::XML::Client, the only special thing is that the URI is provided
       via the location field.

METHODS
   General
       Take a look at RPC::XML::Client to see the method you can call.

   new
       Called from Catalyst.

NOTES
       By default, there is an error_handler and a fault_handler provided for
       the RPC::XML::Client object that call Carp::croak.  You can override it
       if you want via the config call.

DIAGNOSTICS
   Must provide an location
       You'll get this error, if you haven't provided a location. See Config.

   Can't create RPC::XML::Client object
       Something went wrong while trying to create an RPC::XML::Client object.
       See documentation of this module for further references.

SEE ALSO
       ·
	RPC::XML::Client

       ·
	RPC::XML

       ·
	Catalyst::Model

ACKNOWLEDGEMENTS
       ·
	Daniel Westermann-Clark's module, Catalyst::Model::LDAP, it was my
	reference.

       ·
	Lee Aylward, for reporting the issue regarding v.0.03.

AUTHOR
       Florian Merges, <fmerges@cpan.org>

LICENSE
       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.14.1			  2011-07-21	    Catalyst::Model::XMLRPC(3)
[top]

List of man pages available for Pidora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net