How to use the same services-config for the local and remote servers.

My flex project works fine using the below but when I upload my flash file to the server I doesn't work, all the relative paths and files are the same execpt the remote one is a linux server.
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
    <services>
        <service id="amfphp-flashremoting-service"
            class="flex.messaging.services.RemotingService"
            messageTypes="flex.messaging.messages.RemotingMessage">
            <destination id="amfphp">
                <channels>
                    <channel ref="my-amfphp"/>
                </channels>
                <properties>
                    <source>*</source>
                </properties>
            </destination>
        </service>
    </services>
    <channels>
    <channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
        <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
    </channel-definition>
    </channels>
</services-config>
I think the problem  is the line
        <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
but I'm not sure how to use the same services-config for the local and remote servers.

paul.williams wrote:
You are confusing "served from a web-server" with "compiled on a web-server". Served from a web-server means you are downloading a file from the web-server, it does not necessarily mean that the files has been generated / compiled on the server.
The server.name and server.port tokens are replaced at runtime (ie. on the client when the swf has been downloaded and is running) not compile time (ie. while mxmlc / ant / wet-tier compiler is running). You do not need to compile on the server to take advantage of this.
Hi Paul,
In Flex, there is feature that lets developer to put all service-config.xml file configuration information into swf file. with
-services=path/to/services-config.xml
IF
services-config.xml
have tokens in it and user have not specified additional
-context-root
and this swf file is not served from web-app-server (like tomcat for example) than it will not work,
Flash player have no possible way to replace token values of service-config.xml file durring runtime if that service-config.xml file have been baked into swf file during compilation,
for example during development you can launch your swf file from your browser with file// protocol and still be able to access blazeDS services if
-services=path/to/services-config.xml
have been specified durring compilation.
I dont know any better way to exmplain this, but in summary there is two places that you can tell swf  about service confogiration,
1) pass -services=path/to/services-config.xml  parameter to compiler this way you tell swf file up front about all that good stuff,
or 2) you put that file on the webserver( in this case, yes you should have replacement tokens in that file) and they will be repaced at runtime .

