Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3987

Regression regarding WS Client when using header authentication

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 8.1.0.Final, 9.0.0.Alpha1
    • Web Services
    • None
    • Hide

      Use a WSDL file that contains information that should be sent in Soap header

      Show
      Use a WSDL file that contains information that should be sent in Soap header

    Description

      I'm trying to integrate a Web Service client based on BMC Remedy product where Web service authentication is handled in Soap Header and not basic authentication. See AuthenticationInfo element on https://github.com/macmorning/itsm_mobileview/blob/master/SoapUI%20Projects/HPD-IncidentInterface-WS---v8-soapui-project.xml for an example of how the WSDL file looks like.

      I've enabled Xadditionalheaders so I get the AuthenticationInfo as the last argument, like this:

      port.helpDeskQueryListService(qualification, startRecord, maxLimit, authInfo);
      

      Problem is that this was working fine in WildFly 8.0 generating the following SOAP Request:

      ID: 1
      Address: https://SERVER/arsys/services/ARService?server=SERVER&webService=HPD_IncidentInterface_WS
      Encoding: UTF-8
      Http-Method: POST
      Content-Type: text/xml
      Headers: {Accept=[*/*], SOAPAction=["urn:HPD_IncidentInterface_WS/HelpDesk_QueryList_Service"]}
      Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><AuthenticationInfo xmlns="urn:HPD_IncidentInterface_WS"><userName>SECRETUSER</userName><password>SECRETPASSWORD</password></AuthenticationInfo></soap:Header><soap:Body><HelpDesk_QueryList_Service xmlns="urn:HPD_IncidentInterface_WS"><Qualification>'Status' = "Closed"</Qualification><startRecord>0</startRecord><maxLimit>1000</maxLimit></HelpDesk_QueryList_Service></soap:Body></soap:Envelope>
      

      With 8.1 it's generating a completly different payload with the Header element in Body and body completly missing :

      ID: 2
      Address: https://SERVER/arsys/services/ARService?server=SERVER&webService=HPD_IncidentInterface_WS
      Encoding: UTF-8
      Http-Method: POST
      Content-Type: text/xml
      Headers: {Accept=[*/*], SOAPAction=["urn:HPD_IncidentInterface_WS/HelpDesk_QueryList_Service"]}
      Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><HelpDesk_QueryList_Service xmlns="urn:HPD_IncidentInterface_WS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AuthenticationInfo"><userName>SECRETUSER</userName><password>SECRETPASSWORD</password></HelpDesk_QueryList_Service></soap:Body></soap:Envelope>
      

      I've also tried 9.0.0.Alpha1 with same result. What could be wrong?

      Attachments

        Activity

          People

            rhn-engineering-ema Jim Ma
            wildmdc Marcus Carlson (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: