Bonjour à tous,
Je voudrais appeler une méthode d'un web service
écrit en java (avec Axis) qui utilise un paramètre HashMap.
Je pensais qu'un simple tableau de hash suffirait (Php le transformant correctement) mais apparement non.
Code :
- sub new {
- my $type= shift;
- my %params = @_;
- my $self = {};
- bless $self, $type;
- ...
- my @paramVariable=();
- $self->{'paramVariables'} = \@paramVariable;
- }
- ...
- sub addParamVariables() {
- my $this = shift;
- my $scriptData = {};
- $scriptData->{'nom'} = $_[0];
- $scriptData->{'valeur'} = $_[1];
- $scriptData->{'idScript'} = $_[2];
- push( @{$this->{'paramVariables'}}, $scriptData );
- }
- ....
- my $soapClient = new SOAP::Lite->service( $this->{'wsdl'} );
- return $soapClient->preparerJob( $this->{'login'},$this->{'password'}, $this->{'idJob'}, @{$this->{'paramVariables'}});
|
Quelqu'un a déjà rencontré ce type de problème ?
J'ai vu qu'il existe un package Inline::Java, corrige t'il ce genre de problème ?
Merci de vos réponse