and my call:my $heartbeat = SOAP::Lite->new(proxy => $proxy); $heartbeat->default_ns('lws:Heartbeat'); $heartbeat->autotype(0); $heartbeat->transport->timeout(1); $self->heartbeat($heartbeat); my $state = 1; my (@hbArgs) = ( SOAP::Data->name( 'deviceName' => $self->{id} ), SOAP::Data->name( 'username' => $self->{userName} ), SOAP::Data->name( 'sessionId' => $self->sessInfo->{sessionI +d} ), SOAP::Data->name( 'state' => $state ), SOAP::Data->name( 'taskId' => $self->{taskId} ), SOAP::Data->name( 'location' => ''), ); my (@obj) = SOAP::Data->name( 'obj' => \SOAP::Data->value( @hbArgs, ), ); my (@message) = SOAP::Data->name( 'message' => \SOAP::Data->value( @obj, ), ); print "Let's try\n"; $self->call( "heartbeat", "sendPulse", \@message); print "WE're back!!\n";
Output:sub call { my ($self, $handle, $cmd, $params) = @_; if($cmd eq "sendPulse") { # Don't need to do anything with the heartbeat response $self->TOOLS::Print::sending("Sending heartbeat"); $self->{$handle}->call( $cmd, @{$params} ); return $self->{call}; } $self->callResp($self->{$handle}->call( $cmd, @{$params} )); if($cmd ne "login")
SENDING HEARTBEAT
$proxy = 'http://128.0.100.135:14901';
Let's try
500 read timeout at /usr/users/stevew/Testing/Director/perl5/../lib/HHT.pm line 278
Line 278 being (from above):
Is there a way to send a SOAP message using SOAP::Lite and not expect a response?$self->{$handle}->call( $cmd, @{$params} );
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |