ndionisi
12 years agoNew Contributor
[Resolved] Application name appended to the resource name
Hello,
I'm trying to use SoapUI to generate REST requests to my web application from the WADL generated by my application. So I created a new REST project and added my WADL thanks to the menu Add WADL. I gave the URL to the WADL and SoapUI correctly downloaded it and created the different requests to call each available resources. Now when I double click on one of the generated request, I got the following parameters :
- Endpoint: http://localhost:8080
- Resource: /my-application//my-application//api/version

The correct URL to call my resource should normally be http://localhost:8080/my-application/api/version
Here is a snippet of my WADL I supply to SoapUI (generated by Jersey):
The problem is that resource contains /my-application//my-application//. When I submit the request, I get a 404 error. Now if I remove "/my-application//my-application//" from the resource field and just let "api/version", then the request is done correctly and I got a proper response. However, just after I press the Start request button, SoapUI automatically add "/my-application/" before "api/version" in the Resource field.
Is there anything to configure to prevent SoapUI to add the /my-application//my-application// string when I am generating requests from the WADL or is there something that I am doing wrong?
Thank you in advance.
I'm trying to use SoapUI to generate REST requests to my web application from the WADL generated by my application. So I created a new REST project and added my WADL thanks to the menu Add WADL. I gave the URL to the WADL and SoapUI correctly downloaded it and created the different requests to call each available resources. Now when I double click on one of the generated request, I got the following parameters :
- Endpoint: http://localhost:8080
- Resource: /my-application//my-application//api/version

The correct URL to call my resource should normally be http://localhost:8080/my-application/api/version
Here is a snippet of my WADL I supply to SoapUI (generated by Jersey):
<application xmlns="http://wadl.dev.java.net/2009/02">
<doc xmlns:jersey="http://jersey.java.net/" jersey:generatedBy="Jersey: 1.17.1 02/28/2013 12:47 PM"/>
<grammars/>
<resources base="http://localhost:8080/my-application/">
<resource path="/api/version">
<method id="getPlatformVersion" name="GET">
<response>
<representation mediaType="application/json"/>
<representation mediaType="application/xml"/>
</response>
</method>
</resource>
</resources>
</application>
The problem is that resource contains /my-application//my-application//. When I submit the request, I get a 404 error. Now if I remove "/my-application//my-application//" from the resource field and just let "api/version", then the request is done correctly and I got a proper response. However, just after I press the Start request button, SoapUI automatically add "/my-application/" before "api/version" in the Resource field.
Is there anything to configure to prevent SoapUI to add the /my-application//my-application// string when I am generating requests from the WADL or is there something that I am doing wrong?
Thank you in advance.