axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Sosnoski (JIRA)" <>
Subject [jira] Commented: (AXIS2-1316) "Unexpected subelement" when parsing simple request
Date Fri, 06 Oct 2006 08:41:20 GMT
    [ ] 
Dennis Sosnoski commented on AXIS2-1316:

I just did a full rebuild and test of the current 1.1 branch, then tried this again with the
same results as before. I'm at a loss as to why the problem doesn't appear to be repeatable.
I did track this further on my system, and found that the message dispatch appears to be selecting
the wrong operation. The operation selected is the last one defined in the service definition
(getTypes, which is why the <isbn> child element is not expected).

> "Unexpected subelement" when parsing simple request
> ---------------------------------------------------
>                 Key: AXIS2-1316
>                 URL:
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: nightly
>         Environment: Linux, Java 1.5.0
>            Reporter: Dennis Sosnoski
>            Priority: Blocker
>         Attachments:
> In trying to build and run some test code that had been working last week I found that
the requests were not properly parsed. Here's a snippet of the WSDL:
>     <schema elementFormDefault="qualified"
>         targetNamespace=""
>         xmlns=""
>         xmlns:xsd="">
>       <import namespace=""/>
>       <element name="getBook">
>         <complexType>
>           <sequence>
>             <element name="isbn" type="xsd:string"/>
>           </sequence>
>         </complexType>
>       </element>
> Here's the XML sent by the generated ADB client:
> <?xml version='1.0' encoding='UTF-8'?>
>    <soapenv:Envelope xmlns:soapenv="">
>       <soapenv:Header />
>       <soapenv:Body>
>          <ns2:getBook xmlns:ns2="">
>             <ns2:isbn>0061020052</ns2:isbn>
>          </ns2:getBook>
>       </soapenv:Body>
>    </soapenv:Envelope>
> This looks correct to me, but the server responds:
>               <Exception>org.apache.axis2.AxisFault: java.lang.RuntimeException:
Unexpected subelement isbn; nested exception is: 	java.lang.RuntimeException: java.lang.RuntimeException:
Unexpected subelement isbn	at org.apache.axis2.AxisFault.makeFault(	at

> ...
> I wonder if this could relate to recent changes for attributeFormDefault handling? In
this case I'm using elementFormDefault, but I know there was some confusion between the two
earlier (and in fact, last week the generated code was improperly namespace qualifying attributes
used in other messages for this service).

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message