GelcoCCTransaction.aegis.xml
<mappings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xfire.codehaus.org/schemas/1.0/mapping.xsd">
<mapping>
<property name="ccItemizationAddendums"
componentType="gelco.messaging.v1.creditcard.GelcoCCItemizationAddendum"/>
<property name="actionCode" minOccurs="1" nillable="false"/>
<property name="transactionId" minOccurs="1" nillable="false"/>
</mapping>
</mappings>
Class Hierarchy for property -> ccItemizationAddendums
GelcoCCItemizationAddendum <ABSTRACT CLASS)
GelcoLodgingCCItemizationAddendum EXTENDS GelcoCCItemizationAddendum
GelcoTravelCCItemizationAddendum EXTENDS GelcoCCItemizationAddendum
The GelcoCCTransaction can contain ccItemizationAddendums of the
above 2 types. Is there something special I need to config in order
for XFire to recognize the subclasses? I already have the setting
in services.xml:
<property key="writeXsiType">true</property>
<property key="overrideTypesList">
<list xmlns="">
<value>gelco.messaging.v1.creditcard.GelcoLodgingCCAddendum</value>
<value>gelco.messaging.v1.creditcard.GelcoRentalCCAddendum</value>
<value>gelco.messaging.v1.creditcard.GelcoTravelCCAddendum</value>
<value>gelco.messaging.v1.creditcard.GelcoLodgingCCItemizationAddendum</value>
<value>gelco.messaging.v1.creditcard.GelcoRentalCCItemizationAddendum</value>
<value>gelco.messaging.v1.creditcard.GelcoTravelCCItemizationAddendum</value>
</list>
</property>
XFire doesn't appear to recognize the fact that the ccItemizationAddendums
really is a concrete implementation class e.g.
GelcoLodgingCCItemizationAddendum. The WSDL seems to be generated correctly,
but,when I test the service via the client tester it gives me
the following XFire error:
org.codehaus.xfire.XFireRuntimeException: Could not invoke service..
Nested exception is org.codehaus.xfire.fault.XFireFault:
Couldn't instantiate class. null
org.codehaus.xfire.fault.XFireFault: Couldn't instantiate class. null
at
org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage
(Soap11FaultSerializer.java:31)
at
org.codehaus.xfire.fault.SoapFaultSerializer.readMessage
(SoapFaultSerializer.java:28)
at
org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault
(ReadHeadersHandler.java:111)
at
. . . .
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email