Ask the Expert

Receiving XML from a SAS Web service

I am working with Visual Studio.NET and SAS. To communicate to SAS from the Web application, you use a CGI program called broker.exe. You post the variables to the broker file, and SAS returns the results. The HTML to format the results in a report can be written to the browser by writing additional SAS code. I would like to create a Web service that would receive the variables and pass them to the broker, which would pass them to SAS. SAS can return XML to the Web service, but how would I receive the XML from the Web service to display on the browser?

    Requires Free Membership to View

It sounds like you already have a Web service in the form of the CGI script. Your problem splits into two. (1) how to get variables into broker.exe and (2) how to get XML back.

For (1) you can mimick what a Web browser does with a form submitted to the cgi-script i.e. send a HTTP POST request to broker.exe. For (2) you need to look at what form broker.exe currently returns data in. If it is a formatted HTML page you many need to scrap out the bits you want in the XML. If it already is XML then it will most likely be coming back as a mime type text/xml and your HTTP posting program can pick it up easily as the response document.

This was first published in July 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: