I need to take a look at your SEI.
If your first parameter is List type, you need to put the list into an
Object Array first.
On 2/7/12 5:23 PM, Omar Atia wrote:
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:[email protected]]
Sent: Thursday, February 02, 2012 4:20 AM
To: [email protected]
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<[email protected]>
Date: Wed, 1 Feb 2012 22:20:33
To:<[email protected]>
Reply-To:<[email protected]>
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