From: imlakhani on
Need help in Rest Based Web Services ... need to pass list parameters
in Restful services......anybody can help ?

I am not able send list parameters via Rest ful services. I am using
CXF 2.2.4.

any help will be highly appreciated ?
From: Jeffrey H. Coffield on


imlakhani wrote:
> Need help in Rest Based Web Services ... need to pass list parameters
> in Restful services......anybody can help ?
>
> I am not able send list parameters via Rest ful services. I am using
> CXF 2.2.4.
>
> any help will be highly appreciated ?

I have used jdom (see www.jdom.org). A snip of code that does a post and
gets an XML response follows:

try {
data = "session=" + URLEncoder.encode(session, "UTF-8")
+ "&selection" + URLEncoder.encode(selection),
"UTF-8");
url = new URL("https://xyz.com/vms/report_list");
} catch (Exception e) {
System.out.println("Exception (1) " + e.getMessage());
}

Document doc = PostForXML(url, data);

if (doc == null) {
return;
}

Element root = doc.getRootElement();
From: Lew on
On Dec 16, 6:40 am, imlakhani <imlakh...(a)gmail.com> wrote:
> Need help in Rest Based Web Services ... need to pass list parameters
> in Restful services......anybody can help ?
>
> I am not able send list parameters via Rest ful services. I am using
> CXF 2.2.4.
>
> any help will be highly appreciated ?

See the answer Jeffrey H. Coffield gave in comp.lang.java.programmer
to your multiposted question, and please do not multipost.

Multiposting is the practice of individually and separately posting
the same question in multiple newsgroups, and is distinct from cross-
posting, which is the practice of putting multiple newsgroups as the
destination for the same message all at once. Multiposting is bad
because it fragments the conversation, and can waste people's time
answering in one group where there may be an answer already in
another. If you really, really, really, really, really, *really* feel
that you absolutely imperatively obsessively must post your message to
more than one group (and really, why do you need to do that, really?),
then it's better to cross-post than to multipost, preferably with
followup set to just one group..

--
Lew