BookmarkSubscribeRSS Feed
RobW
Calcite | Level 5

Hi all,

Hoping someone can offer a solution here, or definitively point me to one online.  We don;t have any experience using SAS stored processes as web services to be used by a third-party application.  We've got a rudimentary proof-of-concept achieved, but the 3rd-party app is having problems parsing out the value SAS is trying to pass back to it in the XML.

Background:

SAS EBI...9.2M0 (9.2 mid-tier with 4.3 web apps).

the concept is the 3rd-party app will send data/parameters for SAS to use to crunch against a datasource and return a single value back to the app.  We would like for the value to be passed back as an entity on its own, instead of sandwiched within a table object.  We're currently using the older XMLA Web Service method (where you have to put that as the keyword).  in the code, i am basically making a single-row, single-column table, output to the _WEBOUT library, so naturally, SAS is sending it out as a table object in the XML stream.  Any other alternatives I've tried cause an error/fault.  I'm just looking for an end-to-end tutorial with something along these lines to get my feet wet.

Suggestions?  I'll be happy to post more details if necessary.

Thanks in advance.

r

4 REPLIES 4
macroCharlie
Calcite | Level 5

Rob, have you had any more luck with getting your results out of the XML table? I am in a similar situation trying to access a Stored Process through the BI Web Service. I have been trying to access the sample means procedure through an app called STARLIMS that can consume external web services. So far I have gotten a good connection, but only an error response. I have been doing some experimenting with Visual Studio on the same sample and have gotten some good results. I think the biggest problem is there is numerous documention on using SAS to access BI Web Services but hardly any on 3rd Party apps consuming a SAS Web Service.

RMP
SAS Employee RMP
SAS Employee

I have created Web Services from STP's in the past. What are the errors you are getting?

macroCharlie
Calcite | Level 5

Here's the error returned from the SAS BI Web Service:

"Cannot call web service method: sampleMEANSProcedureWebService SoapException: Error: A 'Server Execution' type of exception occurred during execution of 'MeansTest2' service.  The exception follows: SAS completed with non-zero SYSCC '3,000'.  SYSMSG: ''."

Notice the SYSMSG is empty. I've also got a copy ot the log and it basically says:

ERROR: Missing root element definition

ERROR: Encountered during XMLMap parsing at or near line 1, column 1.

ERROR: XML describe error: Internal processing error.

Unfortuneatley I can't see the SOAP Request because of using a remote server to send to the SAS remote server. I've tried SoapUI and Fiddler with no sucess.

By the way this is the Sample Means Procedure that we ran through the Generated Web Service Wizard and called it MeansTest2.

I have successfully connected and received back a response using PROC SOAP, Visual Studio Windows Form and Visual Studio ASP.NET.

SAS Response.JPG

AjayPrasad
Fluorite | Level 6

Hi Charlie,

 

I am seeing the same error - SAS completed with non-zero SYSCC '3,000'.  SYSMSG: ''.

 

If you troubleshooted this error, please help me with the troubleshooting steps.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 2933 views
  • 0 likes
  • 4 in conversation