title: How do I access Web service methods using Perl?
body: <p>I wish to execute two Web service methods using Perl. I have the URL of this Web service and it has a <code>.svc</code> extension. I also have the method names, what they receive as parameters and what they return. How can I do it? If you can be detailed, it will be good.</p>
  
  <p>I tried:</p>
  
  <pre><code>use SOAP::Lite;
  use SOAP::TRANSPORT;
  
  $client = SOAP::Lite-&gt;new();
  $client-&gt;SOAP::TRANSPORT::HTTP('http://perl-server/perl.svc');
  print $client-&gt;method_1("hi");
  print $client-&gt;result();
  </code></pre>
  
  <p>But it returns always <code>1</code> and I need to get the answer "true" as a result from <code>method_1</code>. I think it returns <code>1</code> not from this method, but due to the connection passed successfully.</p>