[ 
https://issues.apache.org/jira/browse/CXF-5935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14092660#comment-14092660
 ] 

Sergey Beryozkin commented on CXF-5935:
---------------------------------------

First of all, a minor issue in the WADL doc:

{code:xml}
<request>
                                        <representation 
mediaType="multipart/form-data" >
                                                <param name="action" 
style="query" type="xs:anyType" />
                                        </representation>
                                        <representation 
mediaType="multipart/form-data" >
                                                <param name="sources" 
style="query" type="xs:anyType" />
                                        </representation>
                                </request>
{code}
These 2 representations do not represent a single multipart request. These are 
2 alternative representations.
Now, the option which will work right now is as follows:

{code:xml}
<request>
                                        <representation 
mediaType="multipart/form-data">
                                              <param name="action" 
style="query" type="xs:anyType" />
                                              <param name="sources" 
style="query" type="xs:anyType" />
                                        </representation>
{code}

and use a media type map command line arg to map "multipart/form-data" to CXF 
MultipartBody.

Having a signature generated as per your request is feasible but a new option 
would have to be introduced and a tMap would have to link xs:anyType to 
InputStream

> [wadl2java] Multipart method doesn't generate @Multipart params
> ---------------------------------------------------------------
>
>                 Key: CXF-5935
>                 URL: https://issues.apache.org/jira/browse/CXF-5935
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.12
>            Reporter: Alexey Markevich
>         Attachments: wadl2java-multipart.zip
>
>
> Expected method signature:
> String put(@Multipart(value="action") java.io.InputStream action, 
> @Multipart(value="sources") java.io.InputStream sources);



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to