Web Services Restful Services

I

imlakhani

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 ?
 
J

Jeffrey H. Coffield

imlakhani said:
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();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top