Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service Root feature (Trac #7) #7

Closed
edsiper opened this issue Jan 28, 2014 · 1 comment
Closed

Service Root feature (Trac #7) #7

edsiper opened this issue Jan 28, 2014 · 1 comment

Comments

@edsiper
Copy link
Member

edsiper commented Jan 28, 2014

able to avoid the usage of web services short name prefix on URLs.

Migrated from http://bugs.duda.io/ticket/7

{
    "status": "closed", 
    "changetime": "2013-12-31T22:17:08", 
    "description": "able to avoid the usage of web services short name prefix on URLs.", 
    "reporter": "edsiper", 
    "cc": "", 
    "resolution": "fixed", 
    "_ts": "1388528228971058", 
    "component": "API", 
    "summary": "Service Root feature", 
    "priority": "major", 
    "keywords": "", 
    "version": "", 
    "time": "2013-12-31T22:16:04", 
    "milestone": "", 
    "owner": "", 
    "type": "defect"
}
@edsiper
Copy link
Member Author

edsiper commented Jan 28, 2014

Trac update at 20131231T22:17:08:

  • edsiper commented:

Done through patch: http://goo.gl/huZU61

When a request arrives to Duda, it tries to match to which Virtual Host
should be assigned, after that it check which Web Services are registered
under that Virtual Host. So having multiple Web Services under the same
Virtual Host is possible defining different URI addresses for each one
based on their short name, e.g:

app1 -> http://host1:port/app1/
app2 -> hhtp://host1:port/app2/

The 'service root' feature allow to define a service it selfs as
'Service Root', which means that it will own the Virtual Host and others
Web Services will not be used (despites they are loaded). So when using
this feature the URI address becomes root and the short name of the
web service is not longer required, so if 'app1' defines it self as
'service root' it will be accessed through:

http://host1:port/

The way to use this feature can be through the configuration or through
a hard call in duda_main():

  1. Web Service Configuration:

    on the Virtual Host configuration, set the 'Root' key with value 'on'
    or 'off', e.g:

    [WEB_SERVICE]
    Enable on
    Root on

    setting the key to 'on' means the service is root.

  2. Setup through duda_main():

    When starting the service invoke the following method:

    conf->service_root();

Both options are valid, just note that using both ways at same time the
option #2 will override any setup made by the setup on #1.

  • edsiper changed resolution from "" to "fixed"
  • edsiper changed status from "new" to "closed"

@edsiper edsiper closed this as completed Jan 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant