title: Retrieving an array of values from a web service with SAS 9.2
body: <p>I'm using SAS 9.2 and trying to retrieve an array of long values from a .NET web service.  Here is my setup and call:</p>
  
  <pre><code>filename websvc url 'http://path.to/my/webservice?WSDL';
  libname websvc xml92 xmltype=WSDL;
  
  Data d;
      dataSchema = "blah";
      module = "blah";
  run;
  
  data strata;
      SET websvc.GetStrataForModuleResponse(parms=d);
  run;
  </code></pre>
  
  <p>The webservice returns XML like this when I invoke it manually without SAS:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ArrayOfLong&gt;
     &lt;long&gt;1&lt;/long&gt;
  &lt;/ArrayOfLong&gt;
  </code></pre>
  
  <p><em>note I snipped the xmlns stuff from the above snippet</em>.  </p>
  
  <p>When I call the web service from SAS I get a dataset with 1 variable and 1 observation.  The name of the variable is "datatype=string" and the value is blank.  With the parameters I should get back exactly what I see above.</p>
  
  <p>I would expect to see a dataset with 1 variable and 1 observation where the variable is named long and the value of the observation is 1.</p>
  
  <p>Is there something I am missing here?  </p>
  
  <p>Thanks in advance!</p>