NameSpaces prefix problem when using inherit complex type
---------------------------------------------------------
Key: AXIS2-4473
URL: https://issues.apache.org/jira/browse/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="http://a.com/xsd"
xmlns:ax21="http://b.com/xsd" type="com.b.B">
<ax21:field_A>IT_IS_OK</ax21:field_A>
<ax21:field_B>test</ax21:field_B>
</ns:return>
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(
"http://a.com/xsd",
"field_A").equals(reader.getName())) {
In the enveloppe, ax21 = "http://b.com/xsd" so the ax21:field_A do not have the
"http://a.com/xsd" 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.