axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume ETTORI (JIRA)" <>
Subject [jira] Created: (AXIS2-4473) NameSpaces prefix problem when using inherit complex type
Date Tue, 25 Aug 2009 16:03:59 GMT
NameSpaces prefix problem when using inherit complex type

                 Key: AXIS2-4473
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.4.1
         Environment: Windows 2003, Server, Weblogic 9.2, Apache ActiveMQ
            Reporter: Guillaume ETTORI

Let say you have a service that returns a B class object.

B class object from com.b package EXTENDS 
A class object from com.a package

A has a field_A and B has a field_B.

The problem is i get something like this in my SOAP Message:

				<ns:return xmlns:ax22="" xmlns:ax21="" type="com.b.B">

As you can see, the prefix for field_A is AX21 instead of AX22.

So the problem is i got a ADBException (unexpected element field_A) when i called this service
with the Stub (generated by wdsl2java).
In the Stub.B.Factory.parse method, i see something like this:

					if (reader.isStartElement()&& new javax.xml.namespace.QName(
									"field_A").equals(reader.getName())) {

In the enveloppe, ax21 = "" so the ax21:field_A do not have the ""
like expected by the Stub.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message