SOAPClient ignoring fields which are set after it generates `Zero or more repetitions: - cloned` in the output request
Issue
I have a WebService I would like to call. I created a customAction to fill the message with relevant data using a Map but the SoapAction ignores one of the fields consistently.
By looking at generated request - the populated message part and debugging SOAPUIClient class, I have noticed:
For some reason SOAPUIClient.injectParameters resolves:
String ognl = OGNLUtils.getOGNLExpression(element, soapNs);
to:
xxx.zzz.yyy[0]
instead of
xxx.zzz.yyy
which is why it fails to set the yyy field.
When it finds the comment "<!--Zero or more repetitions: - cloned-->" it assumes that the element is being repeated and then expects it to be declared as an array using [] brackets. It doesn't check if the element is actually repeatable though.
Environment
- JBoss SOA-P 5 (up to 5.3.1)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.