Details
Description
An explicit Soap header is causing issues due to having the same QName as the wrapped Soap body
<wsdl:message name="ARAuthenticate">
<wsdl:part element="s0:AuthenticationInfo" name="parameters"/>
</wsdl:message>
<wsdl:message name="GetWorkOrdersListSoapIn">
<wsdl:part element="s0:GetWorkOrdersList" name="parameters"/>
</wsdl:message>
This results in a MessageInfo object with 1 messagePart and 1 outOfbandPart, both having the same QName.
Problem is that in the WrapperClassInInterceptor we loop over messageInfo.getMessageParts which actually returns the combined list of messageParts and outOfBandParts.
Now for the header part with QName "
{urn:VF_WorkOrders}parameters" we do a lookup wrappedMessageInfo.getMessagePart(part.getName()) which incorrectly retrieves the wrapped input messagePart.
for (MessagePartInfo part : messageInfo.getMessageParts()) {
if (Boolean.TRUE.equals(part.getProperty(ReflectionServiceFactoryBean.HEADER))) {
MessagePartInfo mpi = wrappedMessageInfo.getMessagePart(part.getName());
if (mpi != null && lst.hasValue(mpi))
else if (mpi == null || mpi.getTypeClass() == null) {
//header, but not mapped to a param on the method
if (removes == null)
removes.add(part.getIndex());
}
} else
}