Hi 
I have configured the CXF demo.spring.HelloWorld using Aegis DataBinding
as per instructions found at
http://cwiki.apache.org/CXF20DOC/aegis-databinding.html
When I run my client I am receiving the following error 
[21.02.08 17:26:16:939 CET] 00000031 PhaseIntercep I
org.apache.cxf.phase.PhaseInterceptorChain doIntercept Interceptor has
thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Message part
{http://pojo.spring.demo/}sayHi was not recognized.

Can anyone help me?

Cheers
Tezcan
-------------------------------
Here is the client code
--------------------------------
ClientProxyFactoryBean factory = new ClientProxyFactoryBean();

factory.getInInterceptors().add(new LoggingInInterceptor());
factory.getOutInterceptors().add(new LoggingOutInterceptor());
factory.setServiceClass(HelloWorldPojo.class);
factory.setAddress("http://localhost:9080/Test_Pojo_WebApp/HelloWorldPoj
o");
factory.getServiceFactory().setDataBinding(new AegisDatabinding());
HelloWorldPojo client = (HelloWorldPojo) factory.create();
String reply = client.sayHi("Tex");
---------------
Here is the client log
------------------------------
INFO: Outbound Message 
--------------------------------------
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><ns1:s
ayHi xmlns:ns1="http://pojo.spring.demo/";><arg0
xmlns="http://pojo.spring.demo/";>Tex</arg0></ns1:sayHi></soap:Body></soa
p:Envelope>
--------------------------------------
21.02.2008 17:26:17 org.apache.cxf.interceptor.LoggingInInterceptor
handleMessage
INFO: Inbound Message
--------------------------------------
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><soap:
Fault><faultcode>soap:Client</faultcode><faultstring>Message part
{http://pojo.spring.demo/}sayHi was not
recognized.</faultstring></soap:Fault></soap:Body></soap:Envelope>
--------------------------------------
org.apache.cxf.binding.soap.SoapFault: Message part
{http://pojo.spring.demo/}sayHi was not recognized.
-----------------------------------
Here is the spring config
-----------------------------------
<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" />
        
        <bean id="aegisBean"
class="org.apache.cxf.aegis.databinding.AegisDatabinding"
scope="prototype"/> 
        
        <bean id="jaxws-and-aegis-service-factory"
            class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"
            scope="prototype"> 
                <property name="dataBinding" ref="aegisBean"/>
                         <property name="serviceConfigurations">
                             <list>
                               <bean
class="org.apache.cxf.jaxws.support.JaxWsServiceConfiguration"/>
                               <bean
class="org.apache.cxf.aegis.databinding.AegisServiceConfiguration"/>
                               <bean
class="org.apache.cxf.service.factory.DefaultServiceConfiguration"/> 
                            </list>
                        </property>
        </bean>

        <jaxws:endpoint id="helloWorldPojo" 
                implementor="demo.spring.pojo.HelloWorldPojoImpl"
address="/HelloWorldPojo" >
                <jaxws:serviceFactory>
                        <ref bean='jaxws-and-aegis-service-factory' />
                </jaxws:serviceFactory>
        </jaxws:endpoint>
         
</beans>

Reply via email to