" /> Header is missing from SOAP request through IRD web service block - Genesys CTI User Forum

Author Topic: Header is missing from SOAP request through IRD web service block  (Read 1676 times)

Offline mitsie

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Advertisement
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>&#921;&#927;&#918;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

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Header is missing from SOAP request through IRD web service block
« Reply #1 on: November 09, 2022, 03:21:45 PM »
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

Offline mitsie

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Header is missing from SOAP request through IRD web service block
« Reply #2 on: November 09, 2022, 07:21:55 PM »
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

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Header is missing from SOAP request through IRD web service block
« Reply #3 on: November 09, 2022, 07:40:01 PM »
You can configure user and password in SOAP Security section on Security tab of Web service object.

R.

Offline mitsie

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Header is missing from SOAP request through IRD web service block
« Reply #4 on: November 09, 2022, 07:51:31 PM »
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

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Header is missing from SOAP request through IRD web service block
« Reply #5 on: November 09, 2022, 08:05:20 PM »
In SOAP Security, set 'Type' to 'UsernameTokenText' and fill in Name/Password value.

Offline mitsie

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Header is missing from SOAP request through IRD web service block
« Reply #6 on: November 10, 2022, 05:48:07 AM »
What about 'Actor/Role'; Should I leave it blank;

Offline mitsie

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Header is missing from SOAP request through IRD web service block
« Reply #7 on: November 11, 2022, 11:07:44 AM »
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?

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Header is missing from SOAP request through IRD web service block
« Reply #8 on: December 02, 2022, 02:50:05 AM »
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)