You can cast your async service instance in client code to 
ServiceDefTarget, then invoke setServiceEntryPoint(...) on it with the 
desired URL.

https://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/rpc/ServiceDefTarget.html

On Tuesday, December 17, 2024 at 3:39:07 PM UTC-6 [email protected] 
wrote:

> Hello all:
>
> I am having a problem with an RPC call.
>
> My server side is available and responds to requests. I put a doGet
> method in the implementation class and you can see its response
> at this url:
> https://dev.3dmathpuzzles.com/3dmp/DiagonalSlitherlink/GetPuzzle
>
> When I load my client code:
> https://dev.3dmathpuzzles.com/3dmp/diagonalSlitherlink.html
> The RPC call fails with a 404 error.
>
> I think the RPC call is using a different URL than what my server is
> expecting.
>
> I called GWT.getModuleBaseURL() and it gave me
> https://dev.3dmathpuzzles.com/play/DiagonalSlitherlink/
>
> So I think it might be trying to access the RPC at
> https://dev.3dmathpuzzles.com/play/DiagonalSlitherlink/GetPuzzle
>
> That is not going to work since that request will only go to Apache
> and not make it to Tomcat.
>
> Is there a way to force the base URL for the RPC call?
>
> Thank you,
> Neil
>
> --
> Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
> We offer 30 year loans on single family houses!
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/google-web-toolkit/67fa24f0-a10e-4905-902a-039f43054fe2n%40googlegroups.com.

Reply via email to