axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesper Peterson (JIRA)" <>
Subject [jira] Commented: (AXIS2-3252) Unexpected subelement
Date Mon, 03 Dec 2007 08:14:43 GMT


Jesper Peterson commented on AXIS2-3252:

Thank you for taking the time to look at this.

Are you saying if the WSDL specified "qualified" for elements then the perl response would
be considered correct?

I added elementFormDefault="qualified" to the WSDL schema but the generated Axis2 stub is
identical. However the Axis1 stub code changes so the createsessionReturn namespace is now
non-empty. See my earlier comment for the Axis1 "unqualified" stub.

        oper = new org.apache.axis.description.OperationDesc();                          
        oper.setReturnType(new javax.xml.namespace.QName("urn:TESTWS", "createsessionResponseType"));
        oper.setReturnQName(new javax.xml.namespace.QName("urn:TESTWS", "createsessionReturn"));
        _operations[2] = oper;  

So with or without "qualified" the Axis2 stub rejects the perl response and Axis1 accepts
it. Only the Axis1 stub has different code for "qualified" .

I accept that the perl WSDL and response in this case are inconsistent but I was hoping to
get around it by fixing the WSDL since modifying the perl is not an option in this case.

> Unexpected subelement 
> ----------------------
>                 Key: AXIS2-3252
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: adam
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: classes.rar,,, the classes.rar
> Hi, 
> I try to make web service with eclipse and axis2 .. and i recieve the following exception
and i don't know what is the casue : 
> Exception *****************: 
> Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected
subelement medicineId
> 	at
> 	at
> 	at
> Caused by: java.lang.RuntimeException: Unexpected subelement medicineId
> 	at$MedicineWVO$Factory.parse(
> 	at$SendMedicenObjetctResponse$Factory.parse(
> 	at
> 	... 2 more
> The class that i make from it the web service is : "MainClassForWS"  
> and my client test is : "WSClient" 
> All the class relative to this exception in the attachment file 
> i need to know from where this exception come and what causes it and what is the solution
for it .
> Thanks.
> M.adam

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:
For additional commands, e-mail:

View raw message