You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Nash (JIRA)" <de...@tuscany.apache.org> on 2010/11/26 21:31:14 UTC

[jira] Created: (TUSCANY-3800) Introspecting JAX-WS array parameter or return type can produce incorrect QName

Introspecting JAX-WS array parameter or return type can produce incorrect QName
-------------------------------------------------------------------------------

                 Key: TUSCANY-3800
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3800
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Axis Binding Extension
    Affects Versions: Java-SCA-1.6.1
            Reporter: Simon Nash
            Assignee: Simon Nash
             Fix For: Java-SCA-1.x


The interface introspection algorithm in JAXWSJavaInterfaceProcessor adjusts the XML element QNames of the interface's parameter types and return type.  The code that does this doesn't account for array types, with the result that QNames for array types aren't adjusted and in some cases are incorrect in the introspected interface and the generated WSDL.

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


[jira] Commented: (TUSCANY-3800) Incorrect WSDL generated for JAX-WS array parameter or return type in some cases

Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-3800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12966816#action_12966816 ] 

Simon Nash commented on TUSCANY-3800:
-------------------------------------

The Interface2WSDLGenerator problem with multi-dimensional arrays is caused by code in getTypeHelper() which only dereferences a single indirection from a java:array DataType.  A two-dimensional array has a double java:array DataType indirection, so a dereferencing loop is needed.

This specific problem is fixed in the 1.x trunk under revisions r1042122 and r1042123.

I'm leaving this JIRA open while I do further investigations on other array-related problems.

> Incorrect WSDL generated for JAX-WS array parameter or return type in some cases
> --------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3800
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3800
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-1.6.1
>            Reporter: Simon Nash
>            Assignee: Simon Nash
>             Fix For: Java-SCA-1.x
>
>
> The interface introspection algorithm in JAXWSJavaInterfaceProcessor adjusts the XML element QNames of the interface's parameter types and return type.  The code that does this doesn't account for array types, with the result that QNames for array types aren't adjusted and in some cases are incorrect in the introspected interface and the generated WSDL.
> In addition there is code in Interface2WSDLGenerator that doesn't handle array types correctly, which produces incorrect WSDL for multi-dimensional array parameters.  I'm extending the scope of this issue to cover all array-related introspection and WSDL generation problems.

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


[jira] Updated: (TUSCANY-3800) Incorrect WSDL generated for JAX-WS array parameter or return type in some cases

Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Nash updated TUSCANY-3800:
--------------------------------

    Description: 
The interface introspection algorithm in JAXWSJavaInterfaceProcessor adjusts the XML element QNames of the interface's parameter types and return type.  The code that does this doesn't account for array types, with the result that QNames for array types aren't adjusted and in some cases are incorrect in the introspected interface and the generated WSDL.

In addition there is code in Interface2WSDLGenerator that doesn't handle array types correctly, which produces incorrect WSDL for multi-dimensional array parameters.  I'm extending the scope of this issue to cover all array-related introspection and WSDL generation problems.

  was:The interface introspection algorithm in JAXWSJavaInterfaceProcessor adjusts the XML element QNames of the interface's parameter types and return type.  The code that does this doesn't account for array types, with the result that QNames for array types aren't adjusted and in some cases are incorrect in the introspected interface and the generated WSDL.

        Summary: Incorrect WSDL generated for JAX-WS array parameter or return type in some cases  (was: Introspecting JAX-WS array parameter or return type can produce incorrect QName)

This array introspection problem doesn't only affect JAXWSJavaInterfaceProcessor and element QNames.  There is code in Interface2WSDLGenerator that doesn't handle array types correctly, which produces incorrect WSDL for multi-dimensional array parameters.  I'm extending the scope of this issue to cover all array-related introspection and WSDL generation problems.

> Incorrect WSDL generated for JAX-WS array parameter or return type in some cases
> --------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3800
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3800
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-1.6.1
>            Reporter: Simon Nash
>            Assignee: Simon Nash
>             Fix For: Java-SCA-1.x
>
>
> The interface introspection algorithm in JAXWSJavaInterfaceProcessor adjusts the XML element QNames of the interface's parameter types and return type.  The code that does this doesn't account for array types, with the result that QNames for array types aren't adjusted and in some cases are incorrect in the introspected interface and the generated WSDL.
> In addition there is code in Interface2WSDLGenerator that doesn't handle array types correctly, which produces incorrect WSDL for multi-dimensional array parameters.  I'm extending the scope of this issue to cover all array-related introspection and WSDL generation problems.

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