Thanks for the suggestions. I am adding the full script.
@gcubed
I did see a post of yours that I have been looking at. Calling external SOAP from Clarity GEL
In my case, I am sending a SOAP message for a service to consume not requesting information.
Do I still need this connection code?
<!-- Open a connection to ServiceNow and set our request headers -->
26. <core:new var="soapUrl" className="java.net.URL">
27. <core:arg type="java.lang.String" value="${soapEndPoint}" />
28. </core:new>
29. <core:invoke var="connection" on="${soapUrl}" method="openConnection"/>
30. <core:expr value="${connection.setDoOutput(true)}" />
31. <core:expr value='${connection.setRequestMethod("POST")}'/>
32. <core:expr value='${connection.setRequestProperty("Content-type", "text/xml; charset=utf-8")}'/>
33. <core:expr value='${connection.setRequestProperty("SOAPAction", soapEndPoint)}'/>
34. <core:expr value='${connection.setRequestProperty("Authorization", basicAuth)}'/>
35. <core:set var="requestXml">