Skip to main content
New Participant
Mar 12, 2024 6:46 PM UTC
Question

Nested Items in a SOAP Header

I'm trying to integrate with a SOAP call where the only credentials in the header is the current datetime:

<soapenv:Header>
<sec:Credentials>
     <sec:Created>2024-03-12 17:44:34Z</sec:Created>
</sec:Credentials>
</soapenv:Header>

How do include that information in the header?  I'm calling the webservicequery, but I can't figure out how to include that header information.  I would guess I would use a wsHttpHeaderField, but how to I make it nested with the two layers of information?

7 replies

stefanhelzle0001
Brainy
Mar 12, 2024 6:54 PM UTC

Can you share a few details of what you already have?

adamm626Author
New Participant
Mar 12, 2024 7:18 PM UTC

In the webservicequery I have created extensions to try and fit this in.

extensions: {a!wsHttpHeaderField(name: "Credentials", value: a!wsHttpHeaderField(name: "Created", value: concat(text(gmt(now()), "yyyy-mm-dd HH:MM:ss"),"Z")))}

stefanhelzle0001
Brainy
Mar 12, 2024 7:48 PM UTC

A SOAP envelope header is something different than a HTTP header. These function will not help you.

davidj137213
Brainy
Mar 12, 2024 7:05 PM UTC
You are creating a Soap request and need to construct the message from the data stored in the database. it's right?
adamm626Author
New Participant
Mar 12, 2024 7:19 PM UTC

I can get the data, I just need to nest some values in the header.

davidj137213
Brainy
Mar 12, 2024 7:22 PM UTC

Try executing en expression rule and concatenate in your integration the value recovered