Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
8.1.0.Final, 9.0.0.Alpha1
-
None
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?