axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinivasan Sairam (JIRA)" <>
Subject [jira] Commented: (AXIS2-3259) ADBException: Unexpected subelement contentType
Date Thu, 07 Feb 2008 06:49:09 GMT


Srinivasan Sairam commented on AXIS2-3259:

I am still getting the exception, even though I am using the correct JDK (1.5) and the wstx-asl-3.2.1.jar
 while invoking the client.

It receives the response from the operation, then it is throwing the exception
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement
	at org.apache.axis2.AxisFault.makeFault(

My wsdl has the following complex type defined as part of the response

            <xs:complexType name="RequestStatus">
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="errorCodes" nillable="true"
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="errorText" nillable="true"
                    <xs:element minOccurs="0" name="overallStatusCode" type="xs:int"/>
                    <xs:element minOccurs="0" name="overallStatusText" nillable="true"
                      <xs:element minOccurs="0" name="VALUE_MISMATCH" type="xs:int"/>
                    <xs:element minOccurs="0" name="VALUE_NOT_FOUND" type="xs:int"/>
                    <xs:element minOccurs="0" name="STATUS_FAILURE_STRING" nillable="true"
                    <xs:element minOccurs="0" name="STATUS_SUCCESS_STRING" nillable="true"

Is this a known (and reopened) issue or am I doing something wrong ?

> ADBException: Unexpected subelement contentType
> -----------------------------------------------
>                 Key: AXIS2-3259
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.3
>         Environment: WSDL2java generated client
>            Reporter: Etienne
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: knowledgebase.tar, KnowledgeBaseService.wsdl, request.xml, response.xml,
soapbody.xml, tcp-session-parsing-KO.txt, tcp-session-parsing-OK.txt
> With axis2 I have an issue with a complex type containing a
> base64Binary element:
> <xsd:complexType name="BinaryFile">
> <xsd:sequence>
> <xsd:element minOccurs="0" name="content" nillable="true"
> type="xsd:base64Binary"/>
> <xsd:element minOccurs="0" name="contentType" nillable="true"
> type="xsd:string"/>
> <xsd:element minOccurs="0" name="id" type="xsd:int"/>
> <xsd:element minOccurs="0" name="name" nillable="true" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> When the client fails with the following exception;
> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
> Unexpected subelement contentType
>        at org.apache.axis2.AxisFault.makeFault(
>        at
> When switching the server to use MTOM (only possible for testing), the issue disappear.
> Here is the discussion on axis-user:
> Please see attached wsdl, request and response.

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