The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Business::BR::CNJ::WebService - Interacts with brazilian CNJ (Conselho Nacional de Justiça) SOAP WebService.

SYNOPSIS

   use Business::BR::CNJ::WebService;

   my $cnj = Business::BR::CNJ::WebService->new();

   print $cnj->getDataUltimaVersao();

   my $data = $cnj->pesquisarItemPublicoWS( 'C', 'N', 'Agravo' );

   my $data = $cnj->getArrayDetalhesItemPublicoWS( '2', 'C' );
   

DESCRIPTION

This module is a direct brindge to the brazilian CNJ (Conselho Nacional de Justiça) SOAP WebServices.

All interface and docs are from CNJ website itself: http://www.cnj.jus.br/sgt/infWebService.php

METHDOS

pesquisarItemPublicoWS($tipoTabela, $tipoPesquisa, $valorPesquisa)

Pesquisa as tabelas públicas de acordo com os parametros passados

@param string $tipoTabela -Tipo da tabela a ser pesquisada(A,M,C) - Assuntos, Movimentos, Classes @param string $tipoPesquisa -Tipo da pesquisa(G,N,C) - Glossário, Nome, Código @param string $valorPesquisa -Valor da pesquisa

@return Item[] Array de itens encontrados

getArrayDetalhesItemPublicoWS($seqItem,$tipoItem)

Retorna uma array do objeto preenchido de acordo com o item requisitado

@param string $seqItem -Sequencial do item requisitado(código do item) @param string $tipoItem -Tipo do item(A,M,C) - Assuntos, Movimentos, Classes

@return Array Array das variaveis do objeto preenchidas

getArrayFilhosItemPublicoWS($seqItem,$tipoItem)

Retorna um Array contendo uma lista de Classes/Assuntos

@param int $seqItem -Sequencial do item requisitado(código do item) @param string $tipoItem -Tipo do item(A,M,C) - Assuntos, Movimentos, Classes @return arvoreGenerica[]

getStringPaisItemPublicoWS($seqItem,$tipoItem)

Retorna uma string contendo o encadeamento de pais de um item

@param int $seqItem -Sequencial do item requisitado(código do item) @param string $tipoItem -Tipo do item(A,M,C) - Assuntos, Movimentos, Classes @return string

getComplementoMovimentoWS($codMovimento)

Retorna uma Array contendo os complementos tabelados

@param int $codMovimento - Sequencial do movimento que se deseja obter os complementos, esse campo pode ser vazio, assim irá trazer todos os complementos cadastrados. @return ComplementoMovimento[]

getDataUltimaVersao()

Retorna uma String contendo a data da última versão

@return String

errstr

Returns undef if no error was thrown in the last call, or any true value if an error was thown (normally a string with the error).

cnj_ws_call

Makes a plain SOAP call to the end point and returns the data structure. Used internally only - all other methods use this to make the HTTP SOAP requests.

If an error happens, it return undef and sets the "errstr" attribute to the error value. Check for error with the errstr method call.

SEE ALSO

Please check CNJ website at http://www.cnj.jus.br/

AUTHOR

Diego de Lima, <diego_de_lima@hotmail.com>

SPECIAL THANKS

This module was kindly made available by the https://modeloinicial.com.br/ team.

COPYRIGHT AND LICENSE

Copyright (C) 2017 by Diego de Lima

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.

9 POD Errors

The following errors were encountered while parsing the POD:

Around line 67:

Non-ASCII character seen before =encoding in 'Justiça)'. Assuming UTF-8

Around line 101:

You forgot a '=back' before '=head2'

Around line 112:

You forgot a '=back' before '=head2'

Around line 122:

You forgot a '=back' before '=head2'

Around line 132:

You forgot a '=back' before '=head2'

Around line 141:

You forgot a '=back' before '=head2'

Around line 149:

You forgot a '=back' before '=head2'

Around line 155:

You forgot a '=back' before '=head2'

Around line 165:

You forgot a '=back' before '=head1'