[jira] Created: (OFBIZ-3394) Axis2 SOAP implementation does not have types defined for col-* elements

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-3394) Axis2 SOAP implementation does not have types defined for col-* elements

Nicolas Malin (Jira)
Axis2 SOAP implementation does not have types defined for col-* elements
------------------------------------------------------------------------

                 Key: OFBIZ-3394
                 URL: https://issues.apache.org/jira/browse/OFBIZ-3394
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
            Reporter: chris snow


The wsdl generated from the Axis2 soap implementation does not define types for col-* elements:

{code}
<xsd:element name="col-ArrayList"/>
<xsd:element name="col-LinkedList"/>
<xsd:element name="col-Stack"/>
<xsd:element name="col-Vector"/>
<xsd:element name="col-TreeSet"/>
<xsd:element name="col-HashSet"/>
<xsd:element name="col-Collection"/>
{code}

I would expect to see something like:

{code}
<xsd:element name="col-ArrayList"  type="tns:XXX"/>

<xsd:complexType name="XXX">
   <!-- To be defined -->
</xsd:complexType>
{code}

Without type defintions, tools (such as wsdl2java) are unable to generate the appropriate classes for the col-* elements.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-3394) Axis2 SOAP implementation does not have types defined for col-* elements

Nicolas Malin (Jira)

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

Chatree Srichart updated OFBIZ-3394:
------------------------------------

    Attachment: patch.txt

Hi, Chris Snow

I created a patch for solve your issue but I can not test it because I have a eclipse problem with Axis2.
May you test it?

> Axis2 SOAP implementation does not have types defined for col-* elements
> ------------------------------------------------------------------------
>
>                 Key: OFBIZ-3394
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3394
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: chris snow
>         Attachments: patch.txt
>
>
> The wsdl generated from the Axis2 soap implementation does not define types for col-* elements:
> {code}
> <xsd:element name="col-ArrayList"/>
> <xsd:element name="col-LinkedList"/>
> <xsd:element name="col-Stack"/>
> <xsd:element name="col-Vector"/>
> <xsd:element name="col-TreeSet"/>
> <xsd:element name="col-HashSet"/>
> <xsd:element name="col-Collection"/>
> {code}
> I would expect to see something like:
> {code}
> <xsd:element name="col-ArrayList"  type="tns:XXX"/>
> <xsd:complexType name="XXX">
>    <!-- To be defined -->
> </xsd:complexType>
> {code}
> Without type defintions, tools (such as wsdl2java) are unable to generate the appropriate classes for the col-* elements.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-3394) Axis2 SOAP implementation does not have types defined for col-* elements

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-3394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797986#action_12797986 ]

chris snow commented on OFBIZ-3394:
-----------------------------------

Hi Chatree,

This is looking much better!  It still works ok with JAva, but unfortunately, it still doesn't work with Flex or .NET.  

The flex error message is:

{code}
TypeError: Cannot marshall type 'http://www.w3.org/2001/XMLSchema::MapMap' to simple content.
        at mx.rpc.xml::SchemaMarshaller/marshall()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\xml\SchemaMarshaller.as:87]
        at mx.rpc.xml::SchemaManager/marshall()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\xml\SchemaManager.as:412]
        at mx.rpc.xml::XMLEncoder/encodeType()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\xml\XMLEncoder.as:1418]
        at mx.rpc.soap::SOAPEncoder/encodeType()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:747]
        at mx.rpc.xml::XMLEncoder/encode()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\xml\XMLEncoder.as:80]
        at mx.rpc.soap::SOAPEncoder/encode()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:690]
        at mx.rpc.soap::SOAPEncoder/encodePartValue()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:597]
        at mx.rpc.soap::SOAPEncoder/encodeMessage()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:548]
        at mx.rpc.soap::SOAPEncoder/encodeOperationAsRPCLiteral()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:430]
        at mx.rpc.soap::SOAPEncoder/encodeBody()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:334]
        at mx.rpc.soap::SOAPEncoder/encodeEnvelope()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:188]
        at mx.rpc.soap::SOAPEncoder/encodeRequest()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:158]
        at generated.webservices::BasefindPartiesById/call()[C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\MyFlex\src\generated\webservices\BasefindPartiesById.as:150]
        at generated.webservices::BasefindPartiesById/findPartiesById()[C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\MyFlex\src\generated\webservices\BasefindPartiesById.as:134]
        at generated.webservices::FindPartiesById/findPartiesById()[C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\MyFlex\src\generated\webservices\FindPartiesById.as:74]
        at generated.webservices::FindPartiesById/findPartiesById_send()[C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\MyFlex\src\generated\webservices\FindPartiesById.as:84]
        at MyFlex/findPartiesById()[C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\MyFlex\src\MyFlex.mxml:33]
        at MyFlex/___MyFlex_Button1_click()[C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\MyFlex\src\MyFlex.mxml:60]
{code}

It seems as though flex sees MapMap in the namespace http://www.w3.org/2001/XMLSchema ?

Any ideas?

Many thanks,

Chris

