Hi all!

First of all my name is Victor, and I am from Barcelona and I am new in the
list.

I have a problem with the webservice I have developed. I have used the
wsdl2java tool because I had the wsdl first.

Now, I have developed the client and when I try to connect with the service
I have this exception as result:

javax.xml.ws.soap.SOAPFaultException: object is not an instance of declaring
> class while invoking public abstract
> com.httpcomunicacio.integrador.ws.model.to.trust.generated.ReservationDownloadConfirmation
> com.httpcomunicacio.integrador.ws.producer.trust.VoyagerServicePortType.sendReservations(com.httpcomunicacio.integrador.ws.model.to.trust.generated.Reservations)
> with params
> [com.httpcomunicacio.integrador.ws.model.to.trust.generated.reservati...@2e14f5bf
> ].
>
> at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)
>
> at $Proxy38.sendReservations(Unknown Source)
>
> at com.trustinternational.xml.reservation._2009._11.VoyagerService.main(
> VoyagerService.java:116)
>
> Caused by: org.apache.cxf.binding.soap.SoapFault: object is not an instance
> of declaring class while invoking public abstract
> com.httpcomunicacio.integrador.ws.model.to.trust.generated.ReservationDownloadConfirmation
> com.httpcomunicacio.integrador.ws.producer.trust.VoyagerServicePortType.sendReservations(com.httpcomunicacio.integrador.ws.model.to.trust.generated.Reservations)
> with params
> [com.httpcomunicacio.integrador.ws.model.to.trust.generated.reservati...@2e14f5bf
> ].
>
> at
> org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.unmarshalFault(
> Soap12FaultInInterceptor.java:114)
>
> at
> org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.handleMessage(
> Soap12FaultInInterceptor.java:59)
>
> at
> org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.handleMessage(
> Soap12FaultInInterceptor.java:46)
>
> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> PhaseInterceptorChain.java:244)
>
> at
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(
> AbstractFaultChainInitiatorObserver.java:99)
>
> at
> org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(
> CheckFaultInterceptor.java:69)
>
> at
> org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(
> CheckFaultInterceptor.java:34)
>
> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> PhaseInterceptorChain.java:244)
>
> at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:729)
>
> at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(
> HTTPConduit.java:2261)
>
> at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(
> HTTPConduit.java:2134)
>
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
> HTTPConduit.java:1988)
>
> at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>
> at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:639)
>
> at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(
> MessageSenderInterceptor.java:62)
>
> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> PhaseInterceptorChain.java:244)
>
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
>
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
>
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
>
> at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>
> at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
>
> ... 2 more
>

Any thought about what does it mean? I create the Reservations object with
the ObjectFactory class to be sure it is well created...

Thanks in advance,

Víctor Rodríguez
www.v-code.org

Reply via email to