Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: mitsie on November 09, 2022, 11:47:25 AM
-
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:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Error Code: 10944642 Error Message: Error: Inbound SOAP Message - Session Token is missing or invalid or has expired</faultstring><detail><siebelf:errorstack xmlns:siebelf="http://www.siebel.com/ws/fault"><siebelf:error><siebelf:errorsymbol /><siebelf:errormsg>Error: Inbound SOAP Message - Session Token is missing or invalid or has expired</siebelf:errormsg></siebelf:error></siebelf:errorstack></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
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><Comments>test</Comments><ActivityType>Mobile Inbound Action</ActivityType><IncidentId>2333333</IncidentId><PlateNum>ΙΟΖ5538</PlateNum><Company>GR</Company><CallerType>RA_1158</CallerType></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>
<Comments>test</Comments>
<ActivityType>Mobile Inbound Action</ActivityType>
<IncidentId>1101662</IncidentId>
<PlateNum>ΙΟΖ5538</PlateNum>
<Company>GR</Company>
<CallerType>RA_1158</CallerType>
</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)