Header is missing from SOAP request through IRD web service block

Hello there,

I am trying to call a https web service from IRD web service block and I get the following error message:

<?xml version="1.0" encoding="utf-8"?>SOAP-ENV:ClientError Code: 10944642 Error Message: Error: Inbound SOAP Message - Session Token is missing or invalid or has expiredError: Inbound SOAP Message - Session Token is missing or invalid or has expired

I have noticed that header is missing from SOAP request:

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:cus=“http://siebel.com/CustomUI”><SOAP-ENV:Body SOAP-ENV:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/”>cus:INT_spcEmfassis_spcCreate_spcMobile_spcActivity_spcProcesstestMobile Inbound Action2333333ΙΟΖ5538GRRA_1158</cus:INT_spcEmfassis_spcCreate_spcMobile_spcActivity_spcProcess></SOAP-ENV:Body></SOAP-ENV:Envelope>

Has anyone idea how can I overcome this?

Thanks in advance.

Best Regards,

Efi Mitsi

Which header is missing? For what the error shows, you are missing a previous Token.
Remember that the SOAP headers are built based on the WSDL

Thank you cavagnaro for your reply.

Through postman application the request is as below:

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:cus=“http://siebel.com/CustomUI”>
soapenv:Header
<web:UsernameToken xmlns:web=“http://siebel.com/webservices”></web:UsernameToken>
<web:PasswordText xmlns:web=“http://siebel.com/webservices”>
</web:PasswordText>
<web:SessionType xmlns:web=“http://siebel.com/webservices”>None</web:SessionType>
</soapenv:Header>
soapenv:Body
cus:INT_spcEmfassis_spcCreate_spcMobile_spcActivity_spcProcess
test
Mobile Inbound Action
1101662
ΙΟΖ5538
GR
RA_1158
</cus:INT_spcEmfassis_spcCreate_spcMobile_spcActivity_spcProcess>
</soapenv:Body>
</soapenv:Envelope>

I mean that soapenv:Header is missing when I run it through IRD web service block.

Thanks in advance.

Best Regards,

Efi

You can configure user and password in SOAP Security section on Security tab of Web service object.

R.

Hello Rene,

Do you mean “Name” and “Password” of “HTTP Authentication” of Security tab or “Actor/Role” and “Type” of “SOAP Security” of Security tab;

Best Regards,

Efi

In SOAP Security, set ‘Type’ to ‘UsernameTokenText’ and fill in Name/Password value.

What about ‘Actor/Role’; Should I leave it blank;

I was wondering what version of URS application should be installed in order to add headers to the SOAP envelope sent to a web service.

Has anyone any idea?

Basically SOAP Security section on Security tab of Web service should support usernametoken and password.
From 8.1.400.64 (might be wrong about version ) URS provides possibility to set custom SOAP headers - just add them in regular list of SOAP request parameters but every of them should start with SOAP-ENV:Header. (SOAP-ENV:Header.ABC, etc)