BookmarkSubscribeRSS Feed
danielmitu
Obsidian | Level 7

Hi all,

I am trying to retrive an XML from a webserver that is outside my network. I try to make the call from SAS using PROC SOAP, I keep getting the following error message:

ERROR: org.springframework.ws.client.WebServiceTransportException: Unauthorized [401]

I have tried to add either WEBUSERNAME and PROXYUSERNAME into PROC SOAP but they don’t work.

proc soap in=request
out=resp_org
url="https://xx.xxx.xxx.xxx/RemoteHistorysvc.asmx"
soapaction=http://www.EmersonProcess.com/RemoteHistory/GetTrendData
WEBUSERNAME="username"
WEBPASSWORD="*****"
WEBDOMAIN="domain";
run;

If I access the webpage via Internet explorer, I can login with the username and password.

Have anyone had similar experience or any suggestions? Thanks in advance.

1 REPLY 1
rudfaden
Lapis Lazuli | Level 10

Just guessing, but it could be a firewall issue.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 999 views
  • 0 likes
  • 2 in conversation