Hi,
I am having problems with getting values of beans to be ignored using the
bindings. I am using spring 2.0 to configure the service:
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml"/>
<bean id="searchInterface"
class="org.codehaus.xfire.spring.ServiceBean">
<property name="serviceBean">
<ref bean="searchService"/>
</property>
<property name="serviceClass">
<value>com.kicktrip.service.SearchService</value>
</property>
<property name="inHandlers">
<list>
<ref bean="addressingHandler"/>
</list>
</property>
</bean>
This is the interface:
public interface SearchService {
public PollResponse poll(Integer pollId) throws Exception;
}
I have a SearchService.aegis.xml in com.kicktrip.service which gets picked
up. com.kicktrip.service.SearchService returns a PollResponse object which
contains a FlightTrip object which has a helper method getDeparture (which
causes exception below) which doesnt actually have a property and I dont
want to expose it. so... I created a mapping file called
FlightTrip.aegis.xml in com.kicktrip.model which looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<mappings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xfire.codehaus.org/schemas/1.0/mapping.xsd">
<mapping name="FlightTrip">
<property name="departure" ignore="true"/>
</mapping>
</mappings>
This file doesn't appear to be picked up. why?
SearchService.aegis.xml gets picked up on the classpath and the bindings
work...
<?xml version="1.0" encoding="UTF-8"?>
<mappings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xfire.codehaus.org/schemas/1.0/mapping.xsd">
<mapping name="SearchService">
<method name="test">
<return-type mappedName="book" />
</method>
<property name="departure" ignore="true"/>
</mapping>
</mappings>
I get the following exception:
org.codehaus.xfire.fault.XFireFault: No write method for property
{http://model.kicktrip.com}departure in class com.kicktrip.model.FlightTrip
at
org.codehaus.xfire.aegis.type.basic.BeanType.writeProperty(BeanType.java:308)
any suggestions? thanks,
andrew
--
View this message in context:
http://www.nabble.com/aegis.xml-for-Bean-not-being-picked-up-on-classpath-tf3127197.html#a8664465
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email