line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Business::BR::CNJ::WebService; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
57864
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
39
|
|
4
|
1
|
|
|
1
|
|
384
|
use utf8; |
|
1
|
|
|
|
|
12
|
|
|
1
|
|
|
|
|
5
|
|
5
|
1
|
|
|
1
|
|
27
|
use Exporter 'import'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
6
|
1
|
|
|
1
|
|
115
|
use SOAP::Lite; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = 0.03; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
|
|
|
|
|
|
my $class = bless {}, shift; |
12
|
|
|
|
|
|
|
$class->{ws} = SOAP::Lite->new( |
13
|
|
|
|
|
|
|
proxy => 'http://www.cnj.jus.br/sgt/sgt_ws.php', |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
$class; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub errstr { shift->{errstr} } |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub cnj_ws_call { |
21
|
|
|
|
|
|
|
my $class = shift; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
$class->{errstr} = undef; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
my $som; |
26
|
|
|
|
|
|
|
eval { $som = $class->{ws}->call( @_ ) }; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
if ( $@ ) { |
29
|
|
|
|
|
|
|
$class->{errstr} = $@; |
30
|
|
|
|
|
|
|
return undef; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
} else { |
33
|
|
|
|
|
|
|
return $som->result; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub pesquisarItemPublicoWS { |
38
|
|
|
|
|
|
|
shift->cnj_ws_call( 'pesquisarItemPublicoWS', @_ ); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub getArrayDetalhesItemPublicoWS { |
42
|
|
|
|
|
|
|
shift->cnj_ws_call( 'getArrayDetalhesItemPublicoWS', @_ ); |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub getArrayFilhosItemPublicoWS { |
46
|
|
|
|
|
|
|
shift->cnj_ws_call( 'getArrayFilhosItemPublicoWS', @_ ); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub getStringPaisItemPublicoWS { |
50
|
|
|
|
|
|
|
shift->cnj_ws_call( 'getStringPaisItemPublicoWS', @_ ); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub getComplementoMovimentoWS { |
54
|
|
|
|
|
|
|
shift->cnj_ws_call( 'getComplementoMovimentoWS', @_ ); |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub getDataUltimaVersao { |
58
|
|
|
|
|
|
|
shift->cnj_ws_call( 'getDataUltimaVersao', @_ ); |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__END__ |