BookmarkSubscribeRSS Feed
x97mdr
Calcite | Level 5
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!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 0 replies
  • 712 views
  • 0 likes
  • 1 in conversation