Hi,
First - what are the run-time exceptions? I had a problem with cyclic
references until I annotated the classes that were being served by the
web-service with @XMLID & @XMLIDREF and used JAXB2 binding. XFire's default
binding is Aegis (probably the one your using if you haven't specified another)
but Aegis can't handle cyclic references.
<serviceFactory>
org.codehaus.xfire.jaxb2.JaxbServiceFactory
</serviceFactory>
Of course your exceptions may be different.
Hope this helps, Ian.
----- Original Message ----
From: tcs <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, 18 January, 2008 3:16:57 PM
Subject: [xfire-user] simple question: Aegis -or- JaxB
hi,
I've been reading user documentation and have configured my HelloWorld Web
Service using spring. My spring beans xml file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />
<bean name="hello.server"
class="org.codehaus.xfire.spring.remoting.XFireExporter">
<property name="serviceBean">
<bean class="org.something.services.hello.impl.HelloServiceImpl" />
</property>
<property name="serviceClass"
value="org.something.services.hello.ws.HelloService" />
<property name="serviceFactory">
<ref bean="xfire.jaxwsServiceFactory" />
</property>
</bean>
<bean name="xfire.jaxwsServiceFactory"
class="org.codehaus.xfire.jaxws..JAXWSServiceFactory">
<constructor-arg index="0">
<ref bean="xfire.transportManager" />
</constructor-arg>
</bean>
</beans>
In my HelloWorld service, I have the following web service methods:
String sayHello (String);
ComplexData getComplexData();
When I annotate the ComplexData class (using @XmlElement or @XmlType), I run
into all kinds of exceptions at runtime (when accessing the WSDL url). But
when I omit all annotations, my web service deploys fine.
Becuase I'm using the jaxwsServiceFactory, I know its JAX-WS web service and
I have to annotate my web service class.
So my question is, what data binding is being used? I'm not explicitly
setting one in the spring xml file. I'm guessing that its Aegis. But then
why do I run into exceptions if I annotate ComplexData. Should'nt the
annotation be ignored?
thanks,
--
View this message in context:
http://www.nabble.com/simple-question%3A-Aegis--or--JaxB-tp14950888p14950888.html
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email