BookmarkSubscribeRSS Feed
kovalzdw
Calcite | Level 5

Hi Everyone,

I have SAS DI Job which is responsible for requesting SOAP Service using PROC SOAP. Recently this service was upgraded, what lead to minor changes in it's request. 

Main issue that occured was to change namespace in SOAP Envelope from this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

to this:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">

SOAP Envelope is defined in "data _null_" statement where I prepare whole request body. At first I changed SOAP Envelope as in the above code, but when I looked in service logs I noticed that SAS automaticly wrapped my prepared request in another SOAP Envelope, which then looked like this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
	<soapenv:Body>
		<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
			<soap:Header/>
			<soap:Body>
				...
			</soap:Body>
		</soap:Envelope>
	</soapenv:Body>
</soapenv:Envelope>

The way I request this service is quite simple and looks like this. I replaced content of parameters, but I believe they are correct.

proc soap in=request
	out=response 
	url="XXX" 
	soapaction="XXX"
	webauthdomain = "XXX"
	debug="/tmp/soapSPLDAS.log"
	; 
run;

 

As I found out later, the difference in namespaces may be a consequence of upgrading SOAP version from 1.1 to 1.2. SAS version I'm currently using is 9.4M7.

Now it all breaks down to question, how can I request SOAP service with this change in namespace? Can I somehow owerwrite whole SOAP Envelope? Is there a way to change SOAP version to 1.2 in SAS so I can use different namespace in envelope? 

Please let me know if I should provide more information.

 

Thanks for Your help.

 

sas-innovate-2024.png

 

Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.

 

Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 

 

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
  • 0 replies
  • 597 views
  • 0 likes
  • 1 in conversation