[jbossws-issues] [JBoss JIRA] (JBWS-4097) JAXB doesn't (un)marshall property with @XmlElementRef
Radovan Netuka (JIRA)
issues at jboss.org
Thu Apr 12 10:21:00 EDT 2018
[ https://issues.jboss.org/browse/JBWS-4097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13560260#comment-13560260 ]
Radovan Netuka commented on JBWS-4097:
--------------------------------------
Reproducer:
Upload WAR from /target on EAP 7.1 (optionally build the WAR from sources yourself). Into your browser, enter http://localhost:8080/wsservice/index.xhtml and click on the button.
Expected result:
text displays an array of numbers
Actual result:
text displays null (the web service itself returns no result)
Source code highlights:
See IndexBean for sending the web service request. Check TestWebServiceImpl for the web service itself.
> JAXB doesn't (un)marshall property with @XmlElementRef
> ------------------------------------------------------
>
> Key: JBWS-4097
> URL: https://issues.jboss.org/browse/JBWS-4097
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Reporter: Viral Gohel
> Assignee: Radovan Netuka
> Fix For: jbossws-cxf-5.2.1.Final
>
> Attachments: Reproducer.zip
>
>
> The link, https://docs.oracle.com/cd/E19355-01/820-1072/ahiid/index.html it suggests that JAXBElement is required also if there are element nillable="true" and minOccurs="0" or if there are two global elements with the same named xsd:complexType.
> We always need a client to be regenerated using a jaxbBindings.xml with the option <jaxb:globalBindings generateElementProperty="false" />, the web service client is working.
> Some of the implementation except CXF, work without having the file, jaxbBindings.xml file. Is that an issue with jbossws-cxf ?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbossws-issues
mailing list