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

Andreas Veithen moved AXIS-2807 to AXIS2-5224:
----------------------------------------------

          Component/s:     (was: Serialization/Deserialization)
    Affects Version/s:     (was: 1.4)
                       1.4
                  Key: AXIS2-5224  (was: AXIS-2807)
              Project: Axis2  (was: Axis)
    
> namespaces not retained creating invalid response
> -------------------------------------------------
>
>                 Key: AXIS2-5224
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5224
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: n/a
>            Reporter: jamie cormack
>
> Axis2 1.4 WebService. XMLBean Binding.
> Request message retains all namespaces correctly
> Response message looses the namespaces in later elements producing invalid XML
> SAMPLE 1  -  SOAP request envelope generated within the stub. This is correct 
> all elements retaining the correct namespace.
> <?xml version="1.0" encoding="utf-8"?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
>       <soapenv:Body>
>               <updateProductHolding xmlns="http://services.investman.co.uk";>
>                       <ph 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:xsd="http://investman.co.uk/cim/xsd"; xsi:type="xsd:ProductHoldingBond">
>                               <commissionAccount 
> xmlns="http://investman.co.uk/cim/xsd";>
>                                       <commissionAccountId>Comm Id 
> 123</commissionAccountId>
>                               </commissionAccount>
>                               <jointLifeIndicator 
> xmlns="http://investman.co.uk/cim/xsd";>false</jointLifeIndicator>
>                               <policyNumber 
> xmlns="http://investman.co.uk/cim/xsd";>123456B001</policyNumber>
>                               <fundHolding 
> xmlns="http://investman.co.uk/cim/xsd";>
>                                       <fund>
>                                               <fundId>My Hedge Fund</fundId>
>                                               <name>Hedging My Bets</name>
>                                       </fund>
>                               </fundHolding>
>                               <fundHolding 
> xmlns="http://investman.co.uk/cim/xsd";>
>                                       <exchangeRate>1.5</exchangeRate>
>                                       <fund xsi:type="xsd:WithProfitsFund">
>                                               <fundId>My With Profits 
> Fund</fundId>
>                                               <name>Aint no profit in 
> this</name>
>                                       </fund>
>                                       
> <fundHoldingDate>2009-09-24T14:03:52.471+01:00</fundHoldingDate>
>                               </fundHolding>
>                               <fundHolding 
> xmlns="http://investman.co.uk/cim/xsd";>
>                                       <exchangeRate>1.5</exchangeRate>
>                                       <fund xsi:type="xsd:InvestmentFund">
>                                               <fundId>My Investment Profits 
> Fund</fundId>
>                                               <name>You may not get out what 
> u put in</name>
>                                               
> <fundPriceDate>2009-09-24T14:03:52.565+01:00</fundPriceDate>
>                                       </fund>
>                                       
> <fundHoldingDate>2009-09-24T14:03:52.565+01:00</fundHoldingDate>
>                               </fundHolding>
>                       </ph>
>               </updateProductHolding>
>       </soapenv:Body>
> </soapenv:Envelope>
> SOAP Response message - namespace is set correctly for the top level and 
> first child element.....the remaining elements do not retain
> their namespaces. This produces in valid XML / XMLBean Objects.
> <?xml version="1.0" encoding="utf-8"?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
>       <soapenv:Body>
>               <updateProductHoldingResponse 
> xmlns="http://services.investman.co.uk";>
>                       <return 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:xsd="http://investman.co.uk/cim/xsd"; xsi:type="xsd:ProductHoldingBond">
>                               <commissionAccount 
> xmlns="http://investman.co.uk/cim/xsd";>
>                                       <commissionAccountId>Comm Id 
> 123</commissionAccountId>
>                               </commissionAccount>
>                               <jointLifeIndicator>false</jointLifeIndicator>
>                               <policyNumber>123456B001 *** updated by service 
> ***</policyNumber>
>                               <fundHolding>
>                                       <exchangeRate>0.0</exchangeRate>
>                                       <fund>
>                                               <fundId>My Hedge Fund</fundId>
>                                               <name>Hedging My Bets</name>
>                                       </fund>
>                                       <numberOfUnits>0.0</numberOfUnits>
>                               </fundHolding>
>                               <fundHolding>
>                                       <exchangeRate>1.5</exchangeRate>
>                                       <fund xsi:type="xsd:WithProfitsFund">
>                                               <fundId>My With Profits 
> Fund</fundId>
>                                               <name>Aint no profit in 
> this</name>
>                                       </fund>
>                                       
> <fundHoldingDate>2009-09-24T14:03:52.471+01:00</fundHoldingDate>
>                                       <numberOfUnits>0.0</numberOfUnits>
>                               </fundHolding>
>                               <fundHolding>
>                                       <exchangeRate>1.5</exchangeRate>
>                                       <fund xsi:type="xsd:InvestmentFund">
>                                               <fundId>My Investment Profits 
> Fund</fundId>
>                                               <name>You may not get out what 
> u put in</name>
>                                               
> <fundPriceDate>2009-09-24T14:03:52.565+01:00</fundPriceDate>
>                                       </fund>
>                                       
> <fundHoldingDate>2009-09-24T14:03:52.565+01:00</fundHoldingDate>
>                                       <numberOfUnits>0.0</numberOfUnits>
>                               </fundHolding>
>                       </return>
>               </updateProductHoldingResponse>
>       </soapenv:Body>
> </soapenv:Envelope>
> NB - the service skeleton is returning correct / valid xml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to