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:
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;
The webservice returns XML like this when I invoke it manually without SAS:
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfLong>
<long>1</long>
</ArrayOfLong>
note I snipped the xmlns stuff from the above snippet.
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.
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.
Is there something I am missing here?
Thanks in advance!