problem when call one side Committee client-side Server

Hello world! I have a problem when I call a side Committee client-side server.

Here's the code. When the swf file is connected to the FMS (the connection is successful) I use this application.user_so.send ("enterContestGroup"); to call the Committee client side. You can see that in the client side, I've defined the Committee 'enterContestGroup '. However, the fact is that it does not call that Committee. Can someone tell me what is the error?

Thanks for any help!

This is the code on the server side:

application.onAppStart = function()
{
application.user_so = SharedObject.get ("user_so", false);
application.nextId = 0;
}
application.onConnect = function (newClient)
{
application.acceptConnection (newClient);
application.user_so. Send ("enterContestGroup");
}

This is the code on the client side:

var nc:NetConnection = new NetConnection();
var url: String = "rtmp://localhost:1935 / testapp";
var user_so:SharedObject = new SharedObject();

NC. Connect (URL);

nc.onStatus = function (info)
{
If (info.code is "NetConnection.Connect.Success")
{
trace ("Success!");

}
on the other
{
trace (info.code)
}
}
user_so = SharedObject.getRemote ("user_so", nc.uri, false);
user_so. Connect (NC);

user_so.enterContestGroup = function (uname, uimg, uid, cid)
{
trace ("do something about enterRoom")
}

Hello

In fact, you can use broadcastMsg API to deliver the object to the customers.

Here is an example of its use.

Server-side:

var obj = new Object();
application.onConnect = {function (customer)}

obj. Prop1 = "1";
obj. Prop2 = '2 ';
application.acceptConnection (client);
Broadcast (obj);
}

var broadcast = {function (obj.)}
application.broadcastMsg ("m1", obj);
}

(AS2) client-side

var nc = new NetConnection();
nc.onStatus = {function (info)}
trace (info.code);
}

NC. M1 = {function (obj.)}
trace (obj. Prop1);
trace (obj. Prop2);
}

NC. Connect ("rtmp://localhost/test");

Let me know if experience you problems with this.

Thank you

Abhishek

Tags: Adobe Media Server

