Hi Jan ,

I think this can inject the databinding in ServiceFactoryBean  :

<bean id="aegisDatabinding" class="org.apache.cxf.aegis.databinding.AegisDatabinding"/> <bean id="JaxWsServiceFactoryBean" class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"> <property name="dataBinding" ref="aegisDatabinding"/>
   </bean>
   <jaxws:endpoint">
           <jaxws:serviceFactory>
<ref bean="JaxWsServiceFactoryBean"/> </jaxws:serviceFactory>
   </jaxws:endpoint>

Cheers
Jim

Jan Kriesten wrote:
hi dan,

We do need a <databinding> element yet... This may work though:

<jaxws:endpoint ....>
<property name="databinding">
 <bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</property>
</jaxws:endpoint>

actually, it doesn't. :-(

it tells me

---8<---
[20:36:53.938]
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 15
in XML document from class path resour
ce [META-INF/CXF/services.xml] is invalid; nested exception is
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid conten
t was found starting with element 'property'. One of
'{"http://cxf.apache.org/jaxws":binding, "http://cxf.apache.org/jaxws":executor
, "http://cxf.apache.org/jaxws":features,
"http://cxf.apache.org/jaxws":implementor,
"http://cxf.apache.org/jaxws":inInterceptors, "
http://cxf.apache.org/jaxws":inFaultInterceptors,
"http://cxf.apache.org/jaxws":outInterceptors, 
"http://cxf.apache.org/jaxws":outFa
ultInterceptors, "http://cxf.apache.org/jaxws":properties,
"http://cxf.apache.org/jaxws":serviceFactory}' is expected.
[20:36:53.938] Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a:
Invalid content was found starting with element 'pr
operty'. One of '{"http://cxf.apache.org/jaxws":binding,
"http://cxf.apache.org/jaxws":executor, "http://cxf.apache.org/jaxws":featu
res, "http://cxf.apache.org/jaxws":implementor,
"http://cxf.apache.org/jaxws":inInterceptors, 
"http://cxf.apache.org/jaxws":inFaultI
nterceptors, "http://cxf.apache.org/jaxws":outInterceptors,
"http://cxf.apache.org/jaxws":outFaultInterceptors, "http://cxf.apache.o
rg/jaxws":properties, "http://cxf.apache.org/jaxws":serviceFactory}' is 
expected.
---8<---

i saw the jaxws:binding in there, but didn't find out, how to possibly make use
of it...

any more ideas, dan?

best regards, --- jan.

Reply via email to