Hello,

started working a new project (new to me, the project exists for a
while) and I've a contract last (not my choice, only have to live with
it) CXF WebService here running on a Tomcat with Spring. In this
WebService's Interface there is a method like this...

@WebResult(name = "return", partName = "return")
@WebMethod   
SubmitDocumentResponse submitDocument(@WebParam(partName = "document",
name = "document") Document document, @WebParam(partName =
"costEstimate", name = "costEstimate") CostEstimate costEstimate,
@WebParam(partName = "fileAttachments", name = "fileAttachments")
List<FileAttachment> fileAttachments) throws
SoapInsuranceException_Exception;

My "problem" now is, that the WSDL created by CXF allows nil/null
fileAttachment elements in the fileAttachments list. Is there an easy
way to change that? There doesn't seem to be any customization around
(at least, none that I found) so it should be pretty much default...

Another detail: It seems that all List<FileAttachment> parameters get
converted into a single element:

<xs:complexType final="#all" name="fileAttachmentArray">
        <xs:sequence>
                <xs:element maxOccurs="unbounded" minOccurs="0" name="item"
nillable="true" type="tns:fileAttachment"/>
        </xs:sequence>
</xs:complexType>

...which would be ok, if the nillable was "false" ;-)

If anyone had a good idea how to change it, I would be really
grateful...

Regards,

Flo

Reply via email to