Voici un exemple d'utilisation du modeule SOAP::Lite :

perl

 1: use Data::Dumper ;
 2: use HTTP::Cookies ;
 3: use LWP::UserAgent ;
 4: use SOAP::Lite;
 5:
 6: $cookie_jar = new HTTP::Cookies(ignore_discard => 1) ;
 7:
 8: $cookie_jar->set_cookie( 1, "sympa_session", "45821295149431", "/", "listes.example.com", 443, 1, 1,undef, 1, undef ) ;
 9:
10: my $soap = new SOAP::Lite();
11: $soap->uri('https://listes.example.com/sympasoap');
12: $soap->proxy('https://listes.example.com/sympasoap',cookie_jar=>$cookie_jar);
13:
14: print Dumper $soap->lists()->result() ;
15: print Dumper $soap->complexLists()->result() ;
16: print Dumper $soap->review('anf2012@example.com')->result() ;
17: print Dumper $soap->which()->result() ;
18: print Dumper $soap->complexWhich()->result() ;
19: print Dumper $soap->info('anf2012@example.com')->result() ;
jeudi_corrige_perl_3.txt · Last modified: 2012/05/24 08:11 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki