Loading ...
Sorry, an error occurred while loading the content.

Accessing .NET WSDL:: Can't call method "value" on an undefined value

Expand Messages
  • smurthy1857
    I am a newbie to SOAPLite. Below is my code and I am getting Can t call method value on an undefined value at (eval 10) line 38. . Please help. ... use
    Message 1 of 1 , Dec 21, 2005
    • 0 Attachment
      I am a newbie to SOAPLite. Below is my code and I am getting
      "Can't call method "value" on an undefined value at (eval 10) line
      38.". Please help.

      ---

      use strict;
      use SOAP::Lite;
      use Data::Dumper;


      my $prop ="\<Properties>\

      <Property><Name>_AssemblyFile</Name><Value>abc.Agent.dll</Value></Prop
      erty>\

      <Property><Name>_AssemblyType</Name><Value>abc.Agent.ExternalProcessAg
      ent</Value></Property>\
      <Property><Name>_EPId</Name><Value>2001</Value></Property>\
      <Property><Name>_Action</Name><Value>Initialize</Value></Property>\
      </Properties>";

      my $status = SOAP::Data->type(string=>'');
      my $reason= SOAP::Data->type(string=>'');
      my $inputData=SOAP::Data->type(int=>'');
      my $propertiesStr =SOAP::Data->type(string=>"none");


      my $soap = SOAP::Lite
      -> service('http://myiisserver:8080/abc/Task.asmx?wsdl')
      -> Process($propertiesStr,$status, $reason,$inputData);
    Your message has been successfully submitted and would be delivered to recipients shortly.