Because of the problems I was having getting my Axis based application to run in 4.0.2, I decided to try and convert it to the JBossWS model, but I have discovered problems with polymorphism in return values.
The `AgentPaymentSchemeOptions' complex type is subclassed by the complex type `WPPaymentSchemeOptions'. The `apso' element of the complex type returned by `getAgentOptions' can be either the superclass or the subclass. Yet when the subclass is returned, JBossWS fails to distinguish the fact that it is a subclass. This worked fine with regular Axis. In this example below, the tag should contain an attribute (I believe it is meant to be`<apso xsi:type="WPPaymentSchemeOptions">') stating the run time type of the return value: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:getAgentOptionsResponse xmlns:ns1="http://www.uecommerce.com/telacct"> 10223 <null xsi:nil="1"/> XXXXX 12345 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882044#3882044 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882044 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