Similar Messages

  • HT204053 i used the same apple id for my iphone and my husbands now all our contacts and such are on both phones how do i fix this.  I dont need his contacts on my phone and the other way also.  Should i create a different icloud account for his phone?

    I used the same apple id for my iphone and my husbands now all our contacts and such are together.  How do I undo this?  Do i create him a different icloud account? 

    Yes, start with deleting your account on his device:
    (Settings > iCloud or Settings > Mail, Contacts, Calendar > Your Account)
    In the next step, create a new account on his device:
    (Settings > iCloud or Settings > Mail, Contacts, Calendar > Your Account)

  • HT204053 for ipad2 Using the same Apple ID for Store purchases and iCloud (recommended) yes/

    hi i am shahram i have ipad2 for ipad 2 using the same apple iD for store purchases and iCloud(recommended) yes or no?

    That's what Apple recommend, it's also how I have mine set up. Although it isn't much of a problem to use a different account (ID) for each service.

  • Hi i have the same apple id for my iPad and my mac. my iPhone has a different one. My i cloud on my mac seems to be the iCloud on my iPad, if that makes sense so its not sending my photos from my mac to the cloud. how do i change it to upload mac?

    hi i have the same apple id for my iPad and my mac. my iPhone has a different one. My i cloud on my mac seems to be the iCloud on my iPad, if that makes sense so its not sending my photos from my mac to the cloud. how do i change it to upload mac pictures instead? thanks

    Did you go into Settings > Store and then tap your old ID, sign out and then enter your new ID?

  • If I use the same iCloud account for my ipad and iPhone, will changes I make on one change on the other as well?  I'm not sure of the advantage of using teh same iCloud for both devices.

    If I use the same iCloud account for my ipad and iPhone, will changes I make on one change on the other as well?  I'm not sure of the advantage of using teh same iCloud for both devices.

    No, it only mirrors changes to synced data.  This includes mail, contacts, calendars, reminders, safari bookmarks, notes, iWork documents and data, and photo stream photos (assuming you choose to sync all this data).  Changes to iTunes data such as music, apps, podcasts, etc., are not synced using iCloud.  In your example, if you delete an app from one device it will remain on the other until deleted there too.

  • I recently installed Acrobat Pro X on my Mac. I initially accepted the terms of agreement, but then every few seconds the same prompted window for the terms of agreement keeps popping up. Can anyone explain why this is happening, and how to resolve?

    I recently installed Acrobat Pro X on my Mac. I initially accepted the terms of agreement, but then every few seconds the same prompted window for the terms of agreement keeps popping up. Can anyone explain why this is happening, and how to resolve?

    Have you tried reinstalling the original drive? Same symptoms with it?

  • I have been working on the same numbers file for the past few weeks.  The last time I opened it was 1 week ago.  Today when I tried to open it I am unable and getting a message that the file is invalid and the index.xml file is missing.

    I have been working on the same numbers file for the past few weeks.  The last time I opened it was 1 week ago.  Today when I tried to open it I am unable and getting a message that the file is invalid and the index.xml file is missing. 

    Hi Tracie,
    I upgraded to Maverick OS X 10.9.5, numbers spreadsheet is saved. Upon re-opening, it appears to be frozen, a warning "file is invalid as index.xml file is missing". I checked, and the file is not "locked". This appears to occur only with using the new numbers app. When I open previous spreadsheets from old iWorks, no such problem occurs.
    How did you resolve your problem?
    Would appreciate any help here.
    Thanks,
    Deehay

  • I have a tolino vision 2 and cant copy the e-books from my pc to the tolino. I have the same adobe ID for the tolino and for the PC. I get the message I'm not authoriesed to copy, and/ or my adobe ID does not fit/match to the one at my PC. What can  do? C

    I have a tolino vision 2 and cant copy the e-books from my pc to the tolino. I have the same adobe ID for the tolino and for the PC. I get the message I'm not authoriesed to copy, and/ or my adobe ID does not fit/match to the one at my PC. What can  do? Can someone answer in German?

    I suspect you will want to ask your question at the forum for Adobe Digital Editions which is eBook, eBook reader device focused.
    Be well...

  • Can i use the same apple id for my irish and english iphone?

    I currently use two different Apple IDs on my Irish and English Iphones. Can I use the same Apple ID for both to make it easier to syn onto my macbook?

    Yes, you can use your Apple ID with any Apple product or service worldwide, no matter the language or country, but your account can only be in one iTunes Store country at a time.
    Using your Apple ID: http://support.apple.com/kb/ht4895
    Changing the country of the iTunes Store: http://support.apple.com/kb/ht6119

  • I have been using the same debit card for iTunes forever and now it's saying its declined but it hasn't expired yet

    I Have always used the same debit card for iTunes and then the other day I tried to download an app and it said that I needed to update payment methods so I put in all of my details and it said that my card had been declined. I have no idea why and I don't know how to fix this. Please help

    Is the address on your iTunes account exactly the same (format and spacing etc) as on your credit card bill : http://support.apple.com/kb/TS1646 ? If it is then you could try what it says at the bottom of that page :
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorisations have the correct information on file.
    And/or try contacting iTunes support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Can I use the same apple ID for my personal and work phones?

    I have a personal iPhone (AT&T) and am getting one issued through work (Verizon). Am I able to use the same Apple ID for both phones?

    In theory, yes. You had best ask your IT department, though... or whoever is issuing the phone to you. They may have policies as to what is and is not allowed to be done on company owned phones.

  • Is it possible to use the same OSSO/OID for multiple R11 and R12 instances?

    Hello guru's,
    We have multiple R11and R12 instances that should be configured for Oracle SSO 10.1.4.3. For OID, we are still trying to decide between OID 10.1.4.3, or OID 11g. OAM is not an option because we also also need OSSO integration with Siteminder. We will also need to SSO-enable Discoverer an Forms.
    I have successfully configured SSO for a single-instance EBS R12, but not for multiple instances, let alone include R11 and other components into the mix.
    Do you have any special tips, guidance or lessons learned when SSO-enabling multiple instances into the same SSO/OID?
    Thanks!
    Maria

    Interestingly, the article talks about using the same SSO/OID for EBS, JD Edwards, Peoplesoft multiple R11 instances, but did not mention 'multiple EBS versions'. Am I just being picky or there was a reason for it not being mentioned?In Steven Chan blog (in the same link), see the following:
    Comprehensive Single Sign-On Solution+
    If you have one or more E-Business Suite Release 11i instances and are tired of maintaining users separately for each environment, you can create a central OracleAS 10g environment and manage all 11i users in one place.
    If you have a combination of PeopleSoft, JD Edwards, and the E-Business Suite in your organization, you can use OracleAS 10g to manage users for all three environments centrally.
    If you have a combination of the E-Business Suite and custom applications based on Oracle databases or OracleAS 10g technology, you can use OracleAS 10g to manage users for all applications in a single place.
    Thanks,
    Hussein

  • I am using the same Apple id for my iPhone and iPad! Does this cause a problem with apps?

    I Was told I should use a whole different I'd with my iPad because if I have both my phone and iPad with the same Apple id it will cause conflict with the apps on each of them. Does this happen?

    No. I've been using the same Apple ID on my iPhone and iPad for years without problems. If fact, if both devices are yours and you use both devices having the same Apple ID on each of them is preferable.

  • Can I use the same Oracle Repository for the new FDM App

    Hi All,
    I have to uninstall FDM and install and re-configure FDM again and then restore FDM Apps present previously.
    For this, Can I resue the same Oracle Repository for restoring the FDM app on newly installed instance.
    As far as I know, I need to take the backup of that repository and then drop the Repository and create again and use it for new application
    Please suggest, are there any other ways to do this/..
    thanks in advance
    J

    You can reuse the repository. You will need to <Add Application> instead of <New Application>

  • Can I use the same Adobe ID for Amazon AppStore and Google Play?

    Hello!  We've been on the iPad for two years now and have finally taken the leap designing a version of our magazine for Amazon's Kindle Fire lineup.  I'm curious whether we can share an Adobe ID between Amazon AppStore and Google Play, so that all of our Android folios stay in sync whether the user is on Amazon hardware or another vendor.
    Thanks in advance for any insight.

    Yes, you can use the same Adobe ID (Title ID) for both Amazon Appstore and Google Play Store. In DPS App Builder, create two separate apps, each time specifying the target store (in the App Builder, Google Play is still called Android Market). However, I do not recommend that you use the same Adobe ID for iOS and Google/Amazon unless you're offering custom entitlement (Enterprise only).
    One key difference between Kindle Fire viewers and Android viewers is that Kindle Fire viewers don't display the nav bar. Here's a detailed article about targeting Android/Amazon devices:
    http://blogs.adobe.com/indesigndocs/2012/10/creating-dps-folios-for-android-devices.html

