Better to call HTTPService send() in creationComplete or initialize event handler???

I'm wondering if, in general, it is better to call the send()
method for HTTPService in the creationComplete event handler, or if
there is any advantage to calling send() in the initialize event
handler.

"Greg Lafrance" <[email protected]> wrote in
message
news:gm80e7$n6c$[email protected]..
> I'm wondering if, in general, it is better to call the
send() method for
> HTTPService in the creationComplete event handler, or if
there is any
> advantage
> to calling send() in the initialize event handler.
I think that depends on how much stuff your program has to
build, and
whether you're doing anything in the result handler that
might depend on
having things ready (and if your HTTPService is set up in
MXML, it's
probably not ready for you to be able to send anyway).

Similar Messages

  • Can any bady send the WDJ application on event handler & plug  parameters?

    Hi,
    Experts,
    I have no idea no WDJ Event handler and plug parameters usage if any bady can send me few WDJ application or scenarios which is based on event handler parameters and plug parameters and method parameters. 
    Thans in advance,
    Shaber Ahmed.

    Hi
    Use this pdf(Example) for event handler
    http://www.sappro.com/downloads/WebDynproJava.pdf
    for plug parameters usage
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/91b6ad90-0201-0010-efa3-9626d2685b6e?overridelayout=true
    Thanks

  • My iPhone 4s has been very tempremental with making calls and sending SMS. It seems to work better if my 3G is on all the time. Anyone else experiencing this?

    My iPhone 4s is very tempremental. One day it's fine, the next I find it hasn't recieved calls or texts that have been sent to me and it won't make calls or send texts either! I've found that if 3G is turned on it seems to help but do I really need to have 3G on all the time?

    How are you turning off 3G? If you are putting it in Airplane mode this is why you haven't received any calls or texts, they both run on voice data which you turned off.

  • Calling HTTPService from Flex

    Hi,
    I know how to call a HTTPService in actionscript as follow.  I was wondering how to call HTTPService in Flex (not from actionscript).
        post_submit_tn_service.send();
        <mx:HTTPService id="myservice"
        </mx:HTTPService>

    Hi,
    Here is my problem.
    Let's assume I have two mxml files.
    The mxml file2 contains HTTPService which is called in a ViewStack from file1.
    When ViewStack is set to file2 for the second time (to update datagride), createComplete in file2 is not being called. So, no HTTPService is called when ViewStack is set to file2 for the second time.
        <!-- file1 -->
        <mx:ViewStack id="vsMyStack" x="0" y="0" width="100%" height="100%" >
              <mx:Canvas id="file1" label="Login" width="100%" height="100%">
             </mx:Canvas>
            <mx:TabNavigator id="viewstack1" width="100%" height="100%">
                <views:file2 width="100%" height="100%"/>
                <views:file3 width="100%" height="100%"/>
              </mx:TabNavigator>
        </mx:ViewStack>
    <!-- file2 ->
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init();">
        private function init():void
            post_service.send();
        <mx:HTTPService id="post_service"
            url="http://localhost/prod-ar/webservices/get_day_of_year.php"
            method="POST"
        </mx:HTTPService>
    </mx:VBox>

  • Just unlocked Blackberry Curve 8520 with online code, now cannot make calls or send sms! PLEASE HELP!

    Hi,
    I unlocked my phone about an hour ago using a legitimate unlock code from unlocks.co.uk. I entered the code and it seemed to work fine and now my network shows up as Vodafone uk (I have unlocked it from T-Mobile)
    It looks as though it is unlocked and I have checked the connections - I have signal and it says I am connected to the vodafone network, however, I cannot make any calls or send texts! If I try to call a number I get the call failed signed and the failed call dial tone. I tried to send a text but it didn't work - the text now has a red X and says 'unidentified subscriber'. I know this is a fault with my phone as the people I have tried to text and call have no problems with their phones/networks.
    Please somebody help me! I have no idea what to do! I contacted the unlocking company and they say if I'm sure the sim I'm inserting is active (which I am) then it is likely my phone has been blacklisted, but I dont think it has. I bought it as a pay as you go handset from Argos just a week ago and it's been working fine until then. 
    I put my old t-mobile sim back in and it seems to work - does this mean it hasn't been unlocked successfully or not? 
    Many thanks

    Do a simple reboot on the BlackBerry in this manner: With the BlackBerry device POWERED ON, remove the battery for a minute, and then reinsert the battery to reboot. A reboot in this manner is prescribed for most glitches and operating system errors, and you will lose no data on the device doing this.
    Then try your Vodafone SIM again.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Httpservice.send() resulting in two http requests

    hi,
    I am using HTTPService() to send some xml data inside an HTTP
    POST request. But very often, i do
    see this resulting in two local ports being opened and the
    http request being sent out twice, once from each port.
    is this possible in some race condition?
    thanks,
    Sunil

    some snippets of my code:
    //build the http request
    var request:HTTPService = new HTTPService();
    request.method = "post";
    request.headers = headers[request.method];
    request.url = httpServer;
    request.resultFormat = HTTPService.RESULT_FORMAT_TEXT;
    request.contentType = "text/xml";
    request.addEventListener(InvokeEvent.INVOKE , httpInvoke,
    false);
    i do see the invoke callback only being called once. That
    makes me guess that from the application code, httpservice.send()
    is called only once.
    any help will be great.

  • HTTPService.send doesnt send anny data

    Hi all,
    I have a serious problem when my application is online, i cant send anny data with HTTPService.send command. but when locally it does.
    When i click the button tho send the data it doesnt even try to connect here is my code and i cant find the problem. I hope some one can point me in the right direction
    here's my code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"
        minWidth="700" minHeight="715" width="700" height="715"
        xmlns:upload="services.upload.*"
        creationComplete="initVars()"
        >
    protected function btn_publish_clickHandler(event:MouseEvent):void
                   var idioot:int = 1;
                    var text_veld:String = new String();
                    text_veld = tekst_stuk.text
                                                obj.user = idioot;
                                                obj.titel = titel.text;
                                                obj.keywords = zoek_data.text;
                                                obj.text = tekst_stuk.text;                                           
                                                if(voor_geld.text != null)
                                                    obj.price_off = voor_geld.text + "." + voor_geld_cent.text;
                                                else if(korting_input.text != null)
                                                    obj.price_off = korting_input.text;
                                                if(korting_radio.selected == true)
                                                    obj.price = geld.text + "." + geld_cent.text;
                                                    obj.price_type = "p";
                                                else if(gratis_radio.selected == true)
                                                    obj.price = "0";
                                                    obj.price_type = "g";
                                                else if(van_voor_radio.selected == true)
                                                    obj.price = geld.text + "." + geld_cent.text;
                                                    obj.price_type = "m";
                                                obj.img_1 = img.source;
                                                obj.img_2 = img_2.source;
                                                obj.img_3 = img_3.source;
                                                obj.img_4 = img_4.source;
                private function send_data_event(e:Event):void
                    send_data.send(obj);
                    send_data.showBusyCursor;
        <fx:Declarations>
            <mx:HTTPService id="send_data" method="POST" url="http://someURL"  resultFormat="text" useProxy="false"/>
        </fx:Declarations>
    <mx:Image x="525" y="559" source="buttonpubliceren.png" width="150" height="30" id="btn_publish" click="btn_publish_clickHandler(event);" />

    The function executes when hij press the Image button:
    the new code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"
        minWidth="700" minHeight="715" width="700" height="715"
        xmlns:upload="services.upload.*"
        creationComplete="initVars()"
        >
    protected function btn_publish_clickHandler(event:MouseEvent):void
                   var idioot:int = 1;
                    var text_veld:String = new String();
                    text_veld = tekst_stuk.text
                                                obj.user = idioot;
                                                obj.titel = titel.text;
                                                obj.keywords = zoek_data.text;
                                                obj.text = tekst_stuk.text;                                           
                                                if(voor_geld.text != null)
                                                    obj.price_off = voor_geld.text + "." + voor_geld_cent.text;
                                                else if(korting_input.text != null)
                                                    obj.price_off = korting_input.text;
                                                if(korting_radio.selected == true)
                                                    obj.price = geld.text + "." + geld_cent.text;
                                                    obj.price_type = "p";
                                                else if(gratis_radio.selected == true)
                                                    obj.price = "0";
                                                    obj.price_type = "g";
                                                else if(van_voor_radio.selected == true)
                                                    obj.price = geld.text + "." + geld_cent.text;
                                                    obj.price_type = "m";
                                                obj.img_1 = img.source;
                                                obj.img_2 = img_2.source;
                                                obj.img_3 = img_3.source;
                                                obj.img_4 = img_4.source;
                                               send_data.send(obj);
                                               send_data.showBusyCursor
        <fx:Declarations>
            <mx:HTTPService id="send_data" method="POST" url="http://someURL" resultFormat="text" useProxy="false"/>
        </fx:Declarations>
    <mx:Image x="525" y="559" source="buttonpubliceren.png" width="150" height="30" id="btn_publish" click="btn_publish_clickHandler(event);" />

  • I can make calls and send text messages on my new iPhone 5, but incoming calls and texts still go to my old (non-Apple) phone. Is this a problem with the phone set up, or is it a problem with my old carrier or my new carrier?

    I can make calls and send texts on my new iPhone 5,  but all incoming calls and texts are received by my old (non-Apple) phone.

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • How do I restrict my daughters iPhone 4S to only receive/send calls or send text to specific people in her contacts.

    How can I restrict my iPhone 4S to only receive or send calls or send receive texts from specific contacts and not all contacts in the phone.

    Contact the carrier and see if they offer such a service.
    This is not a feature of the iPhone and no App could restrict calls/sms.

  • Message body is empty, when calling wf_notification.send ,

    hi,
    i am sending a messages to 5 peoples, using wf_notification.send api.
    but the when i check the emails, mesage body is empty.
    prior to calling wf_notification.send Api,
    my message body has been generated by the message attribute of type document(plsqlclob), iam using wf_engine.setItemAttribute and the argument avalue is like this
    avalue=> 'plsql:koc_overtime_web_pkg02.show_mgr_message_TST/'||itemtype || ':' || ItemKey) for setting this message attribute(this will generate html)
    Shall i need to use any callback function in my send api.
    regards.
    zameer.

    If you are using WF_ENGINE.SetItemAttrText API, I see that you have a workflow item that is launched. In such a case you could just have a notification activity within the same process that will send the notification and the e-mail appropriately.
    Why do you use WF_NOTIFICATION.Send using an attribute value that is set from a Workflow item.
    Typically WF_NOTIFICATION.Send function is used to send a notification outside of a workflow process. Typically you would use a workflow message definition and corresponding message attribute definition and use the following code to send the notification.
    declare
        l_nid   number;
        l_user  varchar2(320) := '&1';
        l_begin_date date;
    begin
        l_nid := wf_notification.send(l_user, 'CS_MSGS', 'FYI_MESSAGE');
        wf_notification.setattrtext(l_nid, 'SENDER', 'Oracle Workflow Testing Mailer');
        wf_notification.setattrtext(l_nid, 'MESSAGE_TEXT', ' Message sent at '||to_char(sysdate,'DD-MON-RRRR HH24:MI:SS')||' DB server time');
        wf_notification.denormalize_notification(l_nid);
        commit;
    end;
    /As you can observe, I do not depend on any workflow item for any attribute information. Please note that in case if there is a requirement to depend on a workflow item, it is required that you need to pass a Callback function and Context to WF_NOTIFICATION.Send function in order for the workflow item attribute information to be copied over to notification attributes.

  • How to use Stored Procedure Call in Sender JDBC adapter

    Hi All,
             Could someone send me a blog on how to use Stored Procedure call in Sender JDBC adapter?
    Xier

    Hi Xler
    refer these links
    /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    Also, you can check Sriram's blog for executing Stored Procedures,
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    /people/jegathees.waran/blog/2007/03/02/oracle-table-functions-and-jdbc-sender-adapter
    This blog might be helpfull on stored procedures for JDBC
    JDBC Stored Procedures
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    Please go through these threads and see if it helps...
    Re: How to execute Stored Procedure?
    Re: Problem with JDBC stored procedure
    Thnaks !!

  • I cannot use  my iPhone to make calls or send text messages after upgrading to ios 7

    I just upgraded to ios7 and I can no longer  make calls or send text messages.  The screens seem to be locking.   Does anyone know what I can do to fix it?

    My wife is having the exact same issue after updating to the new iOS 8.1.1 and we've tried all the same steps even restoring the phone as a new phone. We've contacted our service provider and they've told us to go to apple to potentially "remove" her serial number from their servers to allow it to work properly on the service we have. We are desperate as purchasing a new phone right now is not an option and she desperately needs her phone for work and life.
    Iphone 5 8.1.1

  • How to Call HTTP Sender Adapter of Other Scenar from HTTP Receiver Adapter?

    Hi,
    I have a requirement to call HTTP Sender Adapter of Other Scenario from HTTP Receiver Adapter?
    or
    call SOAP Sender Adapter of Other Scenario from SOAP Receiver Adapter?
    i.e
    SOME SENDER - > PI - > HTTP Receiver - > calling -> HTTP Sender -> PI -> SOME RECEIVER
    SOME SENDER - > PI - > SOAP Receiver - > calling -> SOAP Sender -> PI -> SOME RECEIVER
    if any one can provide me the screen shot for those SOAP / HTTP Sender or Receiver ADAPTER.
    or Point me to Some article with Screenshots .
    That would be appreciated with Point.
    Regards
    PS.

    Solved .  .

  • My S3 will not make/receive calls or send texts.

    Since a trip about 3 weeks my phone has had an issue with making/receiving calls and sending texts.  It is random, won't work at home or work one day but will the next however it is getting worse.  I do not have any issue with mobile data and I receive texts with no problem.  Also have an issue when the phone does make a call no one can hear me...I can hear them just fine.  My be a seperate issue however the microphone issue started the same time as the other issue.  Any suggestions?

        Rsmallfo, thanks for posting. Are you still having with your SIII? What software version are you running? Have you tried this: http://bit.ly/WJ6d0y and retested? Is there any physical or water damage to the phone? Please give more details. I would love to help.
    SammuelP_VZW
    VZW Support
    Follow us on Twitter @VZWSupport

  • I just upgraded my iPhone4s to iOS7 and now I am unable to make phone calls and send/receive text messages. Network signal indicator on the upper left side of the display shows hollow circles instead of full circles. Any idea how to fix the problem?

    I just upgraded my iPhone4s to iOS7 and now I am unable to make phone calls and send/receive text messaes. Network signal indicator on the upper left side of the display shows hollow circles instead of full circles (but with the network provider name). I checked with my colleagues in the office who use the same network and theirs work just fine on iOS7. Any idea how to fix the problem?

    I have also called my service provider and my service remains active in the network. I tried removing and reinserting my SIM but to no avail.

Maybe you are looking for

  • I can't use ePrint or scan with an HP OfficeJet Pro 8500A printer.

    Ever since we got the Time Capsule, I have not been able to use ePrint or scan a document.  I can print just fine.  I think the problem might be that the Time Capsule is blocking some ports.

  • MacBook Pro refusing to startup no matter what I do

    I have a MacBook Pro - as per specs below - and it has decided not to complete a startup. The way it happened was I restarted my computer to boot up into Windows then later on I used the Boot Camp system tray icon to restart into OS X, or at least th

  • Inserting image in database

    i want to insert a image in database(mysql) using servlet/jsp. please help me out

  • Can't import music into itunes from a cd

    I keep getting an error that the disc is full and i should delete files to make more room. It also recommends that I empty my trash. How can I expand the size of the file so I can import more music. thanks dan

  • I bought a WD Caviar Green today

    Now I have one WD10EADS 1TB HDD (linked by Firewire 400/800 dock, but my Mac is 400 only) and one Hitachi 159GB HDD(USB 2.0 direct link). I partition WD off into two partitions with GUID? I hope I didn't do anything wrong? 'cause there are 3 options,