You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jervis Liu (JIRA)" <ji...@apache.org> on 2007/05/25 09:11:16 UTC

[jira] Assigned: (CXF-677) Wrong types are generated for SwA

     [ 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.