[ 
https://issues.apache.org/jira/browse/AXIS2-2000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478802
 ] 

Ole Dalgaard commented on AXIS2-2000:
-------------------------------------

Finally I found some time for this, sorry for the delay.

The request for testBad is:
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header 
/><soapenv:Body><ns6:getOtherBar xmlns:ns6="http://axis2.test.dk";><bar 
xmlns:ns0="http://somebeans.axis2.test.dk"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="ns0:OtherBar"><kode>0</kode><someBar><text>@Q8903829408lkjsdlkfjslkdf</text><dato>2007-03-07T16:44:39.462Z</dato><dato>2007-03-07T16:44:39.462Z</dato><antal>898912984923</antal></someBar><cats>91238972</cats><dogName>ajsdlk</dogName></bar></ns6:getOtherBar></soapenv:Body></soapenv:Envelope>

The response for testBad is:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soapenv:Header/><soapenv:Body><p716:getOtherBarResponse
 
xmlns:p716="http://axis2.test.dk";><getOtherBarReturn><kode>98321094</kode><someBar
 xsi:type="p273:FooBar" xmlns:p273="http://beans.axis2.test.dk";><text 
xsi:nil="true"/><dato>2007-03-07T15:43:29.917Z</dato><antal>128</antal><name>powieproipo</name></someBar><someBar
 xsi:type="p273:FooBar" xmlns:p273="http://beans.axis2.test.dk";><text 
xsi:nil="true"/><dato>2007-03-07T15:43:29.917Z</dato><antal>123128</antal><name>poiopsdfloiuouio</name></someBar><cats>912</cats><dogName>Fido</dogName></getOtherBarReturn></p716:getOtherBarResponse></soapenv:Body></soapenv:Envelope>

The request for testBad2 is:
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header 
/><soapenv:Body><ns6:getOtherFoo xmlns:ns6="http://axis2.test.dk";><foo 
xmlns:ns0="http://someotherbeans.axis2.test.dk"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="ns0:OtherFoo"><kode>1898</kode><someBars><text>oiwueoiru230789827398sdjflksjdlf</text><dato>2007-03-07T16:44:40.143Z</dato><antal>8812211212</antal></someBars><someBars><text
 xsi:nil="true" /><dato xsi:nil="true" 
/><antal>9082</antal></someBars></foo></ns6:getOtherFoo></soapenv:Body></soapenv:Envelope>

The response for testBad2 is:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soapenv:Header/><soapenv:Body><p716:getOtherFooResponse
 
xmlns:p716="http://axis2.test.dk";><getOtherFooReturn><kode>9823</kode><someBars><text
 
xsi:nil="true"/><antal>990123</antal></someBars></getOtherFooReturn></p716:getOtherFooResponse></soapenv:Body></soapenv:Envelope>





> java.lang.RuntimeException: Unexpected subelement antal
> -------------------------------------------------------
>
>                 Key: AXIS2-2000
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2000
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1.1
>         Environment: jdk 1.4.2 and Windows XP
>            Reporter: Ole Dalgaard
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: MyTestWS.wsdl, myTestWS.zip
>
>
> Using arrays in inherited types gives this error:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement 
> antal
>       at 
> dk.test.axis2.MyTestWSServiceStub.fromOM(MyTestWSServiceStub.java:6360)
>       at 
> dk.test.axis2.MyTestWSServiceStub.getOtherFoo(MyTestWSServiceStub.java:182)
>       at dk.test.axis2.MyTestWSTest.testBad2(MyTestWSTest.java:94)
> Caused by: java.lang.RuntimeException: Unexpected subelement antal
>       at 
> dk.test.axis2.MyTestWSServiceStub$Bar$Factory.parse(MyTestWSServiceStub.java:1189)
>       at 
> dk.test.axis2.MyTestWSServiceStub$OtherFoo$Factory.parse(MyTestWSServiceStub.java:3681)
>       at 
> dk.test.axis2.MyTestWSServiceStub$GetOtherFooResponse$Factory.parse(MyTestWSServiceStub.java:3200)
>       at 
> dk.test.axis2.MyTestWSServiceStub.fromOM(MyTestWSServiceStub.java:6312)
>       ... 21 more
> Preparing some test data for the issue, I guess I found another bug:
> java.lang.RuntimeException: java.lang.RuntimeException: Unsupported type null 
> FooBar
>       at 
> dk.test.axis2.MyTestWSServiceStub.fromOM(MyTestWSServiceStub.java:6360)
>       at 
> dk.test.axis2.MyTestWSServiceStub.getOtherBar(MyTestWSServiceStub.java:388)
>       at dk.test.axis2.MyTestWSTest.testBad(MyTestWSTest.java:78)
> Caused by: java.lang.RuntimeException: Unsupported type null FooBar
>       at 
> dk.test.axis2.MyTestWSServiceStub$ExtensionMapper.getTypeObject(MyTestWSServiceStub.java:4144)
>       at 
> dk.test.axis2.MyTestWSServiceStub$Bar$Factory.parse(MyTestWSServiceStub.java:1091)
>       at 
> dk.test.axis2.MyTestWSServiceStub$OtherBar$Factory.parse(MyTestWSServiceStub.java:4724)
>       at 
> dk.test.axis2.MyTestWSServiceStub$GetOtherBarResponse$Factory.parse(MyTestWSServiceStub.java:5465)
>       at 
> dk.test.axis2.MyTestWSServiceStub.fromOM(MyTestWSServiceStub.java:6340)
>       ... 21 more

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to