title: Perl and Complex SOAP Request
body: <p>I need to make a somewhat complex soap query using Perl, preferably using <code>SOAP::Lite</code>.  I know the service is active and have been successful in getting errors back from the other end.  Here is the soap query I need to make:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;soap:Body&gt;
      &lt;GetCategories xmlns="http://webservices.uship.com"&gt;
          &lt;token&gt;string&lt;/token&gt;
      &lt;/GetCategories&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>I've researched this via Google to no avail.</p>
  
  <p><strong>Update</strong>: The code used so far is</p>
  
  <pre><code>use SOAP::Lite; 
  print SOAP::Lite
   -&gt; uri('webservices.uship.com/uShipsvc.asmx?WSDL';)
   -&gt; proxy('http:/webservices.uship.com')
   -&gt; GetCategories('myToken')
   -&gt; result;
  </code></pre>
  
  <p>This returns </p>
  
  <blockquote>
    <p>500 bad hostname, 500 Can't connect to :80 (Bad hostname '') at soap2.pl line 2</p>
  </blockquote>