> Axis2 SOAP implementation does not have types defined for col-* elements
> ------------------------------------------------------------------------
>
>                 Key: OFBIZ-3394
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3394
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: chris snow
>         Attachments: patch.txt
>
>
> The wsdl generated from the Axis2 soap implementation does not define types for col-* elements:
> {code}
> <xsd:element name="col-ArrayList"/>
> <xsd:element name="col-LinkedList"/>
> <xsd:element name="col-Stack"/>
> <xsd:element name="col-Vector"/>
> <xsd:element name="col-TreeSet"/>
> <xsd:element name="col-HashSet"/>
> <xsd:element name="col-Collection"/>
> {code}
> I would expect to see something like:
> {code}
> <xsd:element name="col-ArrayList"  type="tns:XXX"/>
> <xsd:complexType name="XXX">
>    <!-- To be defined -->
> </xsd:complexType>
> {code}
> Without type defintions, tools (such as wsdl2java) are unable to generate the appropriate classes for the col-* elements.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-3394) Axis2 SOAP implementation does not have types defined for col-* elements

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Bilgin Ibryam reassigned OFBIZ-3394:
------------------------------------

    Assignee: Bilgin Ibryam

> Axis2 SOAP implementation does not have types defined for col-* elements
> ------------------------------------------------------------------------
>
>                 Key: OFBIZ-3394
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3394
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: chris snow
>            Assignee: Bilgin Ibryam
>         Attachments: patch.txt
>
>
> The wsdl generated from the Axis2 soap implementation does not define types for col-* elements:
> {code}
> <xsd:element name="col-ArrayList"/>
> <xsd:element name="col-LinkedList"/>
> <xsd:element name="col-Stack"/>
> <xsd:element name="col-Vector"/>
> <xsd:element name="col-TreeSet"/>
> <xsd:element name="col-HashSet"/>
> <xsd:element name="col-Collection"/>
> {code}
> I would expect to see something like:
> {code}
> <xsd:element name="col-ArrayList"  type="tns:XXX"/>
> <xsd:complexType name="XXX">
>    <!-- To be defined -->
> </xsd:complexType>
> {code}
> Without type defintions, tools (such as wsdl2java) are unable to generate the appropriate classes for the col-* elements.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-3394) Axis2 SOAP implementation does not have types defined for col-* elements

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-3394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798631#action_12798631 ]

chris snow commented on OFBIZ-3394:
-----------------------------------

Hi bibryam,

Should we close this issue, and raise a new one for the specific flex problem above?

Many thanks,

Chris

> Axis2 SOAP implementation does not have types defined for col-* elements
> ------------------------------------------------------------------------
>
>                 Key: OFBIZ-3394
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3394
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: chris snow
>            Assignee: Bilgin Ibryam
>         Attachments: patch.txt
>
>
> The wsdl generated from the Axis2 soap implementation does not define types for col-* elements:
> {code}
> <xsd:element name="col-ArrayList"/>
> <xsd:element name="col-LinkedList"/>
> <xsd:element name="col-Stack"/>
> <xsd:element name="col-Vector"/>
> <xsd:element name="col-TreeSet"/>
> <xsd:element name="col-HashSet"/>
> <xsd:element name="col-Collection"/>
> {code}
> I would expect to see something like:
> {code}
> <xsd:element name="col-ArrayList"  type="tns:XXX"/>
> <xsd:complexType name="XXX">
>    <!-- To be defined -->
> </xsd:complexType>
> {code}
> Without type defintions, tools (such as wsdl2java) are unable to generate the appropriate classes for the col-* elements.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-3394) Axis2 SOAP implementation does not have types defined for col-* elements

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Bilgin Ibryam closed OFBIZ-3394.
--------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk

Thanks Chris and Chatree. The patch is in trunk r897820

After reviewing the patch I decided to create a new complex type with all the elements (the same as map-value) and then reference this element from map-value and col-Collection instead of adding all the elements. This would help to get rid of element repetition, but this change cause generating even more classes for java clients. Finally I committed the patch as it is.

Chris feel free to create another issue for the flex error you receive. I'm closing this one.

Bilgin

> Axis2 SOAP implementation does not have types defined for col-* elements
> ------------------------------------------------------------------------
>
>                 Key: OFBIZ-3394
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3394
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: chris snow
>            Assignee: Bilgin Ibryam
>             Fix For: SVN trunk
>
>         Attachments: patch.txt
>
>
> The wsdl generated from the Axis2 soap implementation does not define types for col-* elements:
> {code}
> <xsd:element name="col-ArrayList"/>
> <xsd:element name="col-LinkedList"/>
> <xsd:element name="col-Stack"/>
> <xsd:element name="col-Vector"/>
> <xsd:element name="col-TreeSet"/>
> <xsd:element name="col-HashSet"/>
> <xsd:element name="col-Collection"/>
> {code}
> I would expect to see something like:
> {code}
> <xsd:element name="col-ArrayList"  type="tns:XXX"/>
> <xsd:complexType name="XXX">
>    <!-- To be defined -->
> </xsd:complexType>
> {code}
> Without type defintions, tools (such as wsdl2java) are unable to generate the appropriate classes for the col-* elements.

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