Forum Discussion

bunty's avatar
12 years ago

WADL testing in SOAP UI returning 404 Not Found :(

Hi all,

I am trying to test a RESTful service using SOAP UI. The service is just a hello world code which accept the username at the end of the URL, invokes @GET method in the service and returns a String.

I am triggering the service using this URL in the browser:

http://localhost:8045/HelloWorld/rest/hello/bunty

where username = "bunty"

Then I changed the URL to this for getting the WADL:

http://localhost:8045/HelloWorld/rest/application.wadl

and imported into the SOAP UI.

Then I opened the Request1, entered the parameter and submitted the request, got the 404 error.

In the RAW tab, saw this:

GET http://localhost:8045/HelloWorld/rest//hello/bunty HTTP/1.1
Accept-Encoding: gzip,deflate
Accept: */*


An extra "/" is coming in front of hello in the URL which is not correct.

Not sure where to change for making the URL correct.

Below is the WADL content when opened in SOAP UI:

<application xmlns="http://wadl.dev.java.net/2009/02">
<doc jersey:generatedBy="Jersey: 1.17 01/17/2013 03:31 PM" xmlns:jersey="http://jersey.java.net/"/>
<grammars/>
<resources base="http://localhost:8045/HelloWorld/rest/">
<resource path="/hello">
<resource path="{param}">
<param type="xs:string" style="template" name="param" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<method name="GET" id="getName">
<response>
<representation mediaType="*/*"/>
</response>
</method>
</resource>
<resource path="/msg/{param}">
<param type="xs:string" style="template" name="param" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<method name="GET" id="getMsg">
<response>
<representation mediaType="*/*"/>
</response>
</method>
</resource>
</resource>
</resources>
</application>



Please help me in resolving the issue.

Thanks,
No RepliesBe the first to reply