Hallo,
I am using fuse 4.1.0.2 and servicemix-cxf-bc-2009.01.0.3-fuse....
And the stacktrace....
org.apache.cxf.interceptor.Fault:
com.sun.org.apache.xerces.internal.dom.DeferredTextImpl cannot be cast to
org.w3c.dom.Element
at
org.apache.servicemix.cxfbc.interceptors.JbiOutWsdl1Interceptor.handleMessage(JbiOutWsdl1Interceptor.java:154)
at
org.apache.servicemix.cxfbc.interceptors.JbiOutWsdl1Interceptor.handleMessage(JbiOutWsdl1Interceptor.java:56)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:247)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
...
Caused by: java.lang.ClassCastException:
com.sun.org.apache.xerces.internal.dom.DeferredTextImpl cannot be cast to
org.w3c.dom.Element
at
org.apache.servicemix.cxfbc.interceptors.JbiOutWsdl1Interceptor.handleMessage(JbiOutWsdl1Interceptor.java:89)
....
Thx again..
T-Mobile Deutschland GmbH
Aufsichtsrat: Timotheus Höttges (Vorsitzender)
Geschäftsführung: Niek Jan van Damme (Sprecher), Thomas Berlemann, Thomas
Dannenfeldt, Albert Henn,
Dr. Christian P. Illek, Dr. Bruno Jacobfeuerborn, Dr. Dirk Rohweder
Handelsregister: Amtsgericht Bonn, HRB 59 19
Sitz der Gesellschaft: Bonn
WEEE-Reg.-Nr.: DE60800328
-----Ursprüngliche Nachricht-----
Von: Freeman Fang [mailto:[email protected]]
Gesendet: Mittwoch, 17. März 2010 14:48
An: [email protected]
Betreff: Re: http:consumer, content based router and cxf:provider
Hi,
My comment inline
On 2010-3-17, at 下午9:27, Salgar, Mehmet (external) wrote:
> Hi everybody,
>
> I have a problem....
>
> I am trying to configure a system in Servicemix that a http:consumer
> endpoint would get a web service call then depending on some namespace
> in the Soap Message it would redirect the received Message to
> cxf:provider Endpoint which would call a real web service...
>
> The main idea here, I am trying to build a system that present a
> single endpoint for multiple versions of the web service...So incoming
> web service calls namespace tells me the version of the web service, I
> figure out which is the correct version and I call the real service...
>
> Now first two parts of the system works perfectly, I received the web
> service call at http:consumer and redirect it xpath based content
> router and content router routes to cxf:provier but it route as
> StringSource and cxf:provider expects it as DomSource and I get
> classcast exception..
Which smx version you are using? Could you please post the exception trace, I
don't think cxf:provider now only expect DomSource.
>
> Now what I want to ask, how can I convert a StringSource to DomSource
> when the message goes to cxf:provider from ContentRouter....
I believe you can use servicemix-camel to do it.
Freeman
>
>
> Any ideas....
>
>
> T-Mobile Deutschland GmbH
> Aufsichtsrat: Timotheus Hottges (Vorsitzender)
> Geschaftsfuhrung: Niek Jan van Damme (Sprecher), Thomas Berlemann,
> Thomas Dannenfeldt, Albert Henn, Dr. Christian P. Illek, Dr. Bruno
> Jacobfeuerborn, Dr. Dirk Rohweder
> Handelsregister: Amtsgericht Bonn, HRB 59 19 Sitz der Gesellschaft:
> Bonn
> WEEE-Reg.-Nr.: DE60800328
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com