Issues with Jira Jelly and SOAP Integration Script?

I am attempting to build a Jelly script that makes a SOAP call to interact with a Jira service. Although the WSDL functions correctly in standalone SOAP requests, the integrated script is failing to work as expected. I suspect there might be an issue with the SOAPAction header, the endpoint configuration, or the structure of the SOAP envelope. Could someone review the revised code snippet below and help pinpoint the error in this Jira Jelly and SOAP integration?

<JIRAServiceScript xmlns:js="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:base="jelly:core" xmlns:web="jelly:soap">
  <base:create var="serviceURL" className="java.lang.String">
    <base:param type="java.lang.String" value="http://examplehost:8080/apiServiceEndpoint"/>
  </base:create>
  <base:create var="headerConfig" className="java.lang.String">
    <base:param type="java.lang.String" value="POST http://examplehost:8080/apiServiceEndpoint HTTP/1.1
Accept: text/xml
Content-Type: text/xml;charset=UTF-8
SOAPAction: ''
User-Agent: Custom-Client/1.0
Host: examplehost:8080
Content-Length: 250"/>
  </base:create>
  <web:sendRequest endpoint="${serviceURL}" soapAction="${headerConfig}" var="respData">
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:svc="http://services.example.com/wsdl">
       <env:Header/>
       <env:Body>
          <svc:executeOperation>
             <input>HelloWorld</input>
          </svc:executeOperation>
       </env:Body>
    </env:Envelope>
  </web:sendRequest>
</JIRAServiceScript>

hey, try simplifying the soapaction. it might be that you should only pass the actual soap action value rather than the full header block. also double-check for any stray spaces in your endpoint. might fix it!