Ticket #115 (closed enhancement: fixed)

Opened 6 months ago

Last modified 5 months ago

Get rid of complete URL in JSON-RPC service config

Reported by: mikey Assigned to: rist
Priority: blocker Milestone: 0.4.0
Component: JSON-RPC services Version: SVN-trunk
Keywords: Cc:

Description

We need to get rid of the complete URL in the JSON-RPC service configuration file. Problems arise if a website is available under several domains (e.g. with and without www.). The config file should only contain the URL without the domain part.

Even better would be the possibility to set the service URL at runtime via a global variable in java script instead when generating the java script stubs for the services, this would make the service stubs independent of the current runtime.

Change History

12/14/07 14:11:02 changed by rist

  • owner changed from schst to rist.
  • status changed from new to assigned.

12/20/07 11:24:11 changed by rist

  • status changed from assigned to closed.
  • resolution set to fixed.

implemented with changeset:1165 & changeset:1166

12/20/07 17:54:37 changed by rist

The following js object has now to be set manually: stubbles.json.rpc.serviceUrl = '/part/after/domain/index.php5?processor=jsonrpc';

When using the memphis processor, the url part is generated automatically for you: stubbles.json.rpc.serviceUrl = '{SERVICE_URL}';