Hey all,
I posted a question on stackoverflow.com but thought I would repicate it here to see if I can get more traffic on an answer! The original question is here:
http://stackoverflow.com/questions/4736162/retrieving-an-array-of-values-from-a-web-service-with-sas...
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:
1
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!