camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Pro" <chris-...@gmx.net>
Subject Re: SOAP WebService call
Date Wed, 24 Oct 2012 18:16:24 GMT
Hi Willem

Great, thanks for the advice.

Chris

-------- Original-Nachricht --------
> Datum: Tue, 23 Oct 2012 22:53:41 +0800
> Von: Willem jiang <willem.jiang@gmail.com>
> An: users@camel.apache.org
> Betreff: Re: SOAP WebService call

> You can let camel invoke the WebService by using the WebService client you
> generated in the bean[1] or Processor[2].
> Then you don't need to use SOAP data bind or camel-cxf any more.
> 
> [1]http://camel.apache.org/bean.html
> [2]http://camel.apache.org/processor.html 
> 
> 
> -- 
> Willem Jiang
> 
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Web: http://www.fusesource.com | http://www.redhat.com
> Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/)
> (English)
>           http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
> Twitter: willemjiang 
> Weibo: willemjiang
> 
> 
> 
> 
> 
> On Tuesday, October 23, 2012 at 10:46 PM, Chris Pro wrote:
> 
> > Hello
> > 
> > I'm new to Camel. I read many articles about Camel included
> > "http://camel.apache.org/soap.html". But I don't get the hang of it, how
> to
> > call a Soap-WebService .
> > 
> > I just want to call a Soap WebService, when a file is moved from
> directory
> > "inbox" to "outbox".
> > 
> > The file movement is working with that route-definiton:
> > 
> > from("file:C:/Temp/inbox".to(file:C:/Temp/outbox)
> > .setBody().simple("File moved: ${file:name}")
> > .log(">> Response : ${body}
> > 
> > So after the file was moved, a external Soap WebService should be
> called.
> > I've got a wsdl for the WebService. Therefore I create a JAX-WS
> WebService
> > Client with "wsimport":
> > 
> > wsimport -s . -clientjar externalWebSerivce.jar
> > http://xxx:1234/context/ValidationWebService?wsdl
> > 
> > So I've got a the gerated WebService client. But now I'm lost. How can I
> > call a WebService-Methode with camel after a file was moved from "inbox"
> to
> > "outbox".
> > 
> > If possible, I don't won't to use the "CXF Stack". How does it work with
> the
> > "SoapJaxbDataFormat"? Or if it's not possible with "SoapJaxbDataFormat",
> how
> > does it work with "CXF"?
> > 
> > Would be great, if someone could help me.
> > 
> > Thanks a lot
> > Chris
> 
> 
> 

Mime
View raw message