Group
Extension

Matches 4

SOAPjr ( R/RO/ROBMAN/SOAPjr-1.1.4.tar.gz, ROBMAN, 2009; MetaCPAN )
SOAPjr/lib/SOAPjr.pm ( view source; MetaCPAN )

use SOAPjr::request;
use SOAPjr::response;

=head1 NAME

SOAPjr - SOAP without the bloat and JR (JSON-RPC) with proper error handling and file uploads

=head1 VERSION

Version 1.1.4

=cut

our $VERSI
d documentation then replace t/pod-coverage.t.

Also need to create Server and Client modules ala JSON::RPC and more detailed example scripts.

=head1 ACKNOWLEDGEMENTS

See L<http://SOAPjr.org/specs.h
SOAPjr ( R/RO/ROBMAN/SOAPjr-1.1.4.tar.gz, ROBMAN, 2009; MetaCPAN )
SOAPjr/lib/SOAPjr/request.pm ( view source; MetaCPAN )
set {
    my $self  = shift;
    my $query = shift;
    my $cgi_query;
    my $count = 0;
    my $json;
    if (ref($query) ne 'HASH' && $query->can("param")) {
        # Make a copy
        $cgi_quer
>{json} ) {
            my $url_decoded_json = uri_unescape($query->{params}->{json});
            if ($self->{json}->can("decode")) {
                # Modern-ish 2.x JSON API
                $json =
 $self->{json}->decode( $url_decoded_json );
            } elsif ($self->{json}->can("jsonToObj")) {
                # Olde Version 1.x JSON API
                $json = $self->{json}->jsonToObj( $url_
SOAPjr ( R/RO/ROBMAN/SOAPjr-1.1.4.tar.gz, ROBMAN, 2009; MetaCPAN )
SOAPjr/lib/SOAPjr/base.pm ( view source; MetaCPAN )
ut

our $VERSION = "1.0.1";

=head1 SYNOPSIS

    See perldoc SOAPjr for more info.

=cut

use JSON;
$JSON::UnMapping = 1;

sub new {
    my $self  = {};
    my $class = shift;
    bless $self, $class
 => 1,
        BODY     => 1,
        HEAD     => 1,
        OPTIONS  => 1
    };
    $self->{json} = JSON->new();
    return $self->_init(@_);
}

sub _init {
    my $self = shift;
    return $self;
}
SOAPjr ( R/RO/ROBMAN/SOAPjr-1.1.4.tar.gz, ROBMAN, 2009; MetaCPAN )
SOAPjr/lib/SOAPjr/response.pm ( view source; MetaCPAN )
r response::add_message()";
        return 0;
    }
}

sub output {
    my $self = shift;
    my $json;
    my $body = $self->get("BODY");
    if ($self->get("HEAD")->{errors}) {
        $self->set({ 
elf->{json}->can("encode")) {
        # Modern-ish 2.x JSON API
        $json = $self->{json}->encode( { HEAD => $self->get("HEAD"), BODY => $body } );
    } elsif ($self->{json}->can("objToJson")) {
 Version 1.x JSON API
        $json = $self->{json}->objToJson( { HEAD => $self->get("HEAD"), BODY => $body } );
    } else {
        # TODO: handle unknown JSON API
    }
    return $json;
}

sub sen

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.