How to use the Headers in the SOAP Step?

JLeong
Mega Sage

Hi Guys,

 

We are in the process of creating multiple Flow Actions for our integration. We are using the SOAP Step with lots of inputs. We reached the maximum inputs allowed and we are thinking of using the Headers for some like:

  • PartyID
  • AgreementID
  • Service
  • Action
  • MessageID
  • UserName
  • Password

We have properties for all these because they are all consistently being used for all our actions.

 

This is a sample of our MessageHeader:

 

<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<m:StoreOrderRequest xmlns:m="http://b2b.att.com/wsdl/OrderingMobility/v8_0">
<m0:MessageHeader xmlns:m0="http://b2b.att.com/schema/MsgHeader/v1_0">
<m0:From>
<m0:PartyId>xxxxxxxx</m0:PartyId>
</m0:From>
<m0:To>
<m0:PartyId>xxxxxxxx</m0:PartyId>
</m0:To>
<m0:AgreementId>xxxxxxxx</m0:AgreementId>
<m0:Service>Ordering Mobility</m0:Service>
<m0:Action>StoreOrderRequest</m0:Action>
<m0:MessageData>
<m0:MessageId>xxxxxxxx</m0:MessageId>
<m0:Timestamp>2024-01-05T14:34:40+02:00</m0:Timestamp>
<m0:RefToMessageId/>
</m0:MessageData>
<m0:Credentials>
<m0:UserName>xxxxxxxx</m0:UserName>
<m0:Password type="Clear">xxxxxxxx</m0:Password>
</m0:Credentials>
</m0:MessageHeader>
 
I populate the Headers with the correct data and I took out the Header Section from the SOAP Env
JLeong_0-1705001981614.png

 

I got a 500 Status Code

I am doing it wrong, could someone please help?

 

Thank you!

 

 
 

 

 

2 REPLIES 2

David Whaley
Mega Sage

That looks correct but I always have a Content-Type in the header defined also which could be a value of 'text/xml' or something else

DavidWhaley_0-1705004256989.png

Thanks,

David Whaley

 

Hi David,

 

Thanks for the response. I added the Content - Type and it still not working.

I still get 500 error code

 

Thanks.