Hi Jan ,

I think this is an issue or unsupported. I see there is no item for databinding in jaxws.xsd :

 <xsd:element name="endpoint">
   <xsd:complexType>
     <xsd:complexContent>
       <xsd:extension base="beans:identifiedType">
         <xsd:sequence>
           <xsd:element name="binding" type="xsd:anyType" minOccurs="0"/>
           <xsd:element name="executor" type="xsd:anyType" minOccurs="0"/>
           <xsd:element name="features" type="xsd:anyType" minOccurs="0"/>
<xsd:element name="implementor" type="xsd:anyType" minOccurs="0"/> <xsd:element name="inInterceptors" type="xsd:anyType" minOccurs="0"/> <xsd:element name="inFaultInterceptors" type="xsd:anyType" minOccurs="0"/> <xsd:element name="outInterceptors" type="xsd:anyType" minOccurs="0"/> <xsd:element name="outFaultInterceptors" type="xsd:anyType" minOccurs="0"/> <xsd:element name="properties" type="beans:mapType" minOccurs="0"/> <xsd:element name="serviceFactory" type="xsd:anyType" minOccurs="0"/>
         </xsd:sequence>
         <xsd:attributeGroup ref="cxf-beans:beanAttributes"/>
         <xsd:attribute name="address" type="xsd:string" />
         <xsd:attribute name="bindingUri" type="xsd:string" />
         <xsd:attribute name="bus" type="xsd:string" />
         <xsd:attribute name="implementor" type="xsd:string"/>
         <xsd:attribute name="publish" type="xsd:boolean" default="true"/>
         <xsd:attribute name="endpointName" type="xsd:QName" />
         <xsd:attribute name="serviceName" type="xsd:QName" />
         <xsd:attribute name="wsdlLocation" type="xsd:string" />
       </xsd:extension>
     </xsd:complexContent>
   </xsd:complexType>
 </xsd:element>

Please feel free to log a Jira issue for it .

Regards

Jim


Jan Kriesten wrote:
Hi!

I still need some help on thins issue to get the CXFServlet configured using
AegisDatabinding with <jaxws:...>-syntax.

Someone there knowing the proper hints?

Thanks! :-)

Best regards, --- Jan.


-------- Original Message --------
Subject: CXFServlet-Config
Date: Fri, 29 Jun 2007 17:23:49 +0200
From: Jan Kriesten <[EMAIL PROTECTED]>
Reply-To: cxf-user@incubator.apache.org
To: cxf-user@incubator.apache.org


Hi,

I'm not really a Spring-wizard, so I'm having some trouble getting the
CXFServlet configured as I wish...

The following properties work to have the Service responding:

---8<---
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:jaxws="http://cxf.apache.org/jaxws";
       xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                           http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd";>

  <import resource="classpath:META-INF/cxf/cxf.xml" />
  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
  <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

  <jaxws:endpoint id="AuthService"
                  implementor="test.AcegiAuthService"
                  address="/AuthService" />

</beans>
---8<---

Now I want to have the service use AegisDatabinding, but I don't get it 
working...

Could someone provide me with a hint - the following approach which Willem
posted (on my marshalling exception) only leads to an unresponsive service, so
the above is the only working version I have right now:

---8<---
<bean id="AegisDatabinding"
class="org.apache.cxf.aegis.databinding.AegisDatabinding"/>

<bean id="JaxWsServiceFactoryBean"
class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
   <property name="wrapped" value="false"/>
   <property name="dataBinding" ref="AegisDatabinding"/>
</bean>

<bean id="authServiceFactory"
   class="org.apache.cxf.jaxws.JaxWsServerFactoryBean" init-method="create">
   <property name="serviceClass" value="test.AcegiAuthService" />
   <property name="serviceBean">
     <bean class="test.AcegiAuthService"/>
   </property>
   <property name="address" value="/AuthService"/>
   <property name="bus" ref="cxf"/>
   <property name="serviceFactory" ref="JaxWsServiceFactoryBean"/>
</bean>
---8<---


Best regards, --- Jan.

Reply via email to