Thanks I understand it from the following code : http://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
-----Original Message----- From: Omar Atia Sent: Tuesday, February 07, 2012 11:21 AM To: users@camel.apache.org Subject: RE: Web service with more than one input in spring DSL. Dear Willem, Please can u provide example , for the list or object array ? as we tried object array , CXF consider it as one parameter and raise the following exception : [camel Thread 6 - MinaThreadPool] MinaProducer$ResponseHandler INFO [/0.0.0.0:5566] RECEIVED: java.lang.IllegalArgumentException: Get the wrong parameter size to invoke the out service, Expect size 5, Parameter size 1. Please check if the message body matches the CXFEndpoint POJO Dataformat request. Thanks, Omar Atia -----Original Message----- From: Willem Jiang [mailto:willem.ji...@gmail.com] Sent: Thursday, February 02, 2012 4:20 AM To: users@camel.apache.org Subject: Re: Web service with more than one input in spring DSL. On Wed Feb 1 23:10:19 2012, Omar Atia wrote: > The issue that I know how to invoke WS operation with one input param using > spring DSL , adding header operation name and invoke it using only spring DSL > and cxf pojo so the class pojo object will be passed through camel exchange > to WS CXF call , what about if this operation has more than one input param ? You can put the parameters into a List or Object array, camel-cxf component will take care rest of them. > > I will read the below articles and see what can I do , I don't want to write > java beans and call WS inside java beans , I need to call it from spring DSL > :) > > Thanks, > Omar atia > Sent via BlackBerry® > > -----Original Message----- > From: Willem Jiang<willem.ji...@gmail.com> > Date: Wed, 1 Feb 2012 22:20:33 > To:<users@camel.apache.org> > Reply-To:<users@camel.apache.org> > Subject: Re: Web service with more than one input in spring DSL. > > Hi, > > I don't quite understand what you want to do. > If you have a little experience of JAXWS, you can know the wsdl2java > tool already generate the artifacts that you need to invoke the Service. > > Camel has lots of component to help use interact with the Web Services, > camel-cxf[1], camel-spring-ws[2], camel-soap[3] can do the things that > you want. > Please take some time to go through the wiki pages those I showed you. > > [1]http://camel.apache.org/cxf.html > [2]http://camel.apache.org/spring-web-services.html > [3]http://camel.apache.org/soap.html > On Wed Feb 1 21:18:11 2012, Omar Atia wrote: >> Dears, >> >> I have Web service , that has operation which has many input as >> parameter to that operation , after generating the Java proxy using >> wsdl2java , it seems that there is more than input/java source to the >> Web service . >> >> Can we manage to use JaxB and do the configuration for the Web service >> Client using spring only XML configuration with Zero code , and call >> the Web service using spring , shall the camel exchange use more than >> one class . >> >> Or we need to make a bean in spring and JAXWS to invoke it attached WSDL. >> >> Appreciate your feedback . >> >> Thanks, >> >> Omar Atia >> > > > -- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang