It's probably due to the AegisServiceConfiguration stuff that was there 
in the docs previously.  The tell-tale sign of that is the "/" on the 
end of the mapped namespaces.

Example:
{http://pojo.spring.demo/}sayHi 

The default mapping for JAXWS would be:
{http://pojo.spring.demo}sayHi 

without the slash.  Most likely, the old docs produced some confusion 
where the client was mapping/sending one form, but the server was 
expecting the other form.

Dan

On Tuesday 26 February 2008, [EMAIL PROTECTED] wrote:
> Hello Benson,
> yes, I did do the changes but still gave me the same problem
> (org.apache.cxf.interceptor.Fault: Message part
> {http://pojo.spring.demo/}sayHi <http://pojo.spring.demo/%7DsayHi> 
> was not recognized.) so I than made the following alterations;
>
> On the server side;
> 1- in my service interface/impl used jax-ws annotations.
> 2- in my spring config used the latest changes as defined at
> http://cwiki.apache.org/CXF20DOC/aegis-databinding.html
> <http://cwiki.apache.org/CXF20DOC/aegis-databinding.html>
>
> On the client side;
> 1- in my client code used JaxWsProxyFactoryBean factory = new
> JaxWsProxyFactoryBean(); 2- left the code as
> factory.getServiceFactory().setDataBinding(new AegisDatabinding());
>
> Now it works !!!! Hmmmm... ??? Any thoughts on this?
> I am not sure if this work around is safe because I shall next attempt
> using complex types (e.g. Vector) on the interface methods.
>
> Cheers
> Tezcan
>
>
>       -----Ursprüngliche Nachricht-----
>       Von: Benson Margulies [mailto:[EMAIL PROTECTED]
>       Gesendet: Montag, 25. Februar 2008 14:17
>       An: Dilshener, Tezcan (ext.)
>       Betreff: Re: Aegis DataBinding does not work
>
>
>       Did you see my message to the list about AegisServiceConfiguration?
> Please take that our of your spring config and try again.
>
>
>
>
>       On Mon, Feb 25, 2008 at 6:54 AM, <[EMAIL PROTECTED]>
> wrote:
>
>
>               Hi Benson,
>               I saw your note on updated documentation.
>               I have corrected my spring-config accordingly but it did not 
> make
> any difference. I am still receiving the following error
> org.apache.cxf.interceptor.Fault: Message part
> {http://pojo.spring.demo/}sayHi <http://pojo.spring.demo/%7DsayHi> 
> was not recognized.
>
>               Any more ideas?
>
>               1-) my cfx version is 2.0.4
>
>               2-) my client is trying to connect to server by using Aegis
> Databinding as per example defined at 
> http://cwiki.apache.org/CXF20DOC/aegis-databinding.html ,
>
>               my service is HelloWorld example (without annotations) and 
> loaded
> upon startup via the spring config defined at
> http://cwiki.apache.org/CXF20DOC/aegis-databinding.html
>
>
>
>               INFO: Outbound Message
>               ---------------------------
>               Encoding: UTF-8
>               Headers: {Accept=[*], SOAPAction=[""]}
>               Messages:
>               Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><ns1
>:sayHi
> xmlns:ns1="http://pojo.spring.demo/";><ns1:arg0>Tex</ns1:arg0></ns1:say
>Hi></soap:Body></soap:Envelope> --------------------------------------
>               25.02.2008 12:49:26 
> org.apache.cxf.interceptor.LoggingInInterceptor
> logging INFO: Inbound Message
>               ----------------------------
>               Encoding: UTF-8
>               Headers: {Server=[WebSphere Application Server/6.1], Date=[Mon, 
> 25
> Feb 2008 11:49:25 GMT], transfer-encoding=[chunked],
> Content-Language=[de-DE], connection=[Close], content-type=[text/xml;
> charset=UTF-8]} Messages:
>               Message:
>
>               Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><soa
>p:Fault><faultcode>soap:Client</faultcode><faultstring>Message part
> {http://pojo.spring.demo/}sayHi <http://pojo.spring.demo/%7DsayHi> 
> was not
> recognized.</faultstring></soap:Fault></soap:Body></soap:Envelope>
> --------------------------------------
>               org.apache.cxf.binding.soap.SoapFault: Message part
> {http://pojo.spring.demo/}sayHi <http://pojo.spring.demo/%7DsayHi> 
> was not recognized.
>
>               -----Ursprüngliche Nachricht-----
>               Von: Dilshener, Tezcan (ext.)
>               Gesendet: Montag, 25. Februar 2008 11:17
>               An: [EMAIL PROTECTED]; cxf-user@incubator.apache.org
>               Betreff: AW: Aegis DataBinding does not work
>
>
>
>               Hi
>               1-) my cfx version is 2.0.4
>
>               2-) my client is trying to connect to server by using Aegis
> Databinding (as per
> http://cwiki.apache.org/CXF20DOC/aegis-databinding.html
> <http://cwiki.apache.org/CXF20DOC/aegis-databinding.html> ), my
> service is HelloWorld example (without annotations) and loaded upon
> startup via the spring config defined at
> http://cwiki.apache.org/CXF20DOC/aegis-databinding.html
> <http://cwiki.apache.org/CXF20DOC/aegis-databinding.html>
>
>               and I think it is jax-ws.
>
>               So I am not sure what else I am doing wrong or i should do 
> further.
>
>               Cheers
>               Tezcan
>
>                      -----Ursprüngliche Nachricht-----
>                      Von: Benson Margulies [mailto:[EMAIL PROTECTED]
>                      Gesendet: Samstag, 23. Februar 2008 17:19
>                      An: Dilshener, Tezcan (ext.)
>                      Betreff: Re: Aegis DataBinding does not work
>
>
>                      I thought that I understood that you were trying to use 
> an
> Aegis client to talk to one of the stock JAX* samples.
>
>                      Please fill in the following details:
>
>                      1) What version of CXF?
>                      2) What exactly is your server and your client?
>
>
>                      On Fri, Feb 22, 2008 at 5:30 AM,
> <[EMAIL PROTECTED]> wrote:
>
>
>                              Hi
>                              thnks for your reply.
>                              Where do you see that I use JAX-WS+JAXB service?
>                              If you have seen that in my spring-config file, 
> its
> because I am using the standard example found at
>                             
> http://cwiki.apache.org/CXF20DOC/aegis-databinding.html The
> spring-config there is the one that I am trying to run.
>
>                              Can you be a bit more specific?
>                              How should I define my service in my config file?
>
>                              Cheers
>                              Tezcan
>
>                              -----Ursprüngliche Nachricht-----
>                              Von: Benson Margulies [mailto:[EMAIL PROTECTED]
>                              Gesendet: Freitag, 22. Februar 2008 03:23
>                              An: cxf-user@incubator.apache.org
>                              Betreff: Re: Aegis DataBinding does not work
>
>
>                              I think I see. You've got a JAX-WS+JAXB service, 
> and
> you're trying to talk to it with an Aegis client, using the same SEI.
> That's not going to match up. It's not very possible to use Aegis as
> the client to talk to something else, as we don't have wsdl2java for
> Aegis, nor could we easily make one.
>
>                              On Thu, Feb 21, 2008 at 12:16 PM, Benson 
> Margulies
> <[EMAIL PROTECTED]>
>
>                              wrote:
>                              > What version of CXF?
>                              >
>                              >
>                              > On Thu, Feb 21, 2008 at 11:36 AM,
>                              > <[EMAIL PROTECTED]>
>                              >
>                              > wrote:
>                              > > Hi
>                              > > I have configured the CXF 
> demo.spring.HelloWorld
>                              > > using Aegis DataBinding as per instructions 
> found
>                              > > at
>                              > > 
> http://cwiki.apache.org/CXF20DOC/aegis-databindin
>                              > >g.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
>                              > > <http://pojo.spring.demo/%7DsayHi> 
>                              > > <http://pojo.spring.demo/%7DsayHi> 
>                              > > <http://pojo.spring.demo/%7DsayHi>
>                              > >
>                              > > 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_Po
>                              > >jo_WebApp/HelloWorl dPoj
>                              > > 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/envel
>                              > >ope/"><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/envel
>                              > >ope/"><soap:Body><soap:
>                              > > 
> Fault><faultcode>soap:Client</faultcode><faultstr
>                              > >ing>Message part
>                              > >
>                              > > {http://pojo.spring.demo/}sayHi
>                              > > <http://pojo.spring.demo/%7DsayHi> 
>                              > > <http://pojo.spring.demo/%7DsayHi> 
>                              > > <http://pojo.spring.demo/%7DsayHi>
>                              > >
>                              > > was not
>                              > > 
> recognized.</faultstring></soap:Fault></soap:Body
>                              > >></soap:Envelope>
>                              > > --------------------------------------
>                              > > org.apache.cxf.binding.soap.SoapFault: 
> Message
>                              > > part
>                              > >
>                              > > {http://pojo.spring.demo/}sayHi
>                              > > <http://pojo.spring.demo/%7DsayHi> 
>                              > > <http://pojo.spring.demo/%7DsayHi> 
>                              > > <http://pojo.spring.demo/%7DsayHi>
>                              > >
>                              > > was not recognized.
>                              > > -----------------------------------
>                              > > Here is the spring config
>                              > > -----------------------------------
>                              > > <beans
>                              > > 
> xmlns="http://www.springframework.org/schema/bean
>                              > >s"
>                              > > 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta
>                              > >nce" xmlns:jaxws="http://cxf.apache.org/jaxws";
>                              > > xsi:schemaLocation="
>                              > > http://www.springframework.org/schema/beans
>                              > > 
> http://www.springframework.org/schema/beans/sprin
>                              > >g-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-so
>                              > >ap.xml" />
>                              > >        <import
>                              > > 
> resource="classpath:META-INF/cxf/cxf-servlet.xml"
>                              > > />
>                              > >
>                              > >        <bean id="aegisBean"
>                              > > 
> class="org.apache.cxf.aegis.databinding.AegisData
>                              > >binding" scope="prototype"/>
>                              > >
>                              > >        <bean 
> id="jaxws-and-aegis-service-factory"
>                              > >           
>                              > > 
> class="org.apache.cxf.jaxws.support.JaxWsServiceF
>                              > >actoryBean" scope="prototype">
>                              > >                <property name="dataBinding"
>                              > > ref="aegisBean"/> <property
>                              > > name="serviceConfigurations"> <list>
>                              > >                               <bean
>                              > > 
> class="org.apache.cxf.jaxws.support.JaxWsServiceC
>                              > >onfiguration"/> <bean
>                              > > 
> class="org.apache.cxf.aegis.databinding.AegisServ
>                              > >iceConfiguration"/> <bean
>                              > > 
> class="org.apache.cxf.service.factory.DefaultServ
>                              > >iceConfiguration"/> </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>



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to