title: Problems created a SOAP::Lite Perl Web Services Client
body: <p>I'm using SOAP::Lite to create a web services client.  The first XML packet is what the Java Testing GUI sends.  It receives the correct response.</p>
  
  <p>The second is the XML packet my Perl client is sending (according to SOAP::Lite debug output) and the response I'm receiving from the server is that all of the inputted arguments (hostnameFQ, etc) are empty.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;S:Header/&gt;
  
  &lt;S:Body&gt;
      &lt;ns2:postEvent xmlns:ns2="http://ws.health.server/"&gt;
          &lt;hostnameFQ&gt;a&lt;/hostnameFQ&gt;
          &lt;eventLabel&gt;b&lt;/eventLabel&gt;
          &lt;deviceInst&gt;c&lt;/deviceInst&gt;
          &lt;severity&gt;d&lt;/severity&gt;
          &lt;message&gt;e&lt;/message&gt;
          &lt;eventSource&gt;f&lt;/eventSource&gt;
      &lt;/ns2:postEvent&gt;
  &lt;/S:Body&gt;
  &lt;/S:Envelope&gt;
  
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  
  &lt;soap:Body&gt;
      &lt;postEvent xmlns="http://ws.health.server/"&gt;
          &lt;hostnameFQ&gt;a&lt;/hostnameFQ&gt;
          &lt;eventLabel&gt;b&lt;/eventLabel&gt;
          &lt;deviceInst&gt;c&lt;/deviceInst&gt;
          &lt;severity&gt;d&lt;/severity&gt;
          &lt;message&gt;e&lt;/message&gt;
          &lt;eventSource&gt;f&lt;/eventSource&gt;
      &lt;/postEvent&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>They look the same to me...so I'm not quite sure what is going on.</p>
  
  <p>Here is my Perl code, in case this is helpful:</p>
  
  <pre><code>my $EVENT_LISTENER_PROXY = "http://localhost:8080/EventListener/EventListener"; 
  
  my $soap = SOAP::Lite-&gt;new( proxy =&gt; $EVENT_LISTENER_PROXY);
  $soap-&gt;on_action( sub { "http://ws.health.server/#postEvent" });
  $soap-&gt;autotype(0);
  $soap-&gt;default_ns('http://ws.health.server/');
  
  my $som = $soap-&gt;call("postEvent",
  SOAP::Data-&gt;name('hostnameFQ')-&gt;value( "a" ),
  SOAP::Data-&gt;name('eventLabel')-&gt;value( "b" ),
  SOAP::Data-&gt;name('deviceInst')-&gt;value( "c" ),
  SOAP::Data-&gt;name('severity')-&gt;value( "d" ),
  SOAP::Data-&gt;name('message')-&gt;value( "e" ),
  SOAP::Data-&gt;name('eventSource')-&gt;value( "f" )
  );
  </code></pre>
  
  <p>Anyone have any ideas?</p>