soap:Header with AppleScript's "call soap"?

I’m trying to learn how to use the “call soap” command from AppleScript. The project I’m working on as I learn will require me to send a soap:Header containing a sessionID with each request after a successful login. Does anyone know if this is possible with AppleScript and how?

I trawled around in AE.frameworks to see if I could learn more and found this:

/*
When serializing AERecords as SOAP structures, it is possible
to specify the namespace and type of the structure. To do this,
add a keySOAPStructureMetaData record to the top level of the
record to be serialized. If present, this will be used to specify
the structure namespace. This will produce a structure elment that
looks like:

<myStruct
    xmlns:myNamespace="http://myUri.org/xsd",
    xsi:type="myNamespace:MyStructType">
    ...
</myStruct>

*/

But I’m not sure if this helps me or not!

The soap:Envelope needs to look something like this (for a logout action):

<soap:Envelope
xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope”;
soap:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding”;
soap:Header
<auth:SessionID
xmlns:auth=“urn:schemas-XXX-com:Authentication”
soap:mustUnderstand=“1”>
sess.a01GLw
</auth:SessionID>
</soap:Header>
soap:Body
<m:Logout xmlns:m=“urn:schemas-XXX-com:Logout” />
</soap:Body>
</soap:Envelope>

Thanks in advance!

Guy