Sorry,

I don't really know what the issue is. To me it does not appear to be a
client issue at all, I would guess something is up with the server
config: the request is being handed to the wrong class. Have you tried
debugging to figure out what the AbstractInvoker is calling?

Fried

> -----Original Message-----
> From: Luc De Graef [mailto:[EMAIL PROTECTED]
> Sent: vrijdag 12 januari 2007 12:21
> To: [email protected]
> Subject: [xfire-user] RE: JSR181 - Spring based server and client
> 
> 
> Hello,
> 
> So at the server side I replaced
>       <bean id="ContainerISOService"
class="service.ContainerISOImpl"/>
> 
> by
>       <bean id="ContainerISOService"
> class="org.codehaus.xfire.spring.ServiceBean" >
>               <property name="serviceClass"
> value="service.ContainerISOImpl"/>
>               <property name="serviceFactory"
ref="jaxbServiceFactory"/>
>       </bean>
> 
>                 <bean name="jaxbServiceFactory"
> class="org.codehaus.xfire.jaxb2.JaxbServiceFactory">
>         <constructor-arg ref="xfire.transportManager"/>
>       </bean>
> 
> Again, through a browser I can review the wsdl.
> 
> At the client side I made a similar change, by adding the
ServiceFactory
> property to the webservice bean.
> 
>    <bean id="testWebService"
>
class="org.codehaus.xfire.spring.remoting.XFireClientFactoryBean">
>       <property name="serviceClass">
>               <value>service.ContainerISOImpl</value>
>       </property>
>       <property name="wsdlDocumentUrl">
> 
>
<value>http://localhost:8080/CosmosServiceLayer/services/ContainerISOImp
l?
> wsdl</value>
>       </property>
>       <property name="serviceFactory" ref ="jaxbServiceFactory"/>
>    </bean>
> 
>       <bean name="jaxbServiceFactory"
> class="org.codehaus.xfire.jaxb2.JaxbServiceFactory">
>       <constructor-arg ref="xfire.transportManager"/>
>       </bean>
> 
> 
> However I still get
> 
> Resovling. Base: , URI:
>
http://localhost:8080/CosmosServiceLayer/services/ContainerISOImpl?wsdl
> Retrieving document at 'null'.
> class $Proxy6
> 
> The SoapUI reveals an error on the server ;
> 
> java.lang.IllegalArgumentException: object is not an instance of
declaring
> class
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
>       at java.lang.reflect.Method.invoke(Unknown Source)
>       at
>
org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoke
r.
> java:54)
>       at
>
org.codehaus.xfire.service.invoker.ObjectInvoker.invoke(ObjectInvoker.ja
va
> :45)
>       at
>
org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(
Se
> rviceInvocationHandler.java:271)
>       at
>
org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(Servic
eI
> nvocationHandler.java:84)
>       at
>
org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(Serv
ic
> eInvocationHandler.java:132)
>       at
>
org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(Servi
ce
> InvocationHandler.java:107)
>       at
>
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:1
31
> )
>       at
>
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.j
av
> a:64)
> 
> Can you help me a little bit further ?
> 
> Luc
> 
> 
> Fried Hoeben wrote:
> >
> > Luc,
> >
> > I think I see what may be your client problem. I assume you want to
use
> > JAXB and not Aegis (a guess based on the server code you supply).
> >
> > You need to specify in the Spring config that you want to use JAXB,
your
> > using the default which is Aegis.
> >
> > "By default this factory bean creates a service endpoint using an
> > instance of [EMAIL PROTECTED]
> > org.codehaus.xfire.service.binding.ObjectServiceFactory}. Another
one
> > can be configured using [EMAIL PROTECTED] 
> > #setServiceFactory(ServiceFactory)}"
> >
> > Fried
> >
> >
> >
> 
> --
> View this message in context:
http://www.nabble.com/JSR181---Spring-based-
> server-and-client-tf2961233.html#a8296729
> Sent from the XFire - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to