axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Sosnoski (JIRA)" <>
Subject [jira] Created: (AXIS2-1362) Errors parsing Fault document with ADB databinding
Date Fri, 13 Oct 2006 01:06:36 GMT
Errors parsing Fault document with ADB databinding

                 Key: AXIS2-1362
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
    Affects Versions: nightly
         Environment: Linux, JDK 1.5.0_07
            Reporter: Dennis Sosnoski
            Priority: Critical

Running the current svn code with the following WSDL (relevant portions only):

<wsdl:definitions targetNamespace=""
    <schema elementFormDefault="qualified"
     <element name="addDuplicate" type="tns:AddDuplicate"/>
      <complexType name="AddDuplicate">
          <element name="book" type="tns:BookInformation"/>
      <complexType name="BookInformation">
          <element name="author" minOccurs="0" maxOccurs="unbounded" type="string"/>
          <element name="title" type="string"/>
        <attribute name="type" use="required" type="string"/>
        <attribute name="isbn" use="required" type="string"/>
  <wsdl:message name="addDuplicateFault">
    <wsdl:part element="tns:addDuplicate" name="fault"/>

  <wsdl:portType name="Library">
    <wsdl:operation name="addBookInstance">
      <wsdl:input message="wns:addBookInstanceRequest" name="addBookInstanceRequest"/>
      <wsdl:output message="wns:addBookInstanceResponse" name="addBookInstanceResponse"/>
      <wsdl:fault message="wns:addDuplicateFault" name="addDuplicateFault"/>

The Fault returned by the server is:

<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="">
      <soapenv:Header />
            <faultstring>Attempt to add duplicate book</faultstring>
               <ns1:addDuplicate xmlns:ns1="">
                  <ns1:book type="scifi" isbn="0812580311">
                     <ns1:author>Sheffield, Charles</ns1:author>
                     <ns1:title>Dark as Day</ns1:title>

This looks correct to me, but the client throws an exception in parsing the Fault:
     [java] Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException:
Unexpected subelement author
     [java]     at
     [java]     at
     [java]     at
     [java] Caused by: java.lang.RuntimeException: Unexpected subelement author
     [java]     at$Factory.parse(
     [java]     at$Factory.parse(
     [java]     at
     [java]     ... 2 more

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