mitsie
November 9, 2022, 11:47am
1
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_spcProcess testMobile 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
mitsie
November 9, 2022, 7:21pm
3
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
Rene
November 9, 2022, 7:40pm
4
You can configure user and password in SOAP Security section on Security tab of Web service object.
R.
mitsie
November 9, 2022, 7:51pm
5
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
Rene
November 9, 2022, 8:05pm
6
In SOAP Security, set ‘Type’ to ‘UsernameTokenText’ and fill in Name/Password value.
mitsie
November 10, 2022, 5:48am
7
What about ‘Actor/Role’; Should I leave it blank;
mitsie
November 11, 2022, 11:07am
8
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?
terry
December 2, 2022, 2:50am
9
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)