When calling a single element webservice query (such as getById), soap response 
doubly nests member collections.
----------------------------------------------------------------------------------------------------------------

         Key: WS-25
         URL: http://jira.andromda.org/browse/WS-25
     Project: WebService Cartridge
        Type: Bug

 Environment: andromda 3.2/3.3, axis2, maven, java 6, spring
    Reporter: Michael Brindamour
 Assigned to: Chad Brandon 


I have modeled an object, MyObject, with 2 nested collections of type 
My2ndObject and My3rdObject.  While multiple object webservice queries seem to 
return correctly (such as getAllMyObjects), single object queries return doubly 
nested... wsCartridge config and sample response is below:


Sample Response: 

<soapenv:Envelope>

<soapenv:Body>

<getMyObjectByIdResponse>

<ns1:getMyObjectByIdReturn>
<ns1:id>1</ns1:id>
<ns1:name>Windows Applications</ns1:name>
<ns1:My2ndObject/>

<ns1:subCategories>

<ns1:subCategories xsi:type="ns1:MyObject">
<ns1:id>2</ns1:id>
<ns1:name>Word Processing</ns1:name>

<ns1:my2ndObjects>

<ns1:my2ndObjects xsi:type="ns1:My2ndObject">
<ns1:dateAdded>1221240330892</ns1:dateAdded>
<ns1:fssnId>1221240330892</ns1:fssnId>
<ns1:id>2</ns1:id>
<ns1:name>word</ns1:name>
<ns1:version>1.0</ns1:version>
</ns1:my2ndObjects>
</ns1:my2ndObjects>

<ns1:subCategories>

<ns1:subCategories xsi:type="ns1:MyObject">
<ns1:id>3</ns1:id>
<ns1:name>notepads</ns1:name>
<ns1:my2ndObjects/>
<ns1:subCategories/>
</ns1:subCategories>
</ns1:subCategories>
</ns1:subCategories>

<ns1:subCategories xsi:type="ns1:MyObject">
<ns1:id>4</ns1:id>
<ns1:name>Database</ns1:name>
<ns1:my2ndObjects/>
<ns1:subCategories/>
</ns1:subCategories>
</ns1:subCategories>
</ns1:getMyObjectByIdReturn>
</getMyObjectByIdResponse>
</soapenv:Body>
</soapenv:Envelope>


andromda.xml:
 <namespace name="webservice">
            <properties>
                <property 
name="schemaTypeMappingsUri">AxisWSDLMappings</property>
                <property name="languageMappingsUri">AxisJavaMappings</property>
                <property name="defaultProvider">RPC</property>
                <property name="defaultStyle">wrapped</property>
                <property name="defaultUse">literal</property>
                <property 
name="wsdlSoapAddress">http://${webservice.host}:${webservice.port}/axis/services</property>
                                <property 
name="namespacePattern">http://my.com/schema/V1.0.0</property>
                                <property 
name="rpcClassNamePattern">{0}.{1}WSDelegator</property>
                <property name="applicationName">MyServer</property>
                <property name="wsdls">${webservice.generated.dir}</property>
                <property 
name="configuration">${webservice.generated.dir}</property>
                <property 
name="webservice-types">${core.generated.dir}</property>
                <property 
name="mergeMappingsUri">file:${pom.basedir}/conf/wsmerge.xml</property>
            </properties>
        </namespace> 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Reply via email to