You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by devkatiyar <de...@gmail.com> on 2010/06/10 06:57:11 UTC
List in CXF Web Service using Camel
sendMessage (
@WebParam(name = "carrierList") List<String> carrierList,
@WebParam(name = "recipientList") List<String> recipientList);
)
so when i am calling web service ...passing as List type parameter
......when this call server web service List is not received ..
can any one tell help me or provide me some kind of example how to pass
complex kind of data type
Thanks ..
Dev
--
View this message in context: http://old.nabble.com/List-in-CXF-Web-Service-using-Camel-tp28838758p28838758.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: List in CXF Web Service using Camel
Posted by devkatiyar <de...@gmail.com>.
Hi ..
Thanks for reply... that's working fine a you told me but ..
the web service which i am calling that service do not receive the
parameter type java.util.List ....
do i need the type converter
dev
willem.jiang wrote:
>
> devkatiyar wrote:
>> hi Willem ,
>>
>> Thanks for reply what if in same > sendMessage (
>>> @WebParam(name = "carrierList") List<String> carrierList,
>>> @WebParam(name = "recipientList") List<String> recipientList
>> String id ,
>> String count
>> );
>>
>> other string parameter is also there in the same list ..
>>
>>
> Yes, you can treat the parameter are the list member. CxfProducer will
> take them out and put them into the CxfClient invoke parameter list.
>
> Wille
>
>>
>> Thanks ..
>>
>>
>>
>>
>>
>>
>>
>> willem.jiang wrote:
>>> Hi,
>>>
>>> I just wrote some simple unit test[1] on the latest Camel trunk.
>>> You just need to put the parameters into an Object array or a List, then
>>> put it into the message body, then Camel CxfProducer will take care of
>>> them.
>>>
>>> [1] http://svn.apache.org/viewvc?rev=953231&view=rev
>>>
>>> Willem
>>>
>>> devkatiyar wrote:
>>>> sendMessage (
>>>> @WebParam(name = "carrierList") List<String> carrierList,
>>>> @WebParam(name = "recipientList") List<String> recipientList);
>>>> )
>>>>
>>>>
>>>> so when i am calling web service ...passing as List type parameter
>>>> ......when this call server web service List is not received ..
>>>>
>>>> can any one tell help me or provide me some kind of example how to pass
>>>> complex kind of data type
>>>>
>>>>
>>>> Thanks ..
>>>>
>>>> Dev
>>>>
>>>
>>>
>>
>
>
>
--
View this message in context: http://old.nabble.com/List-in-CXF-Web-Service-using-Camel-tp28838758p28869381.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: List in CXF Web Service using Camel
Posted by Willem Jiang <wi...@gmail.com>.
Sorry, I didn't run the test against Axis2, but my unit test is working
with CXF (client and server).
Did you have a change to invoke the Axis2 web service successfully ?
Maybe you can try to capture the request message of the camel-cxf and
the right one, to compare if there are some difference between these two
messages.
Willem
devkatiyar wrote:
>
>
> the web service i am calling that is Axis2 web service so in the service
> side ... List type of parameter is not received
>
>
>
>
> willem.jiang wrote:
>> devkatiyar wrote:
>>> hi Willem ,
>>>
>>> Thanks for reply what if in same > sendMessage (
>>>> @WebParam(name = "carrierList") List<String> carrierList,
>>>> @WebParam(name = "recipientList") List<String> recipientList
>>> String id ,
>>> String count
>>> );
>>>
>>> other string parameter is also there in the same list ..
>>>
>>>
>> Yes, you can treat the parameter are the list member. CxfProducer will
>> take them out and put them into the CxfClient invoke parameter list.
>>
>> Wille
>>
>>> Thanks ..
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> willem.jiang wrote:
>>>> Hi,
>>>>
>>>> I just wrote some simple unit test[1] on the latest Camel trunk.
>>>> You just need to put the parameters into an Object array or a List, then
>>>> put it into the message body, then Camel CxfProducer will take care of
>>>> them.
>>>>
>>>> [1] http://svn.apache.org/viewvc?rev=953231&view=rev
>>>>
>>>> Willem
>>>>
>>>> devkatiyar wrote:
>>>>> sendMessage (
>>>>> @WebParam(name = "carrierList") List<String> carrierList,
>>>>> @WebParam(name = "recipientList") List<String> recipientList);
>>>>> )
>>>>>
>>>>>
>>>>> so when i am calling web service ...passing as List type parameter
>>>>> ......when this call server web service List is not received ..
>>>>>
>>>>> can any one tell help me or provide me some kind of example how to pass
>>>>> complex kind of data type
>>>>>
>>>>>
>>>>> Thanks ..
>>>>>
>>>>> Dev
>>>>>
>>>>
>>
>>
>
Re: List in CXF Web Service using Camel
Posted by devkatiyar <de...@gmail.com>.
the web service i am calling that is Axis2 web service so in the service
side ... List type of parameter is not received
willem.jiang wrote:
>
> devkatiyar wrote:
>> hi Willem ,
>>
>> Thanks for reply what if in same > sendMessage (
>>> @WebParam(name = "carrierList") List<String> carrierList,
>>> @WebParam(name = "recipientList") List<String> recipientList
>> String id ,
>> String count
>> );
>>
>> other string parameter is also there in the same list ..
>>
>>
> Yes, you can treat the parameter are the list member. CxfProducer will
> take them out and put them into the CxfClient invoke parameter list.
>
> Wille
>
>>
>> Thanks ..
>>
>>
>>
>>
>>
>>
>>
>> willem.jiang wrote:
>>> Hi,
>>>
>>> I just wrote some simple unit test[1] on the latest Camel trunk.
>>> You just need to put the parameters into an Object array or a List, then
>>> put it into the message body, then Camel CxfProducer will take care of
>>> them.
>>>
>>> [1] http://svn.apache.org/viewvc?rev=953231&view=rev
>>>
>>> Willem
>>>
>>> devkatiyar wrote:
>>>> sendMessage (
>>>> @WebParam(name = "carrierList") List<String> carrierList,
>>>> @WebParam(name = "recipientList") List<String> recipientList);
>>>> )
>>>>
>>>>
>>>> so when i am calling web service ...passing as List type parameter
>>>> ......when this call server web service List is not received ..
>>>>
>>>> can any one tell help me or provide me some kind of example how to pass
>>>> complex kind of data type
>>>>
>>>>
>>>> Thanks ..
>>>>
>>>> Dev
>>>>
>>>
>>>
>>
>
>
>
--
View this message in context: http://old.nabble.com/List-in-CXF-Web-Service-using-Camel-tp28838758p28869388.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: List in CXF Web Service using Camel
Posted by Willem Jiang <wi...@gmail.com>.
devkatiyar wrote:
> hi Willem ,
>
> Thanks for reply what if in same > sendMessage (
>> @WebParam(name = "carrierList") List<String> carrierList,
>> @WebParam(name = "recipientList") List<String> recipientList
> String id ,
> String count
> );
>
> other string parameter is also there in the same list ..
>
>
Yes, you can treat the parameter are the list member. CxfProducer will
take them out and put them into the CxfClient invoke parameter list.
Wille
>
> Thanks ..
>
>
>
>
>
>
>
> willem.jiang wrote:
>> Hi,
>>
>> I just wrote some simple unit test[1] on the latest Camel trunk.
>> You just need to put the parameters into an Object array or a List, then
>> put it into the message body, then Camel CxfProducer will take care of
>> them.
>>
>> [1] http://svn.apache.org/viewvc?rev=953231&view=rev
>>
>> Willem
>>
>> devkatiyar wrote:
>>> sendMessage (
>>> @WebParam(name = "carrierList") List<String> carrierList,
>>> @WebParam(name = "recipientList") List<String> recipientList);
>>> )
>>>
>>>
>>> so when i am calling web service ...passing as List type parameter
>>> ......when this call server web service List is not received ..
>>>
>>> can any one tell help me or provide me some kind of example how to pass
>>> complex kind of data type
>>>
>>>
>>> Thanks ..
>>>
>>> Dev
>>>
>>
>>
>
Re: List in CXF Web Service using Camel
Posted by devkatiyar <de...@gmail.com>.
hi Willem ,
Thanks for reply what if in same > sendMessage (
> @WebParam(name = "carrierList") List<String> carrierList,
> @WebParam(name = "recipientList") List<String> recipientList
String id ,
String count
);
other string parameter is also there in the same list ..
Thanks ..
willem.jiang wrote:
>
> Hi,
>
> I just wrote some simple unit test[1] on the latest Camel trunk.
> You just need to put the parameters into an Object array or a List, then
> put it into the message body, then Camel CxfProducer will take care of
> them.
>
> [1] http://svn.apache.org/viewvc?rev=953231&view=rev
>
> Willem
>
> devkatiyar wrote:
>> sendMessage (
>> @WebParam(name = "carrierList") List<String> carrierList,
>> @WebParam(name = "recipientList") List<String> recipientList);
>> )
>>
>>
>> so when i am calling web service ...passing as List type parameter
>> ......when this call server web service List is not received ..
>>
>> can any one tell help me or provide me some kind of example how to pass
>> complex kind of data type
>>
>>
>> Thanks ..
>>
>> Dev
>>
>
>
>
--
View this message in context: http://old.nabble.com/List-in-CXF-Web-Service-using-Camel-tp28838758p28839895.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: List in CXF Web Service using Camel
Posted by Willem Jiang <wi...@gmail.com>.
Hi,
I just wrote some simple unit test[1] on the latest Camel trunk.
You just need to put the parameters into an Object array or a List, then
put it into the message body, then Camel CxfProducer will take care of them.
[1] http://svn.apache.org/viewvc?rev=953231&view=rev
Willem
devkatiyar wrote:
> sendMessage (
> @WebParam(name = "carrierList") List<String> carrierList,
> @WebParam(name = "recipientList") List<String> recipientList);
> )
>
>
> so when i am calling web service ...passing as List type parameter
> ......when this call server web service List is not received ..
>
> can any one tell help me or provide me some kind of example how to pass
> complex kind of data type
>
>
> Thanks ..
>
> Dev
>