[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2708) XmlAttachmentRef annotation on List<DataHandler> is not identified as an Attachment part

Magesh Kumar B (JIRA) jira-events at lists.jboss.org
Tue Jul 28 10:18:29 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBWS-2708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12477903#action_12477903 ] 

Magesh Kumar B commented on JBWS-2708:
--------------------------------------

Fixed and available in trunk. Awaiting TCK test results

Running org.jboss.test.ws.jaxws.samples.swaref.SWARefTestCase
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 34.016 sec

> XmlAttachmentRef annotation on List<DataHandler> is not identified as an Attachment part
> ----------------------------------------------------------------------------------------
>
>                 Key: JBWS-2708
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2708
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-native
>    Affects Versions:  jbossws-native-3.1.2
>            Reporter: Magesh Kumar B
>            Assignee: Magesh Kumar B
>             Fix For: jbossws-native-3.2.0
>
>
> Consider a complex type
>   <complexType name="ArrayOfSwaRef">
>     <sequence>
>      <element maxOccurs="unbounded" minOccurs="0" name="swaRef" nillable="true" type="wsi:swaRef"/>
>     </sequence>
>    </complexType>
> Using wsconsume the type is mapped to the class:
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "ArrayOfSwaRef", propOrder = {
>     "swaRef"
> })
> public class ArrayOfSwaRef {
>     @XmlAttachmentRef
>     protected List<DataHandler> swaRef;
> ....
> }
> Although if such a construct is allowed is debatable as API http://java.sun.com/javase/6/docs/api/javax/xml/bind/annotation/XmlAttachmentRef.html says that the filed/property must always map to a DataHandler class, jbossws-native misses to scan such parameter types properly and eventually the Content-Type is never set to multipart/related on the wire.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossws-issues mailing list