Similar Questions

  • Problem when calling a return function of SQL BOOLEAN in package type

    Hi all

    I'm having a problem when you try to call a SQL function in a package with the return BOOLEAN type
    The SQL function signature is
    ####

    CREATE OR REPLACE PACKAGE RMSOWNER. ORDER_ATTRIB_SQL *.

    FUNCTION GET_PO_TYPE_DESC (O_error_message IN OUT VARCHAR2,
    I_PO_TYPE IN VARCHAR2,
    O_PO_TYPE_DESC IN OUT VARCHAR2)
    RETURN A BOOLEAN VALUE;

    ####


    Here is my java code

    ####
    + Cs3 CallableStatement = conn.prepareCall ("{?}") = call ORDER_ATTRIB_SQL. GET_PO_TYPE_DESC(?,?,?)} ");" +
    + CS3.registerOutParameter (1, java.sql.Types.BOOLEAN) +;
    + CS3.registerOutParameter (2, java.sql.Types.VARCHAR) +;
    + CS3.registerOutParameter (4, java.sql.Types.VARCHAR) +;
    + CS3. SetString (2, ""); +
    + CS3. SetString (3, "ST"); +
    + CS3. SetString (4, ""); +
    + ResultSet rs3 = cs3.executeQuery (); +
    ####

    I get the following exception, I tried to change the (registerOutParameter) boolean sql type bit, but I've always found this exception.
    But when I call all other functions with a return type other than boolean, they work perfectly well.

    Please can someone help me solve this problem, I don't know if its something to do with classes of JDBC providers?

    #####
    + java.sql.SQLException: ORA-06550: line 1, column 13: +.
    + PLS-00382: expression is of the wrong type.
    + ORA-06550: line 1, column 7: +.
    + PL/SQL: statement ignored +.

    + oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) +.
    + oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) +.
    + oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288) +.
    + oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743) +.
    + oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:215) +.
    + oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:954) +.
    + oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168) +.
    + oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3316) +.
    + oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3422) +.
    + oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4394) +.

    #####

    Looks like it's a Limitation of the jdbc drivers. Please visit the following link:
    http://www-Camden.Rutgers.edu/help/documentation/Oracle/Java.815/a64684/typesup1.htm

    Here is an excerpt from above:
    ==========================================================
    PL/SQL BOOLEAN, RECORD and the Types of TABLES of packing

    Oracle JDBC drivers support the argument of appeal or return values of PL/SQL TABLE types (now known as indexed arrays by), REGISTRATION or BOOLEAN.

    To work around the problem, you can create wrapper procedures that manage data like types supported by JDBC. For example, to wrap a stored procedure that uses PL/SQL Boolean values, you can create a stored procedure that takes a character or a number of JDBC and passes to the original procedure as BOOLEAN or, for an output parameter, accepts a BOOLEAN of the original procedure argument and pass it as a TANK or a NUMBER to JDBC. Similarly, to wrap a stored procedure that uses PL/SQL records, you can create a stored procedure that maintains a record in its individual components (such as CHAR and NUMBER). To wrap a stored procedure that uses PL/SQL tables, you can divide the data into components or perhaps use Oracle collection types.

  • German characters problem when calling Web Services via UTL_HTTP

    Dear members,

    I try to call the services of SAP CRM Web of Oracle PL/SQL. I used following code which works very well.
    -- call web service using Oracle UTIL_HTTP packages
    DECLARE
      http_req utl_http.req;
         http_resp utl_http.resp;
         lv_request VARCHAR2(32767);
         lc_response CLOB;
         lv_buffer VARCHAR2(32000);
         lv_name          VARCHAR2(256);
         lv_hdr_value     VARCHAR2(1024);     
         l_xml XMLType;          
    BEGIN     
         utl_http.set_persistent_conn_support(true);
         utl_http.set_transfer_timeout(600);
         
         http_req:= utl_http.begin_request
                                       ( url => 'http://xyz3ni92.server.xyz.com:8045/sap/bc/srt/xip/sap/crm_bupa_custid_qr/011/customersbycrmid/http_binding'
                                       , method => 'POST'                              
                                       );
         lv_request := '<?xml version="1.0" encoding="UTF-8"?>'
         ||'<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:glob="http://sap.com/xi/CRM/Global2">'
       ||'<soap:Header/>'
       ||'<soap:Body>'
          ||'<glob:CustomerCRMByIDQuery>'
             ||'<MessageHeader>'
                ||'<ID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?"></ID>'
                ||'<UUID></UUID>'
                ||'<ReferenceID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?"></ReferenceID>'
                ||'<ReferenceUUID></ReferenceUUID>'
             ||'</MessageHeader>'
             ||'<BusinessPartnerSelectionByBusinessPartner>'
                ||'<UUID schemeID="?" schemeAgencyID="?"></UUID>'
                ||'<InternalID>2200117598</InternalID>'
             ||'</BusinessPartnerSelectionByBusinessPartner>'
          ||'</glob:CustomerCRMByIDQuery>'
               ||'</soap:Body>'
         ||'</soap:Envelope>';     
         /*set username and password*/
         utl_http.set_authentication (
                   r => http_req,
                   username => 'WS_USER',
                   password => 'WS_PASSWORD',
                   scheme => 'Basic',
                   for_proxy => false);     
                   
         utl_http.set_header(http_req, 'Content-Type', 'application/soap+xml;charset=UTF-8'); 
         utl_http.set_header(http_req, 'Content-Length', LENGTHB(lv_request));
         utl_http.write_text(http_req, lv_request);
         /*Make HTTP call*/
         http_resp:= utl_http.get_response(http_req);
         
         /*read response text from response*/
         BEGIN
                   LOOP
                             utl_http.read_text(http_resp, lv_buffer);
                             lc_response := lc_response || TO_CLOB(lv_buffer);
                   END LOOP;
         EXCEPTION
                   WHEN OTHERS THEN
                        -- ora-29266 end-of-body reached
                        IF SQLCODE <> -29266 THEN
                                  RAISE;
                        END IF;
         END;
         utl_http.end_response(http_resp);     
         l_xml := XMLType(lc_response);
         /*Log response for testing*/
         DELETE FROM webservice_log;
         INSERT INTO webservice_log (seq_id,xml_response) VALUES (sqe_Webservice_Log.NEXTVAL,l_xml);
    EXCEPTION WHEN OTHERS THEN
              RAISE;
    END;
    However, if there are any German character in SAP, then they are replaced by UNWANTED data when they come to Oracle.

    If I invoke continues the same web service tools like SOAP-UI, then German characters do very well. I've also drawn web service queries and answers of the side SAP, and there response shows fine. When it comes to Oracle, they are themselves corrupt.

    I'm sure it's something to do with the character, but I am not able to find where and what should I fix/change.

    Thank you for your help in advance.

    DB: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    NLS_DATABASE_PARAMETERS
    PARAMETER                      VALUE                                  
    ------------------------------ ----------------------------------------
    NLS_LANGUAGE                   AMERICAN                                 
    NLS_TERRITORY                  AMERICA                                  
    NLS_CURRENCY                   $                                        
    NLS_ISO_CURRENCY               AMERICA                                  
    NLS_NUMERIC_CHARACTERS         .,                                       
    NLS_CHARACTERSET               AL32UTF8                                 
    NLS_CALENDAR                   GREGORIAN                                
    NLS_DATE_FORMAT                DD-MON-RR                                
    NLS_DATE_LANGUAGE              AMERICAN                                 
    NLS_SORT                       BINARY                                   
    NLS_TIME_FORMAT                HH.MI.SSXFF AM                           
    NLS_TIMESTAMP_FORMAT           DD-MON-RR HH.MI.SSXFF AM                 
    NLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR                       
    NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH.MI.SSXFF AM TZR             
    NLS_DUAL_CURRENCY              $                                        
    NLS_COMP                       BINARY                                   
    NLS_LENGTH_SEMANTICS           BYTE                                     
    NLS_NCHAR_CONV_EXCP            FALSE                                    
    NLS_NCHAR_CHARACTERSET         AL16UTF16                                
    NLS_RDBMS_VERSION              11.2.0.1.0   
    Kind regards
    Hari

    added other details by: Hari_639 on April 24, 2013 18:45

    I'm not really experienced with utl_http, but maybe you'll read on SET_BODY_CHARSET in the documentation.
    ISO-8859-1 is the default characterset, until you specify the characters in the attribute content_type and text media.
    But your media type is not text, then perhaps affecting the body charset UTF - 8 can help.

    concerning

  • Facing problem when calling a JAX WS WSDL

    Hello

    I have a simple JAVA WS, deployed on a server and I want to call from ODI, the JAVA class takes some input as an input parameter and writes data in the DB.

    I did not use any explicit XSD for the design of the WS, WS has of its own inline schema.

    " definitions targetNamespace = ' http://ws.test.com/ "name ="TestWSService"' > < types > < xsd: Schema > < namespace XSD: import =" " http://ws.test.com/ "schemaLocation =" " http://localhost:7001 / Test-context-root/TestPort? xsd = 1 "/ > < / xsd: Schema > < / types > .


    When I use by clicking Connect to WSDL of OdiInvokeWebService the editor of advance tool, it gives an error as ODI-20362: unable to connect to the web Service, in the detailed description, it is showing as

    "This URL points to a valid WSDL"

    I don't get why I get this error, any help is much appreciated.

    Thank you.

    This problem is solved.

    I just changed the IP address of the WSDL for the host name where the server is installed.

    If it does not work with the IP address, change your host name and click Connect to the WSDL button in the Advanced section in the tool OdiInvokeWebService.

    Thank you all for sharing of relevant documents.

  • OfficeJet 8610: OfficeJet 8610 when you copy in duplex, one side to the other side

    When I try to copy multi-page documents, goes to 1 side 2 sides, one side is upside down. This works when the pages are in portrait setup but not when they are in the configuration of the landscape.

    It's COPY, not print, so I can't follow the advice to replace the flip setting. There seems not to be a setting on the printer itself to change that.

    I did a chat session with HP, but the problem was not resolved. I got a call a supervisor (level 2, no doubt), but I have not worked with them again.

    The printer is connected wireless. I run the installation wizard and the Finder solution and the update as well as the doctor of printing and scanning without result.

    Any ideas?

    Hi @Tiggy626A,

    I see you are having problems copying 2 sides in landscape mode. I will definitely do my best to help you.

    From the front panel of the printer, you can bind only on the long side, there is no option to change the copy to the short edge. I tried to copy 2 faces on our Officejet 8610 laboratory, one side released head downstairs. By experimenting, I found a solution, by loading the two documents to copy in the ADF file, load the other down. This will allow the copy two facing the landscape properly the printer. I know that's not very practical, but it worked out this way.

    This feature is available if you choose to scan documents and then print as a 2-sided document with a link on the edge short.

    Here is a document for the HP Officejet Pro printers 8610 - copying Documents.

    If you appreciate my efforts, please click on the "Thumbs up" button below. Thank you.

  • bodice, when I go on my device I have my computer or one side there is a yellow triangle with an exclamation point... What do I do? Thank you

    bodice, when I go on my device I have my computer or one side there is a yellow triangle with an exclamation point... What do I do? Thank you

    Hello

    Please select your language from the drop-down menu above to post your question in the language of your choice. The forum in which you've posted is for English only. If you can't find your language above, support for additional international sites options are by following the link below:

    http://support.Microsoft.com/common/international.aspx

  • How eSign works when writing a proposal, you need both parties to sign, but one side has no eSign?

    How eSign works when writing a proposal, you need both parties to sign, but one side has no eSign?

    We are a paperless company and would love to have the company, we work with sign of their parts of the contracts without having to print it.

    Also, if one is an electronic signature, and the other is not, would that cancels it?

    Hello Jordans13910368,

    As a signatory, you need not to have an E-Sign account with cloud of Document. The signer would receive an email to open the link to the document in the browser, and once the document is signed, a final signed copy is sent to the signatory as the sender time.

    Also, can you let me know how would the other signature? Would download you physically signed copy?

    -Usman

  • I hear just one side of my headphones HELP!

    I have this problem a long time ago and I have not found the solution for this help please so I have an iMac (21.5 inch, mid 2010) with el caitan 10.11.4 and when I put any helmet or seaker on the audio I hear just one side of the headphones I an Audiotechnica ATH m50X that also happens to earpods and ms16 intervene so plz help me to solve this problem.

    I checked and it is not a balance.

    It seems that the headphone jack is damaged if the internal speaker still works.

  • Only one side of Canon MR-14EX II fires

    Hello guys! I'm sure there's a simple solution to my problem, but I can't understand me. I bought the Canon MR - 14EX Macro ring flash II and when I try to take pictures, only one side of the lightning. What I am doing wrong? Thank you!

    I have 1 worm and had an even older model, so I suspect setting are similar. Check your manual for the section "Setting the Flash Ratio". You can disable share and else if you want, which may explain your problem. .

  • My HP Deskjet 3520 changes margins when printing both sides of paper

    When I set the margins and font size and print one page with no impression both set of sides (I use Windows 7), then the page will print as shown. If I use multiplex manual print correctly on both sides of the paper. However if I am printing two pages by clicking on properties and choose print on both sides, flip on the long side, then decreases the font size and increase margins.

    Is there a way to fix this?

    The problem with automatic two-sided printing causing your text to change is due to the printer by increasing its margins for the duplexer inside the printer to retrieve the page and flip it around.  It is a function of the printer and cannot be changed.  The only workaround is to return the page to the hand or adjust the margins on the front to match the rear.

    -Text or Image to be printed is Cut Off on one side- this document is the closest thing I could find that answers your question directly.  Sorry, I couldn't be more helpful, but there is really nothing that can be done.  I would like to know if I can be of any assistance, however, as I am happy to help you.

  • IPSEC only from one side (side with rays)

    Hello

    I have a star with IPSEC configuration.

    If the interesting traffic comes to speak it, the IPSEC Security Association starts and works perfectly. However, once the link is inactive on and there is no traffic, the hub shows this with the command sh its crypto isa

    196.47.133.38 185.20.242.61 QM_IDLE 1017 ACTIVE

    SH cryp peer ips of his 196.47.133.38 shows nothing at all.

    I checked my itinerary and NAT refuse to ensure that is not the issue.

    I then checked the crypto ACL when I send the traffic, I see the crypto ACL are increment correctly, but still the SA will not turn on. If I look at ipsec debugging I see nothing.

    I use a dynamic with each end map spoke in its own ACL, as follows:

    Crypto-map dynamic dynmap 5

    defined by peer 111.116.206.92

    the transform-set des-transform value

    match address 171

    Crypto-map dynamic dynmap 10

    defined by peer 111.47.132.38

    the transform-set des-transform value

    match address 172

    Crypto-map dynamic dynmap 15

    defined by peer 111.174.150.47

    the transform-set des-transform value

    match address 173

    Crypto-map dynamic dynmap 20

    defined by peer 111.166.108.250

    the transform-set des-transform value

    match address 174

    Crypto-map dynamic dynmap 100

    the transform-set des-transform value

    match address 170

    c2800nm-adventerprisek9_ivs_li - mz.151 - 4.m6.bin on a 2811

    Any ideas?

    Thank you
    Alan

    HI Alan,

    1. Please remember that when you dynamic user cryptomaps they are most of the time used for the customer site or say remotely, access VPN but can also be used as a site to site vpn when you Wan to restrict this part can initiate the tunnel and another part with dynamic map can never inititte a tunnel , and in this condition your gateways never knows the IP address of the other side clientand so never begin a connection for users of the House or on the Internet in order to build a tunnel. Only home user have to inititite a connection for establishing a tunnel if necessary because he IP could be dynamic and HUB you never know hihc IP they will come as IP might change based on the location or the ISP you connect from.

    2. Once you give a dynamic cryptomap on you ASA, you mean you don't know other IP side together like said above, and only when the other side of the peers in this business case will initiate a tunnel and thus no established peer IP no sense in dyanamic crypto card.

    3. Once you set a dynamic crypto maps, you still havve to associate it with the crypto statsic map as you cannot associate a dynamic encryption directly map to our part = interface device.

    example of

    step 1

    set the network card crypto as follows:

    crypto dynamic-map mymap 1 set transform-set myset crypto dynamic-map mymap 1 set reverse-route
    (in line 2 you are instructing your ASA or HUB device that
    other client after establishing a client to site tunnel with this machine can insert
    a static route dynamically on the rop of the routing table so that the trafic for client can use static route instead of using defaut route and could save tie else it has to traverse through all the router to reach deault route very time communication happens between
    the new IP of the cleint machine from HOme iNternet to office firewall /ASAthe so that )

    step 2

    Now call this above dynamic map named mymap into a static crypto map(named dyn-map) as follows
    crypto map dyn-map 10 IPSec-isakmp dynamic mymap

    step 3

    Assign this static crypto map to an interface so as to actually apply dynamic crpto map as told befor eit cant be applied directly:

    crypto map dyn-map interface outside

    Please share the configuration of HUB and spoke ina  separate separate fille and state who is HU and who are spoke 1 spoke 2 spoke 3 and so on.

    Hope I could offer you more clear help after that.

    best regards

    sachin garg
    [email protected]/* */

  • My office programs, that all happened on one side in a rectangular shape and cannot be moved.

    Hello, I have a problem that I can't fix.

    My office programs, everything is spent on one side in a rectangular shape (1377 x 768 resolution is). When I try to drag in regular places, they teleport right back to the box. Any help?

    You certainly have enabled automatic reorganization.  Right-click on an empty area of your desktop and point of view, then uncheck the auto arrange option.

    Good luck.

  • Exit only on one side

    My ipod classic only gives me an audio output on one side. I tried several headphones, it's the ipod that does not reach me. Can any ideas on how I fix?

    Probably a problem of material with plug headphones.  However, you can try to do a Reset (reboot) of iPod

    Learn how to reset your iPod - Apple Support

    If this does not help, you can try to do a restore, in case the problem is related to the software.  This erases the iPod and assigns the default condition "factory".  The restore button is on the recapitulation of the iPod settings screen in iTunes.  If a restoration is not enough, it is likely to be a hardware problem.

    If it's a defective headphone plug, you can get audio out to the dock, with an accessory connector.  For example

    https://www.Amazon.com/GP/product/B004V9G58M

  • some characters on the keyboard doesn't work don't not after macos sierra installation keys on one side does not not after installing sierra on my mac pro book

    keys on one side does not not after installing sierra on my mac pro book

    Hello dssheorey,

    Thank you for using communities Support from Apple. I have a problem with your keyboard after updating is not what you expect. The good news are the following steps will help to solve your problem and get your keyboard working properly again. First, start by resetting the management system (SCM) controller on your Mac:

    Reset the management system (SCM) controller on your Mac.

    If you still having the problem after resetting the SMC, use safe mode to start up your Mac so that it performs certain checks, remove files from the system cache, check your startup disk and trying to fix problems if necessary directory. Sign in to your account in safe mode and test the issue again. Then restart normally and test again to see if this problem is solved.

    Try safe mode if your Mac does not end commissioning
    Graphics performance limited in recovery of OS X or in safe mode

    See you soon!

  • Office jet pro 8600: copy on one side

    Hi my printer decided to not copy one side only it prints one side then paper goes back to halfway and screen message appears back page!  Pleaseeeeeeeeeeeeeeee can someone help I'm not good with computers please do it's simple, if you can! Thank you

    Hi MadHatter7,

    Thanks for letting me the question lies in the printer menu.

    I would like to do a hard reset to see if that will solve the problem.
    Let the printer and disconnect the printer cable and the wall socket for 60 seconds.
    Reconnect the power cable to the output of the printer and the wall, and not a surge protector.
    This ensures that the printer is full on and can help this situation.

    Updated the firmware of the printer if you still cannot change the option in the menu front and back.

    HP Officejet Pro 8600 N911a Firmware.

    I'll send you another step to try in a private message.
    In the forum next to your handle name simply click on the envelope to see.

    Good day!
    Thank you.

Maybe you are looking for