Skip to main content
March 12, 2024
Question

Nested Items in a SOAP Header

  • March 12, 2024
  • 7 replies
  • 0 views

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
March 12, 2024

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

adamm626Author
March 12, 2024

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
March 12, 2024

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

davidj137213
March 12, 2024
You are creating a Soap request and need to construct the message from the data stored in the database. it's right?
adamm626Author
March 12, 2024

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

davidj137213
March 12, 2024

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