Maybe you are looking for

  • Magic trackpad single tap not working

    Hey Everyone, So I have a new 2014 mac mini, and I have the magic trackpad and wireless keyboard connected to it.  In my settings I have the "single tap" turned on, but when actually "tapping" with a single press, it doesn't work.  The only way it wo

  • How to delete or deactivate my icloud account.

    I recently purchased a new phone and no longer have my iso device. I am wanting to safely remove my icloud account by deactivating it or deleting it. I have had to switch my emails and phone numbers because of someone hacking into my stuff.  this is

  • Windows Media Player Crashes straight after starting program.

    Hi Guys,  Can Anybpody help me resolve the followiung  .... I am running Windows 8.1 x64 on my unit (M6 Envy 1205sa). I am facing the following problem: 

  • IPod 5G, iTunes 10.4, Album artwork, Vista

    Hello there, I own an iPod5G (60G), connect to a Vista PC (yes, I know) through iTunes 10.4. I tried to add albums artwork to show on the iPod, to no result. Practically speaking, I have successfullyf added the artwork to the tags (through TagScanner

  • Sorting Hashtable by value

    All, I have a Hashtable with key (String) and value(float) now I want to sort it by value without disturbing the key value match I know, it can be done by sorting the keys... and then calling get() to obtain the value for the key but I want exactly o