|
|
|
[
Permlink
| « Hide
]
wichan - [10/18/07 01:54 PM ]
I don't think it is a bug. Relative path isn't a possible choice. Anything inside WEB-INF is not accessible to web. services-config.xml is located in WEB-INF/flex. Using relative path, it has nothing related to. Similar inside web.xml, it doesn't take a path like this. It should use '/' as web root
Are you saying that /amfphp/gateway.php would work? ie. the context root is missing?
<endpoint uri="/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/> @wichan
We are not talking about a WEB-INF/services-config.xml . This is using AMFPHP . Documentation seems to indicate relative uri is possible .. [quote] uri property uri:String [read-write] Provides access to the URI used to create the whole endpoint URI for this channel. The URI can be a partial path, in which case the full endpoint URI is computed as necessary. [/quote] @trbaker Yes using the web ROOT does work , ie <endpoint uri="/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/> providing u have amfphp installed in your web root . :) . Thats my whole argument is that I dont want to force customers to install things in webroot . There are only three things the swf can compute at runtime, protocol, hostname and port (mx.utils.URLUtil). So while it is true that you can use a relative path, it must be resolvable from hostname:port downwards.
The issue is the relative url being pre-pended with "http" .
ex: URI = "/myamfphp/gateway.php" - this works fine if myamfphp is in the ROOTDIR of my webserver . URI="myamfphp/gateway.php" - this doesnt work because it's getting changed to "http:myamfphp/gateway.php" . Its possible to use relative uri's with WebServices and HttpService why not RemoteObject ? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||