BookmarkSubscribeRSS Feed
deleted_user
Not applicable
i'm trying to use the SOAP procedure to pull data into SAS but i'm hitting a wall.

here's my code which is based on SAS documentation examples (http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a003176696.htm 😞
[pre]
FILENAME REQUEST "c:\temp\heartbeatrequest.xml";
data _null_;
file request;
input;
put _infile_;
datalines4;

xmlns:efm="http://desktop.vovici.com/EFMWebTopSvc/">





;;;;
run;
[/pre]

next, i call a public SOAP web service (http://desktop.vovici.com/EFMWebTopSvc.asmx?op=WSHeartbeat)
[pre]
FILENAME RESPONSE "c:\temp\heartbeatresponse.xml";
proc soap in=REQUEST
out=RESPONSE
url="http://desktop.vovici.com/EFMWebTopSvc.asmx"
soapaction="http://desktop.vovici.com/EFMWebTopSvc/WSHeartbeat";
run;
[/pre]

which is where SAS complains:
[pre]
NOTE: The SAS System stopped processing this step because of errors.

ERROR: java.lang.Exception: First Element must contain the local name, Envelope , but found html
[/pre]

that the error is java-related and that the SOAP request works fine in soapUI (http://www.soapui.org ), but not in SAS suggests to me that i've got an install problem, but i really don't know. fixed docs link
Message was edited by: RichardK
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Contact SAS technical support for assistance. SAS PROC SOAP is very new, now available with SAS 9.2, and there are specific install considerations that must be setup correctly. I also had some challenges and the SAS admin worked them out with the keen guidance and direction from the primo SAS support staff.

Scott Barry
SBBWorks, Inc.
deleted_user
Not applicable
Scott-
what's most confusing is that the SOAP procedure appears to work for the weather.gov web service:
[pre]
FILENAME REQUEST "c:\temp\NDFDgenByDay_request.xml";
data _null_;
file request;
input;
put _infile_;
datalines4;

xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ndf="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl">


"http://schemas.xmlsoap.org/soap/encoding/">
45
-93
2009-08-06
5

xmlns:dwml="http://www.weather.gov/forecasts/xml/DWMLgen/schema/DWML.xsd">24 hourly




;;;;

FILENAME RESPONSE "C:\temp\NDFDgenByDay_response.xml";
proc soap in=request
out=response
url="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php"
soapaction="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#NDFDgenByDay"
;
run;
[/pre]

looks like tech support is my next stop...

thanks
deleted_user
Not applicable
as it turns out, i'm behind a proxy, so i needed the proxy options:
[pre]
proxyhost="proxy-host"
proxyusername="my-username"
proxypassword="my-password"
proxyport=proxy-port
[/pre]

everything works fine now!
deleted_user
Not applicable
I ran the Heartbeat example and got the same error: "First Element must contain the local name, Envelope , but found html." But I'm not behind a proxy server! Also, the weather example does work. Have you researched this error further?

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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