How can I replace the Python cgi script with CF

I am testing the sample app and want to just use CF to track
peer ids.
Can you give me the api to the web service calls.
I can then create the CFC to handle this.
In order to use the sample application that you built, you
need to setup your web server and host the provided Python script
(reg.cgi) for exchanging peer IDs. Please note that setting up the
web service is not needed for the hosted VideoPhone sample. In
VideoPhoneLabs.mxml, please set WebServiceUrl accordingly. You may
also use Google Apps to host this web service (minimal
modifications required).
The Python script should be placed in the cgi-bin location
according to your web server installation. The database is an
SQLite3 database. In reg.cgi, please edit the location of the
database in variable dbFile.
You also need to create a database scheme using the
followings:
CREATE TABLE registrations (
m_username VARCHAR COLLATE NOCASE,
m_identity VARCHAR,
m_updatetime DATETIME,
PRIMARY KEY (m_username)
CREATE INDEX registrations_updatetime ON registrations
(m_updatetime ASC);

the sample web service we provided has the following API:
to record peerID "1234" for username "foo", do
http://your.domain/cgi-bin/reg.cgi?username=foo&identity=1234
you should get back an XML document with result.update=true
or false depending on whether the database was updated.
to look up the peerID for username "foo", do
http://your.domain/cgi-bin/reg.cgi?friends=foo
you should get back an XML document like:
<?xml version="1.0" encoding="utf-8"?>
<result>
<friend>
<user>foo</user>
<identity>1234</identity>
</friend>
</result>
there will be no "identity" entry if the user is not found.
the lookup is case-insensitive but case-preserving, so if you
looked up "Foo", the user field would be "Foo" but there'd be an
extra "registered" field with the username as it was registered.
-mike

Similar Messages

  • How can i replace the standard ESS iview with my own iview

    I want to replace standard ESS addr iview with my own WD developed by ABAP
    I added the iview(my WDA) into standard ESS addr page.
    (pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.pages/com.sap.pct.erp.ess.personal_information/com.sap.pct.erp.ess.cn/com.sap.pct.erp.ess.addr/com.sap.pct.erp.ess.addr)
    And make it visible.
    But I got this error in ESS PA addr :
    WebDynpro Exception: Application PER_ADDRESS_CN Does Not Exist
    Here is the error code :
    Error code&#65306;ICF-IE-http-c:100-u:AC_WANGFZ-l:1-s:CE1-i:SAPCE101_CE1_01-w:0-d:20070514-t:172301-v:RABAX_STATE-e:UNCAUGHT_EXCEPTION
    So , how can i replace the standard ESS iview with my own iview?
    Thanks

    Can you see any Javascript EPCF code in the old iView  ?  You are surely just going to have to find it  (if our hunch is correct) and analyse it and copy it into your new iView so that it functions in some way that at least does not error

  • How can I replace the old commenting system with Disqus?

    How can I replace the old commenting system on Business Catalyst with Disqus? Please help

    Hi,
    The Disqus integration has been done by at least one BC partner – simpleflame.com, on this site: http://kiyuco.com/free-videos . You could reach out to them inquiring for more details on how it has been done.
    Kind regards,
    -Sidney

  • How can I replace the cursor in the below query?

    I have this below query which calls a stored procedure that takes only 1 item's attributes at a time. But because of performance problems we are
    required to remove the cursor. How can I replace the below cursor logic with set operations or CTE? Please advice.
    DECLARE db_cursor_ava CURSOR
    FOR
    SELECT t.[agent-id],
    t.[start-date],
    t.[end-date],
    t.[monitor-days],
    t.[monitor-start],
    t.[monitor-end],
    t.[timezone-offset]
    FROM @tmpAgentPeriodTimeRange t
    OPEN db_cursor_ava
    FETCH NEXT FROM db_cursor_ava INTO @agentID_ava,
    @stDateTime_ava,
    @endDateTime_ava,
    @monDays_ava,
    @monSt_ava,
    @monEnd_ava,
    @offset_ava
    WHILE @@FETCH_STATUS = 0
    BEGIN
    DELETE
    FROM @tmpMonitorPeriod
    DELETE
    FROM @tmpFinalResult
    SET @runID = 1
    IF(@endDateTime_ava>DATEADD(MI,@offset_ava, GETUTCDATE()))
    BEGIN
    SET @endDateTime_ava=DATEADD(MI,@offset_ava, GETUTCDATE())
    END
    INSERT INTO @tmpMonitorPeriod
    EXEC core.usp_GetMonitoringPeriod
    @startDate = @stDateTime_ava,
    @endDate = @endDateTime_ava,
    @monitoringDays = @monDays_ava,
    @monitoringStart = @monSt_ava,
    @monitoringEnd = @monEnd_ava
    SELECT @maxID = MAX(tm.id)
    FROM @tmpMonitorPeriod tm
    FETCH NEXT FROM db_cursor_ava INTO @agentID_ava,
    @stDateTime_ava,
    @endDateTime_ava,
    @monDays_ava,
    @monSt_ava,
    @monEnd_ava,
    @offset_ava
    END
    CLOSE db_cursor_ava
    DEALLOCATE db_cursor_ava
    mayooran99

    You've been down this path before  - and the response is exactly the same.
    how to replace cursor logic
    And I'll suggest that you post the entire code - since you repeatedly delete 2 table variables but only populate one. The setting of @maxID also seems to have no purpose. And perhaps the issue here isn't the cursor but the general approach.  Who knows
    - but it appears you may have prematurely assumed that the cursor is the problem.

  • How can i replace the battery of an iPad 2?

    How can I replace the battery of an 3.5 year old IPAD 2?
    battery is empying fast compared to when I bought it and I would want to give this to my parents

    Apple will replace the battery for you. See here for details: https://www.apple.com/batteries/replacements.html

  • How can I extract the full SQL script for a schema?

    Hi,
    How can I extract the full SQL script for a schema?
    I am looking for some method that needs jus SQL*Plus and preferably doesn’t need any extra tool.
    Thank you,
    Alan

    How can I extract the full SQL script for a schema?What are you looking for? PL/SQL code? DDL for objects?

  • HT4060 how can i replace the battery on my ipad? it wont charge all the way

    my ipad will only charge to 14% then goes down...how can i replace the battery?

    iPad Owners
    Your one-year warranty includes replacement coverage for a defective battery. You can extend your coverage to two years from the date of your iPad purchase with the AppleCare Protection Plan for iPad. During the plan’s coverage period, Apple will replace the battery if it drops below 50% of its original capacity. If it is out of warranty, Apple offers a battery replacement for $99, plus $6.95 shipping, subject to local tax. Apple disposes of your battery in an environmentally friendly manner.
    http://www.apple.com/batteries/replacements.html

  • How can I replace the SIM on Droid Ultra?

    How can I replace the SIM on Droid Ultra?

    SIM cards are free at your local Corporate Verizon store.
    SIM Card - Inserting/Removing - DROID Mini / DROID Ultra / DROID Maxx by Motorola

  • How can I replace the out of the box photos with my own when music is playing?

    How can I replace the out of the box photos with my own when music is playing?

    Welcome to the Apple Community.
    Select any photos you want to share with the Apple TV using the iTunes advanced menu (using iPhoto is the better option but a folder will work). Once all the photos you want are shared, go to settings > screensaver on the Apple TV and choose which of those shared photos you want to use with your screensaver.

  • How can I replace the current contacts list and put in my own

    How can I replace the current contacts list and put in my own?  My son's name and contact list appear, inadvertently loaded when he used the iPad.  I have an iPad mini, fully updated to iOS 7.0.4.

    He must have signed into his icloud account using your device.  You need to disconnect the device from that account and then sign in using your account ID.
    Go to Settings>icloud, scroll to bottom of screen and tap Delete Account.  Then log in using a different ID.

  • Since I am writing the book in Italian,how can I replace the word CHAPTER with CAPITOLO ?

    Since I am writing the book in Italian, how can I replace the word CHAPTER with CAPITOLO ?

    I think you need to run iBA in Italian so the templates are in that language.  You can do that by switching your OS X to Italian and then reopening iBA or perhaps by using this app to just change the iBA language:
    http://www.tj-hd.co.uk/en-gb/languageswitcher/
    see also
    https://discussions.apple.com/message/20745332#20745332

  • How can I replace my old print driver with my new printer driver on 13

    how can I replace my old print driver with my new print driver on photo elements 13

    The print driver is not installed in PSE.
    Check with the manufacturer of your printer.

  • How can I use the old Apple TV with new iTunes?  It tells me to input a code in iTunes but iTunes no longer has a spot to input this code to allow sync.  I can access the iTunes Store fine, just none of my Library

    How can I use the old Apple TV with new iTunes?  It tells me to input a code in iTunes but iTunes no longer has a spot to input this code to allow sync.  I can access the iTunes Store fine, just none of my Library

    read this
    https://discussions.apple.com/message/20429789#20429789

  • How can I change the email address associated with my iCloud account?Ask your question.

    How can I change the email address associated with my iCloud account?

    sschultz365 wrote:
    When my iPhone updated, it reloaded an old email address as my iCloud address and I don't know the password associated with that email address.  How do I delete the old account and set up a new one with my new email?
    To change the iCloud ID ("email address") you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you do this you may find that the password for your old ID isn't accepted.  If this should happen, and if your old ID is an earlier version of your current ID, you need to temporarily recreate your old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How can I change the email address associated with my iCloud account?

    How can I change the email address associated with my iCloud account? Somehow, accidentally have my wife's email address on my iCloud account and on hers as well.

    iCloud FAQ
    http://support.apple.com/kb/HT4436

Maybe you are looking for

  • In XML Output the values of Number column tags are not displayed properly

    Hi, Our Client have been using AR Invoice Print Program for a long time and it is heavily customized. Also they are using an old version of the RDF. So we have taken the latest version of the RDF (RAXINV.rdf) for Oracle Apps 11.5.10.2 by raising a SR

  • Cannot get token by Get-MgmtSvcToken

    hi everyone! i'm running this command : $Credential = Get-Credential $Token = Get-MgmtSvcToken -Type Windows –AuthenticationSitehttps://yourauthenticationsite:30072 -ClientRealm http://azureservices/AdminSite -User $Credential -DisableCertificateVali

  • How can I copy one material caracteristic into VBKD-BSTKD in VA02?

    Hi all, I need to find a user-exit or BADI to do some changes when I save the order (VA02) I have to copy the value of the material caracteristic (Configuration) into field VBKD-BSTKD. Any help would be useful.. thx in advance.

  • Problem with oops

    HI GURU'S,                  WHAT IS THE TYPE ASSOCIATED WITH SENDER. PLEASE CHECK THE FOLLOWING CODE FOR REFERRENCE. CLASS lcl_event_handler IMPLEMENTATION . *Handle Double Click METHOD handle_double_click . PERFORM handle_double_click USING e_row   

  • ITunes BEX crash in Windows 7 Home Premium

    Hi all, trust me when I say I researched this extensively before asking. I just got a new iPhone 5C today, and of course had to upgrade to the latest 64-bit iTunes from the version that had been flawlessly working with my 3GS for years. It absolutely