[jboss-user] [JBossWS] - Re: Problem with inheritance and JBossWS
koganty
do-not-reply at jboss.com
Mon Sep 10 14:24:24 EDT 2007
Client is using the beans generated from the WSDL. Looks like after some minor changes on the server finally, the SOAP response looks right..but is not being materialized into the right type of object :
| <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
| <env:Header/>
| <env:Body>
| <ns2:getAResponse xmlns:ns2="http://impl.beans.client.server.epicenter.extremenetworks.com/">
| <return
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="aa">
| <a>A</a>
| <b>B</b>
| </return>
| </ns2:getAResponse>
| </env:Body>
| </env:Envelope>
|
The object still shows up as of type A and not Aa.
The generated beans look like this :
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "a", propOrder = {
| "a"
| })
| @XmlSeeAlso({
| Aa.class
| })
| public class A {
|
| protected String a;
| ..
|
|
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "aa", propOrder = {
| "b"
| })
| @XmlSeeAlso({
| Aaa.class
| })
| public class Aa
| extends A
| {
|
| protected String b;
| ....
|
|
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "aaa", propOrder = {
| "c"
| })
| public class Aaa
| extends Aa
| {
|
| protected String c;
| .....
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082736#4082736
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082736
More information about the jboss-user
mailing list