You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2008/02/23 19:13:19 UTC

[jira] Created: (CXF-1451) Aegis + JAXWS + RPC -> empty hash maps?

Aegis + JAXWS + RPC -> empty hash maps?
---------------------------------------

                 Key: CXF-1451
                 URL: https://issues.apache.org/jira/browse/CXF-1451
             Project: CXF
          Issue Type: Bug
          Components: Aegis Databinding
    Affects Versions: 2.0.4, 2.1
            Reporter: Benson Margulies
            Assignee: Benson Margulies


A JAX-WS service declared RPC/Literal with Aegis as a data binding fails to return data in a hash map.

Needless to say, some refinement of the problem is required.

I've got a failing test case.


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


[jira] Commented: (CXF-1451) Aegis + JAXWS + RPC -> empty hash maps?

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572125#action_12572125 ] 

Daniel Kulp commented on CXF-1451:
----------------------------------


Well, ideally, it would build a "Any2AnyHashMap" that actually works.  (and the Set case you mentioned on the list would also build a AnySet that actually works).

I THINK the issue may be that they need to use the extra classes stuff to feed Aegis additional classes so that the object that is to be written can be resolved to a type and the proper xsi:type thing written out.


>From your second comment:  that is clearly wrong.   The className in the @ResponseWrapper MUST point to a valid wrapper bean.   A Map is not a valid wrapper bean.  For the most part, just remove that annotation.


> Aegis + JAXWS + RPC -> empty hash maps?
> ---------------------------------------
>
>                 Key: CXF-1451
>                 URL: https://issues.apache.org/jira/browse/CXF-1451
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.0.4, 2.1
>            Reporter: Benson Margulies
>            Assignee: Benson Margulies
>
> A JAX-WS service declared RPC/Literal with Aegis as a data binding fails to return data in a hash map.
> Needless to say, some refinement of the problem is required.
> I've got a failing test case.

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


[jira] Commented: (CXF-1451) Aegis + JAXWS + RPC -> empty hash maps?

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571918#action_12571918 ] 

Benson Margulies commented on CXF-1451:
---------------------------------------

Here's how the original sufferer managed  to get into this department.

@WebMethod(operationName = "getItemsAsMap")
    @ResponseWrapper(className = "java.util.HashMap",
                localName = "ItemsMap",
                targetNamespace = "http://rpc.aegis.cxf.apache.org")
    Map getItemsMap();

> Aegis + JAXWS + RPC -> empty hash maps?
> ---------------------------------------
>
>                 Key: CXF-1451
>                 URL: https://issues.apache.org/jira/browse/CXF-1451
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.0.4, 2.1
>            Reporter: Benson Margulies
>            Assignee: Benson Margulies
>
> A JAX-WS service declared RPC/Literal with Aegis as a data binding fails to return data in a hash map.
> Needless to say, some refinement of the problem is required.
> I've got a failing test case.

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


[jira] Commented: (CXF-1451) Aegis + JAXWS + RPC -> empty hash maps?

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571911#action_12571911 ] 

Benson Margulies commented on CXF-1451:
---------------------------------------

The issue here turns out to be a failure to tell Aegis about the type of the HashMap. However, there's a question. Is it a good thing to build an Any2AnyHashMap type that silently discards most or all input, as opposed to complaining or delivering something?


> Aegis + JAXWS + RPC -> empty hash maps?
> ---------------------------------------
>
>                 Key: CXF-1451
>                 URL: https://issues.apache.org/jira/browse/CXF-1451
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.0.4, 2.1
>            Reporter: Benson Margulies
>            Assignee: Benson Margulies
>
> A JAX-WS service declared RPC/Literal with Aegis as a data binding fails to return data in a hash map.
> Needless to say, some refinement of the problem is required.
> I've got a failing test case.

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