You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Hasan Muhammad (JIRA)" <de...@tuscany.apache.org> on 2011/03/11 13:33:59 UTC

[jira] Created: (TUSCANY-3844) Complex Component level property attributed not being save back

Complex Component level property attributed not being save back
---------------------------------------------------------------

                 Key: TUSCANY-3844
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3844
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Assembly Model
    Affects Versions: Java-SCA-1.5
            Reporter: Hasan Muhammad


When we have a complex component property such as in the following composite, the ExtensibleStAXArtifactProcessor.write() strips off all the object data that is nested within the property tag.

<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"     
    xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
    xmlns:qos="http://www.ibm.com/xmlns/prod/websphere/sca/1.0/2007/06"
    targetNamespace="http://erww.workload"
    xmlns:orderstatus_input="http://www.erww.com/OrderStatusInput"
    name="OrderStatusComposite">


    <component name="OrderStatusServiceComponent">
        <implementation.java class="orderstatus.sca.jdbc.OrderStatusServiceImpl" requires="managedTransaction.local"/>
	    <service name="OrderStatusService">
       		<interface.wsdl xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance" 
            	interface="http://jdbc.sca.orderstatus#wsdl.interface(OrderStatusService)"          
               	wsdli:wsdlLocation="http://jdbc.sca.orderstatus OrderStatusService.wsdl"/> 
            <binding.ws wsdlElement="http://jdbc.sca.orderstatus#wsdl.port(OrderStatusServiceWebService/OrderStatusServiceSOAP11port)"   qos:wsPolicySet="WSHTTPS default" />           
        </service> 
        
        <property name="orderStatusProp" type="orderstatus_input:OrderStatusInputType">
            <orderStatusInput xmlns="http://www.erww.com/OrderStatusInput" 
                customerWarehouseId="1"
                customerDistrictId="2"
                customerId="3"
                customerLastName="Guster"
                byLastName="true">
            </orderStatusInput>
        </property>
    </component>
    
</composite>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Closed: (TUSCANY-3844) Complex Component level property attributed not being save back

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

ant elder closed TUSCANY-3844.
------------------------------

    Resolution: Not A Problem

I heard from the user that this issue was not due to a Tuscany problem

> Complex Component level property attributed not being save back
> ---------------------------------------------------------------
>
>                 Key: TUSCANY-3844
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3844
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Assembly Model
>    Affects Versions: Java-SCA-1.5
>            Reporter: Hasan Muhammad
>
> When we have a complex component property such as in the following composite, the ExtensibleStAXArtifactProcessor.write() strips off all the object data that is nested within the property tag.
> <?xml version="1.0" encoding="UTF-8"?>
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"     
>     xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
>     xmlns:qos="http://www.ibm.com/xmlns/prod/websphere/sca/1.0/2007/06"
>     targetNamespace="http://erww.workload"
>     xmlns:orderstatus_input="http://www.erww.com/OrderStatusInput"
>     name="OrderStatusComposite">
>     <component name="OrderStatusServiceComponent">
>         <implementation.java class="orderstatus.sca.jdbc.OrderStatusServiceImpl" requires="managedTransaction.local"/>
> 	    <service name="OrderStatusService">
>        		<interface.wsdl xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance" 
>             	interface="http://jdbc.sca.orderstatus#wsdl.interface(OrderStatusService)"          
>                	wsdli:wsdlLocation="http://jdbc.sca.orderstatus OrderStatusService.wsdl"/> 
>             <binding.ws wsdlElement="http://jdbc.sca.orderstatus#wsdl.port(OrderStatusServiceWebService/OrderStatusServiceSOAP11port)"   qos:wsPolicySet="WSHTTPS default" />           
>         </service> 
>         
>         <property name="orderStatusProp" type="orderstatus_input:OrderStatusInputType">
>             <orderStatusInput xmlns="http://www.erww.com/OrderStatusInput" 
>                 customerWarehouseId="1"
>                 customerDistrictId="2"
>                 customerId="3"
>                 customerLastName="Guster"
>                 byLastName="true">
>             </orderStatusInput>
>         </property>
>     </component>
>     
> </composite>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (TUSCANY-3844) Complex Component level property attributed not being save back

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

ant elder commented on TUSCANY-3844:
------------------------------------

I've not been able to recreate this yet, can you provide any more details or a testcase?

There is a unit test for reading and writing properties which works ok. Its at assembly-xml\src\test\java\org\apache\tuscany\sca\assembly\xml\WriteAllTestCase.java which uses the TestAllCalculator.composite and already has some properties but i've also tried adding the orderStatusProp property from the composite in this jira and that seems to work ok too. 



> Complex Component level property attributed not being save back
> ---------------------------------------------------------------
>
>                 Key: TUSCANY-3844
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3844
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Assembly Model
>    Affects Versions: Java-SCA-1.5
>            Reporter: Hasan Muhammad
>
> When we have a complex component property such as in the following composite, the ExtensibleStAXArtifactProcessor.write() strips off all the object data that is nested within the property tag.
> <?xml version="1.0" encoding="UTF-8"?>
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"     
>     xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
>     xmlns:qos="http://www.ibm.com/xmlns/prod/websphere/sca/1.0/2007/06"
>     targetNamespace="http://erww.workload"
>     xmlns:orderstatus_input="http://www.erww.com/OrderStatusInput"
>     name="OrderStatusComposite">
>     <component name="OrderStatusServiceComponent">
>         <implementation.java class="orderstatus.sca.jdbc.OrderStatusServiceImpl" requires="managedTransaction.local"/>
> 	    <service name="OrderStatusService">
>        		<interface.wsdl xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance" 
>             	interface="http://jdbc.sca.orderstatus#wsdl.interface(OrderStatusService)"          
>                	wsdli:wsdlLocation="http://jdbc.sca.orderstatus OrderStatusService.wsdl"/> 
>             <binding.ws wsdlElement="http://jdbc.sca.orderstatus#wsdl.port(OrderStatusServiceWebService/OrderStatusServiceSOAP11port)"   qos:wsPolicySet="WSHTTPS default" />           
>         </service> 
>         
>         <property name="orderStatusProp" type="orderstatus_input:OrderStatusInputType">
>             <orderStatusInput xmlns="http://www.erww.com/OrderStatusInput" 
>                 customerWarehouseId="1"
>                 customerDistrictId="2"
>                 customerId="3"
>                 customerLastName="Guster"
>                 byLastName="true">
>             </orderStatusInput>
>         </property>
>     </component>
>     
> </composite>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira