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

Reply via email to