title: Perl soap request retrieving one value?
body: <p>I have the following script that apparently this will not let me submit with more detail.  It basically is pulling basic scheduling details from a SOAP request into XML and i need to retrieve a value from it.:</p>
  
  <pre><code>#!perl
  #
  # Quick sample script to fetch data from Tribune's Data Direct Service
  #
  # R. Eden 2/23/08
  # (modified from XMLTV's tv_grab_na_dd, which started with a sample)
  # script provided by Tribune
  
  use SOAP::Lite;
  use strict;
  
  my $USER='username';
  my $PASS='password';
  my $START='2016-09-27T00:00:00Z';
  my $STOP ='2016-09-27T23:59:59Z';
  
  #
  # Set login credientials
  #
  sub SOAP::Transport::HTTP::Client::get_basic_credentials {
  return lc($USER) =&gt; "$PASS";
  }
  
  
  #
  # Deifne SOAP service
  #
  my $dd_service='http://dd.schedulesdirect.org/tech/tmsdatadirect/schedulesdirect/tvDataDelivery.wsdl';
  my $proxy='http://localhost/';
  my $soap= SOAP::Lite
         -&gt; service($dd_service)
      -&gt; outputxml('true')
      -&gt; proxy($proxy, options =&gt; {compress_threshold =&gt; 10000,
                                   timeout            =&gt; 420});
  
  #
  # It's polite to set an agent string
  #
  $soap-&gt;transport-&gt;agent("perl/$0");
  
  
  #
  # Now let's get our data
  #
  my $raw_data=$soap-&gt;download($START,$STOP);
  
  
  print $raw_data;
  
  exit 0;
  </code></pre>
  
  <hr>
  
  <p>It outputs:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'&gt;
  &lt;SOAP-ENV:Body&gt;&lt;ns1:downloadResponse SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:ns1='urn:TMSWebServices'&gt;
  &lt;xtvdResponse xsi:type='ns1:xtvdResponse'&gt;
  
  &lt;messages xsi:type='ns1:messages'&gt;
  
  &lt;message&gt;Your subscription will expire: 2017-09-29T21:18:20Z&lt;/message&gt;
  
  &lt;/messages&gt;
  &lt;xtvd from='2016-09-27T00:00:00Z' to='2016-09-27T23:59:59Z' schemaVersion='1.3' xmlns='urn:TMSWebServices' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='urn:TMSWebServices http://dd.schedulesdirect.org/tech/xml/schemas/tmsxtvd.xsd'&gt;
  
  &lt;stations&gt;
  &lt;/stations&gt;
  &lt;lineups&gt;
  &lt;/lineups&gt;
  &lt;/xtvd&gt;
  &lt;/xtvdResponse&gt;
  &lt;/ns1:downloadResponse&gt;
  &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt; [
  </code></pre>
  
  <hr>
  
  <p>I strictly want to date/time of the <code>&lt;message&gt;</code> part that says: </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;message&gt;Your subscription will expire: 2017-09-29T21:18:20Z&lt;/message&gt;
  </code></pre>
  
  <p>How do I do that?</p>