title: Liferay json web service: url access not working?
body: <p>I am creating an Liferay 6.2 json web services. I created remote web service : </p>
  
  <pre><code>public String getUrl(String Urn) throws SystemException{
          String url = "";
          try{
              Urn urn = UrnLocalServiceUtil.getUrnsByUrnCode(Urn);
              return urn.getWholePath();
          }catch(NoSuchUrnException e){
              return url;
          }
      }
  </code></pre>
  
  <p>Webservice is working correctly if used from the web interface on : <a href="http://localhost:8080/api/jsonws/" rel="nofollow">http://localhost:8080/api/jsonws/</a></p>
  
  <p>In tab result i get good and expected result. When i click on tab "Url example" i get this url :
  "<a href="http://localhost:8080/api/jsonws/URN-portlet.urn/get-url/urn/URN%3ANBN%3ANBS%3ADSC%3A00000004" rel="nofollow">http://localhost:8080/api/jsonws/URN-portlet.urn/get-url/urn/URN%3ANBN%3ANBS%3ADSC%3A00000004</a>"
  but when i try to access it i get this message :</p>
  
  <blockquote>
    <p><strong>{"exception":"No JSON web service action associated with path /urn/get-url and method GET for //URN-portlet"}</strong></p>
  </blockquote>
  
  <p>What means the error obtained?</p>