[ http://issues.apache.org/jira/browse/AXIS2-1316?page=all ]

Dennis Sosnoski updated AXIS2-1316:
-----------------------------------

    Attachment: library.zip

Full build for the test application. Change build.properties to reference your 
Axis2 distribution directory. The default target builds both client and server; 
the "run" target tries running the client, through Tcpmon (localhost:8800) as 
supplied.

> "Unexpected subelement" when parsing simple request
> ---------------------------------------------------
>
>                 Key: AXIS2-1316
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1316
>             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: library.zip
>
>
> 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="http://ws.sosnoski.com/library/wsdl";
>         xmlns="http://www.w3.org/2001/XMLSchema";
>         xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>       
>       <import namespace="http://ws.sosnoski.com/library/types"/>
>         
>       <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="http://schemas.xmlsoap.org/soap/envelope/";>
>       <soapenv:Header />
>       <soapenv:Body>
>          <ns2:getBook xmlns:ns2="http://ws.sosnoski.com/library/wsdl";>
>             <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(AxisFault.java:318)     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: 
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