I have generated a Java client from an existing WSDL. Part of the WSDL is:
<xsd:element name="Patients" type="tns:TableOfBapi1084srch"/> Which resulted in this piece of code: @XmlElement(name = "Patients", required = true) protected TableOfBapi1084Srch patients; As you probably already assume from the "TableOfBapi1084srch" name, "Patients" is a container element which is reflected by an (Array)List in Java. All is fine so far. However, when this list is empty, the "Patients" element does not occur in the request (checked with Wireshark), and thus (since the "Patients" element is required) the web service reponse is not as expected. To me, this feels as a bug, and, more important, I don't have any clues how to fix this behavior. Any ideas/suggestions?
