Having more than one Get in Restful webservice.

Dear Javaranch members,
I am new to java and Webservices.
I am working on a university project to connect test instruments and get request and response from it using webservice.

I have to request more than one service from the instrument, but when i use more than two @Get in the server, i get an error in browser saying "Cannot access WADL, please restart your restful webservice"

/**
* PUT method for updating or creating an instance of GenericResource
* @param content representation for the resource
* @return an HTTP response with content of the updated or created resource.
*/
@PUT
@Consumes("text/html")
public String putHtml(String interface_name) {

As a RESTful service, each resource should have a different URL, right?

How are you addressing (ie the URL used) these resources.

Bill

Balkishore pandey
Greenhorn

Joined: Apr 19, 2012
Posts: 19

posted Apr 20, 2012 09:13:27

0

@williams

Thank you very much for replying.
Please excuse my stupidity as i am very much new to java and netbeans, i couldn't get what you meant there?
What can i do in the code to create a new URL? do i have to create a new path? if so how would i do it?