cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jervis Liu (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (CXF-677) Wrong types are generated for SwA
Date Fri, 25 May 2007 07:11:16 GMT

     [ https://issues.apache.org/jira/browse/CXF-677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jervis Liu reassigned CXF-677:
------------------------------

    Assignee: jimma

> Wrong types are generated for SwA
> ---------------------------------
>
>                 Key: CXF-677
>                 URL: https://issues.apache.org/jira/browse/CXF-677
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-RC
>            Reporter: Dan Diephouse
>         Assigned To: jimma
>             Fix For: 2.0
>
>         Attachments: custom-server.xml, hello.wsdl
>
>
> For the attached WSDL, CXF generates the following:
>     @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
>     @WebMethod
>     public void echoDataWithEnableMIMEContent(
>         @WebParam(targetNamespace = "http://example.org/mime/data", partName = "body",
name = "mimeBody")
>         java.lang.String body,
>         @WebParam(mode = Mode.INOUT, partName = "data", name = "data")
>         javax.xml.ws.Holder<java.awt.Image> data
>     );
>     @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
>     @WebMethod
>     public void echoData(
>         @WebParam(targetNamespace = "http://example.org/mime/data", partName = "body",
name = "body")
>         java.lang.String body,
>         @WebParam(mode = Mode.INOUT, partName = "data", name = "data")
>         javax.xml.ws.Holder<java.awt.Image> data
>     );
> The JAX-WS generates this:
>     /**
>      * 
>      * @param data
>      * @param body
>      */
>     @WebMethod
>     public void echoData(
>         @WebParam(name = "body", targetNamespace = "http://example.org/mime/data", partName
= "body")
>         String body,
>         @WebParam(name = "data", targetNamespace = "", mode = Mode.INOUT, partName =
"data")
>         Holder<byte[]> data);
>     /**
>      * 
>      * @param data
>      * @param body
>      */
>     @WebMethod
>     public void echoDataWithEnableMIMEContent(
>         @WebParam(name = "mimeBody", targetNamespace = "http://example.org/mime/data",
partName = "body")
>         String body,
>         @WebParam(name = "data", targetNamespace = "", mode = Mode.INOUT, partName =
"data")
>         Holder<Image> data);
> The echoData() should have a byte[] array not an Image.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message