Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Check out <a href="http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/rpc/RemoteServiceRelativePath.html" rel="noreferrer">documentation for RemoteServiceRelativePath annotation</a>, it explains pretty well what this annotation does. In your case, your service must be located at <code>GWT.getModuleBaseURL() + "stockPrices"</code> ... that means that if your GWT app is at <code>/mygwtapp</code>, then your service must be at <code>/mygwtapp/stockPrices</code>. It's up to you to install some service at this URL, usually by defining servlet implementing the service interface.</p> <p>You can use any other path instead of <code>"stockPrices"</code>, just make sure there is real service behind this path on the server.</p> <p>Your remote services need <em>some</em> remote path (entry point), either by using <code>@RemoteServiceRelativePath</code> annotation, or by setting it through <a href="http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/rpc/ServiceDefTarget.html" rel="noreferrer">ServiceDefTarget interface</a>. If service has no entry point, it cannot be called. (Remember: this path is URL on the server)</p> <p>For example, instead of using <code>@RemoteServiceRelativePath</code>, you can define your service without this annotation, and then when you instantiate async service proxy, you explicitly set path:</p> <pre><code>StockPriceServiceAsync stockService = GWT.create(StockPriceService.class); ((ServiceDefTarget) stockService).setServiceEntryPoint("/services/stock.service"); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload