[ 
http://issues.apache.org/jira/browse/AXIS2-1513?page=comments#action_12445078 ] 
            
Deepal Jayasinghe commented on AXIS2-1513:
------------------------------------------

Actually I found the problem when I introduce nilable wsdl generation. 
The problem is in stub , when it receive element like;
           <return>
               <age>10</age>
               <man xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:nil="true" />
               <value>eco</value>
            </return>





> ADB codegen problem when server send null values
> ------------------------------------------------
>
>                 Key: AXIS2-1513
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1513
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Deepal Jayasinghe
>            Priority: Blocker
>         Attachments: Man.java, MyBeanImpl.java, MyService.java
>
>
> I generate a pojo using attached java classes , and then code gen using adb. 
> And invoke the service. Then I got the following exception.
> java.lang.RuntimeException: Unexpected subelement man
>       at org.apache.ws.axis2.MyServiceStub.fromOM(MyServiceStub.java:3408)
>       at org.apache.ws.axis2.MyServiceStub.SayHello(MyServiceStub.java:333)
>       at org.apache.ws.axis2.MyCleint.main(MyCleint.java:32)
> As I can understand the problem is in following code in generated stub;
> while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
> and I think it should change to 
> while (!reader.isStartElement()) reader.next(); 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.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