Loading a same Webservice twice

I have an application that creates two objects fo WebService
class loading the same WSDL.
Let's say it takes about 5 seconds to load the first one then
doesn't the second should load faster since it is loaded?
but, it looks like the second object takes about 5 seconds
too.
Is there anyway I can make the second instance of Webservice
load faster?
Thanks,

I still don't understand what ClownBootz is asking you to do,
but I got the whole "multiple operations / result handlers from one
WebService component" thing to work. You do have to explicitly set
up what operations are allowed to the WebService, and then specify
what resultHandler you want for that operation. Like this:
<mx:WebService id="service" wsdl="someWSDLURL">
<operation name="function1"
result="function1ResultHandler(event)"/>
<operation name="function2"
result="function2ResultHandler(event)"/>
</mx:WebService>
then you could just access service.function1(variables,
variables); and handle its result differently than you would the
results from service.function2();
Maybe something like this will help you out. I don't know if
that is would solve your problem of having to load the same
WebService twice, but it did for me.

Similar Messages

  • Loading the same project twice

    I need to be able to load the same toplink project twice within the same jvm. It looks like the sessions.xml file would define a session named "mysession" and after having instanciated the server session twice the session manager would contain two different sessions : "mysession_1" and "mysession_2".
    I intend to load the project by doing :
    1. (Server) SessionManager.getManager().getSession(new XMLSessionConfigLoader(), sessionName, sessionClassLoader, false,true);
    2. rename the session manager hashtable key from mysession to mysession_1
    3. rename the session itself session.setName(...)
    4. redo 1.
    5. redo 2. and 3. for renaming from mysession to mysession_2
    What do you suggest?

    Or make two sessions in your session.xml file, one named mysession_1 and the other mysession_2.
    This would avoid messing around with the sessions once they have been loaded by the session manager and all you need to execute is:
    SessionManager.getManager().getSession(new XMLSessionConfigLoader(), "mysession_1", sessionClassLoader, false,true);
    SessionManager.getManager().getSession(new XMLSessionConfigLoader(), "mysession_2", sessionClassLoader, false,true);
    Cheers,
    Guy

  • How to down load the same app twice to home page

    How do I download the same app twice so I have both on my home screen.  I want to monitor cameras at 2 different locations and need to have 2 apps to load seperate info into each.  When I try to down load the app for the 2nd time the only option is to REPLACE the current app with the same one. Anyone have any ideas?

    Yeah, too bad the app won't let you switch between locations.  I don't think you can have 2 instances of the app running on the BB.  I'm not developer, but I've never seen that before.
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • How to down load the same app twice

    How do I download the same app twice so I have both on my home screen.  I want to monitor cameras at 2 different locations and need to have 2 apps to load seperate info into each.  When I try to down load the app for the 2nd time the only option is to REPLACE the current app with the same one. Anyone have any ideas?

    Yeah, too bad the app won't let you switch between locations.  I don't think you can have 2 instances of the app running on the BB.  I'm not developer, but I've never seen that before.
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • I accidently loaded the same playlist twice. How do I remove one copy from my phone?

    How do I remove one copy of a playlist from my phone?
    Walter

    Plug it into iTunes and tell iTunes what to sync to the device.

  • Use same table twice in subform

    Hi,
    i´ve created a form like this
    subformA   -> positioned
    --subformB -> flowed
    table
    header
    body row
    Everything is working fine and a I´m able to see the expected data.
    But when my table includes more than 10 rows it destroys the layout of my page.
    My idea:
    Create a second subform with same table data and place it right beside it. And using FormCalc to show data from row 11 to end.
    But only the first subform is filled. There is no data in second subform (FormCalc code is not implemented).
    It seems, that I can´t use same tabele twice.
    Any ideas?
    Regards
    Andy

    Hi Andy,
    Have both the subforms as flowed and page breaked, it should work.
    As per as having 2 tables techically i believe its not possible.reason behind.
    When you do data binding for 1st table and say multiple rows, at runtime data is iterated and displayed in the 1st table.
    when it reaches to the 2nd table the pointer on the table data source is already eof i.e., last record so it will not display it again.
    to acheive this on form load of the 2nd table you need to initialize and iterate through the data source again.
    I have never tested this scenario but read it in some adobe fourms.
    Check it and let me know, if its still not working i can design a sample form with this scenario for you.
    Cheers,
    Sai

  • Inappropriate renderings  while dynamically including the same Page twice

    Hi,
    I am including same page twice with only one backing bean. It works fine when I execute the first included page or the second included page alone. But after executing the first included page and then if I clicked second included page which comes in a modal panel I am getting inappropriate rendering of components. i reckon the form is not initialized properly though the pages are using same backing bean and JSF code. Kindly give me some valuable inputs on this regarding.
    Thanks in advance!!

    I am very Sorry BaluC!!!
    yes I am using h:messages and also reads appserver logs .My application is constant per session(per user). So I am using session scoped bean for all the pages. the page which I had mentioned here loaded twice
    1. loaded individually by clicking the link from the left navigation,
    2. Also loaded from an other page as a modal panel by clicking a button in that page.
    I have used only one jsp code and backing bean which is included using <jsp:include>.
    Here is an example code where the page is loaded from the left navigation
    Page1:
    <html>
    <body>
    <h:form>
    <jsp:include page="sample.jsp" flush="true" />
    </h:form>
    </body>
    </html>Here is an example code where the page is loaded from the modal panel of an other page
    In Page2:
    <html>
    <body>
    <h:form>
    // Codes of Page2
    *//Here I will set some values in the session and pass it to the included page(sample) on a button click and the included page is loaded in a modal panel.*
    </h:form>
    <rich:modalPanel>
    <jsp:include page="sample.jsp"  flush="true"/>
    </rich:modalPanel>
    </body>
    </html>This is the included page
    sample.jsp:
    <f:verbatim><html>
    <body> </f:verbatim>
    <f:subview id="samplePageId">
    <h:form binding="#{SampleBean.initFom}">
    // Codes of sample JSP
    </h:form>
    <f:verbatim>
    </body>
    </html>
    </f:verbatim>In the initform(HtmlForm)
    SampleBean.java
    private HtmlForm initForm;
    public HtmlForm getInitForm()
            assignPageAttributes(); // void method in the backing bean "SampleBean"
            return initForm;
    private void assignPageAttributes()
      //code to get the session values which comes from page2.jsp
    if(sessionValues != null)
        // Included page loaded in a modal panel from page2.jsp
    else
    // Included page loaded from the left navigation if the session values doesnt contains any session values
    }In this way I am binding to the form of SampleBean.java. if I used the session scope the h:form component of the included page is shared . If I used request scope means the action is not performed properly. there are the problems i am facing right now.

  • How do I use the same photo twice in a slideshow created in iPhoto'11?

    I created a slideshow in iPhoto'11 and would like to use the first slide also as the last slide.
    How can I use the same photo twice?

    Seems you have to duplicate the photo in your Library to add the same picture twice.

  • How can I retrieve the same figure twice in report?

    Hi guys,
    If we have the same selection twice in the same report, it only retrieves the figure once (see example below, were the same period has been chosen twice). Is there any setting I can adjust, so it will retrieve the figures for double-selected members also?
    Thanks,
    Dorthe

    Hi Dorthe,
    No issues in my system (BW 7.3, BPC SP12, EPM SP16 patch1):
    B.R. Vadim

  • HT204053 my wife and i have seperate itunes accounts is there a way we can link our accounts to share songs so we dont have to pay for the same song twice?

    When the first ipad came out i set it up and created an itunes account, since then she got an iphone and an ipad and everything was good. I had an android but wanted to try out the iphone. When i set it up ut jumpled all of our contacts, apps, and everythin. it was a mess.
         Since, i purchased and ipad 2 and an iphone and to keep our stuff from combing i used a different computer and created an new apple ID for myself so our info wouldnt combine, I was wondering if i did the right thing or if i should have went about it a different way. I was going to see if there was a way when she purchased a song i could get it. I dont want to pay for the same song twice and only want to share songs. If i cant do this can i copy her library and paste it into my itunes??
    Any help wouldl be greatly apprecieated we both have icloud set up but i cant figure out the best solution.

    Welcome to the world of digital media. Your can't really transfer it. I don't know what the rules are about transferring to your spouse but I do know that in some cases when you die, your heirs cannot inherit your digital media. This is why there is still an advantage to buying the CD since the usage rights belong to whomever holds the physical media.
    A possible workaround is to burn the songs to a music CD with yout account (tracks only without song titles) and then having your wife upload it as a regular music CD onto her account. It's been a while since i've done this so I'm not sure if it would work now.
    Please note that I'm not advocating copyright and/or TOS violations. I'm only suggesting ways to copy music for your own personal use which has traditonally been permitted. I only did this because I wanted to convert iTunes songs to mp3 files so I could burn them onto a data CD for use in my car. It would make sense that since married couples are a joint entity, this would be personal use.
    Also, I'm not a lawyer so don't take this as legal advice.

  • HT3819 If I have to load the same apple id on all devices to use home share, does that preclude each device from using a second apple id and does that constitute a separate Itunes db or something?

    If I have to load the same apple id on all devices to use home share, does that preclude each device from using a second apple id and does that constitute a separate Itunes db or something?

    Welcome to the Apple community.
    Only one of your libraries needs to use your iTunes Store Apple ID for home sharing. Your other computers can use their own ID for iTunes, so long as they use the same ID as all of the devices on the network for home sharing.

  • I keep getting calls from non existing area codes and phone numbers.  They are never the same number twice.  How do I stop this?

    About a week ago I started getting phone calls on my cell phone from numbers that do not exist, including the area codes.  I can not report these to the Do Not Call list because the area code is non existent.  I'm getting these calls all the time now and never from the same number twice so there's no point in blocking them.  If I answer I may or may not get a person who has an accent from India so heavy that I can't understand what they are saying.  This is getting to the point where I just want to cry I'm so frustrated.  Anyone else having this issue or does anyone know how to stop it?
    Thank you

    I'm sorry that you are having all these troubles. I have sent you a private message.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • Can I use the same SSI twice in same page?

    Hey all,
    i'm having a problem whereby several SSI's are not showing on my page.
    I'm wondering if it's because the instances that are not showing are the ones called the second time round.
    Before i start posting code etc, i just wondered if it was actually not possible to call the same SSi more than one time on a page.
    I can't seem to find documentation stating this anywhere.
    Thanks in advance,
    Katrina
    Edit 1: I tested using a new unique SSI (i.e. one that wasn't called anywhere else on teh page, and it doesn't show either... so I've started a new thread where i post my code here: http://forums.adobe.com/message/5345250#5345250
    Edit 2: I guess i didn't test properly initially. It seems it is NOT possible to use the same SSI twice on a page...   What a bummer!!!

    This issue was resolved in a different thread where s member supplied the following information...
    t's certainly possible depending on the PHP command which you use as the include directive.
    <?php require_once('includes/include-address.php'); ?> will only include the file once
    <?php require('includes/include-address.php'); ?>  will include the file more than once
    <?php include('includes/include-address.php'); ?>  will include the file more than once
    Each has its own rules and quirks.
    http://php.net/manual/en/function.require-once.php
    http://www.php.net/manual/en/function.include.php
    http://www.w3schools.com/php/php_includes.asp

  • How to restrict the entry of same material twice on the order

    HI,
    How to restrict the entry of same material twice on the order before saving the Order ?
    I do not want my users to enter the same material as two different line items in the order.
    Any inputs wud b appreciated

    Hi Vam,
    For this you need to take the help of an ABAPer . Ask him to modify the user exit and add the logic.
    For user exit please go through the below link it will help you to resolve your issue.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Regards,
    Krishna O
    Edited by: Krishna O on Jun 3, 2010 12:29 PM

  • End user receving same mail , twice in a day .

    Hi,
    Throu this report , i am sending mail to a user. I the scheuld this program as background job.
    But My problem is end user receving same mail twice a day.I am sure , Program is executed onces in day.
    Plz help me to solve the problem
    REPORT  zplm008_tdr_mail_alert        .
    *DATA DECLARATION.
    DATA: it_ztdr TYPE TABLE OF ztdr WITH HEADER LINE.
    DATA  wa_maktx TYPE makt-maktx..
    *SELECTION SCREEN
    PARAMETER: p_date TYPE sy-datum DEFAULT sy-datum MODIF ID dat .
    *START-OF-SELECTION
    START-OF-SELECTION.
      SELECT * FROM  ztdr INTO TABLE it_ztdr
             WHERE  rlddt  = p_date.
      IF it_ztdr[] IS NOT INITIAL.
        LOOP AT it_ztdr.
          PERFORM send_mail.
        ENDLOOP.
      ENDIF.
    *&      Form  SEND_MAIL
          text
    -->  p1        text
    <--  p2        text
    FORM send_mail .
      DATA: lt_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                       WITH HEADER LINE.
      DATA:   ls_message TYPE char255.
      DATA: lt_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            lt_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            lt_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            lt_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            gf_cnt TYPE i,
            gf_sent_all(1) TYPE c,
            gs_doc_data LIKE sodocchgi1,
            gf_error TYPE sy-subrc.
          Adds text to email text table
      lt_message = 'Hi,'.
      APPEND lt_message.CLEAR lt_message.APPEND lt_message.
      lt_message = 'Requested design is released. Pls raise the TPR (If required to be ordered).'.
      APPEND lt_message.CLEAR: lt_message.APPEND lt_message.
      lt_message = 'Details of the released design:'. APPEND lt_message.
      lt_message = '*******************************'.APPEND lt_message.CLEAR: lt_message.APPEND lt_message.
      MOVE : 'TDR No '  TO lt_message.
      lt_message+21(1) = ':'.
      lt_message+22(40) = it_ztdr-tdrid   .APPEND lt_message.
      MOVE  : 'PED Part no '  TO lt_message.
      lt_message+21(1) = ':'.
      lt_message+22(40) = it_ztdr-matnr.
      APPEND lt_message.
      CLEAR: wa_maktx.
      SELECT SINGLE maktx FROM makt INTO  wa_maktx WHERE matnr = it_ztdr-matnr.
      MOVE 'PED Part Description' TO lt_message.
      lt_message+21(1) = ':'.
      lt_message+22(40) = wa_maktx   .APPEND lt_message.
      MOVE : 'PED Part Rev no' TO lt_message .
      lt_message+21(1) = ':'.
      lt_message+22(40) = it_ztdr-matnr_rv .APPEND lt_message.
      MOVE: 'Rnd part No  ' TO lt_message .
      lt_message+21(1) = ':'.
      lt_message+22(40) = it_ztdr-ref_matnr . APPEND lt_message.
      MOVE : 'Rnd Part Rev '  TO lt_message .
      lt_message+21(1) = ':'.
      lt_message+22(40) = it_ztdr-ref_matnr_rv .APPEND lt_message.
      CLEAR: lt_message.
      APPEND lt_message.
      APPEND lt_message.
      lt_message = 'To View the Design:'.
      APPEND lt_message.
      lt_message = '*******************'.APPEND lt_message.
      CLEAR: lt_message.
      APPEND lt_message.
      lt_message ='For Standard gauge, use Transaction: ZPED_TOOLPRINT'.
      APPEND lt_message.
      lt_message ='For Non-Standard gauge, use Transaction:  ZCV04N or CV04N'.
      APPEND lt_message.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    Fill the document data.
      gs_doc_data-doc_size = 1.
      DATA subject TYPE string.
      CONCATENATE 'Design Released for'  it_ztdr-tdrid  'of'  it_ztdr-ref_matnr
            INTO subject SEPARATED BY space.
    Populate the subject/generic message attributes
      gs_doc_data-obj_langu = sy-langu.
      gs_doc_data-obj_name  = 'TDREQ'.
      gs_doc_data-obj_descr = subject .
      gs_doc_data-sensitivty = 'O'.
    Describe the body of the message
      CLEAR lt_packing_list.
      REFRESH lt_packing_list.
      lt_packing_list-transf_bin = space.
      lt_packing_list-head_start = 1.
      lt_packing_list-head_num = 0.
      lt_packing_list-body_start = 1.
      DESCRIBE TABLE lt_message LINES lt_packing_list-body_num.
      lt_packing_list-doc_type = 'RAW'.
      APPEND lt_packing_list.
      CLEAR lt_receivers.
      REFRESH lt_receivers.
    Add the recipients email address
    For SAP mail
    IF NOT GSCR_UNAME IS INITIAL.
      lt_receivers-receiver = it_ztdr-reqnm.
      lt_receivers-rec_type = 'U'.
      APPEND lt_receivers.
    ENDIF.
    For external mail
    IF NOT gs_outtab-reqnm IS INITIAL.
       lt_receivers-receiver = gs_outtab-reqnm.
       lt_receivers-rec_type = 'U'.
       APPEND lt_receivers.
    ENDIF.
    Call the FM to post the message to SAPMAIL
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = gs_doc_data
          put_in_outbox              = 'X'
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = gf_sent_all
        TABLES
          packing_list               = lt_packing_list
          contents_txt               = lt_message
          receivers                  = lt_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    Store function module return code
      gf_error = sy-subrc.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Get lt_receivers return code
      LOOP AT lt_receivers.
      ENDLOOP.
      PERFORM initiate_mail_execute_program.
        CLEAR:lt_message[] , lt_message , gs_doc_data ,gf_sent_all,lt_packing_list[]
        ,lt_packing_list ,lt_receivers[], lt_receivers.
    ENDFORM.                    " SEND_MAIL
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          text
    -->  p1        text
    <--  p2        text
    FORM initiate_mail_execute_program .
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
                    WITH output = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM

    Hi,
    In your code
    You are looping the perform in which you are calling below FM.
    LOOP AT it_ztdr.
       PERFORM send_mail.
    ENDLOOP.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = gs_doc_data
    put_in_outbox = 'X'
    commit_work = 'X'
    IMPORTING
    sent_to_all = gf_sent_all
    TABLES
    packing_list = lt_packing_list
    contents_txt = lt_message
    receivers = lt_receivers
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    So keep your FM after the loop.
    Pls. reward if useful...

Maybe you are looking for

  • Drivers for HP 15-r030na using Windows 7 64 bit

    Hi there I recently installed Windows 7 on a HP 15-r030na (usually Windows 8.1). I'm missing drivers for the wireless networking, USB and ethernet. I've tried a few drivers from similar machines but no luck. Where can I find drivers which will work o

  • Bapi parametrs to be passed in bapi_salesorder_change to change quantity

    Hi, how to change quantity of sales order by using bapi_salesorder_change. kindly Help us... to solve this Issue....(bapi parametrs to be passed in bapi_salesorder_change to change quantity) regards sathish Kumar.

  • Skype video

    I just downloaded Skype, but my video does not work.  What do i need to do to make it work?

  • How to open all the pages of a file PDF in Photoshop?

    Hi, How to open all the pages of a file PDF in Photoshop? Or I need to know the amount of Pages in PDF. Example: >Set MyPhotoshop = CreateObject("Photoshop.PDFOpenOptions") Set MyOpenPref = CreateObject("Photoshop.PDFOpenOptions") sFileName = "C:\Tem

  • Bridge 6 .. Jpegs disappear from Bridge

    In facet, a raw file edited and Save As appears in its proper folder but not in Bridge. This is unsatisfactory for my work flow. I want JPEG copy to also be viewabe/ editable furtherin Bridgde Any plans to fix this like it use to be? How?