Using a single HeaderHandler of JaxWS for multiple services

Hi,
In our application,we are using 3 different services.The authentication credentials are different for each one of them.So,we have created 3 different Headerhandlers for each one of them.
I wish to know if it is possible to have a single HeaderHandler for all 3 services.Please let me know if we can set the username/password in Headerhandler at runtime.
I am not able to pass the parameters in handleMessage(SOAPMessageContext smc).
Please suggest.

Hi Phillip,
both scenarios will work. One CSS can certainly manage more than 3 services! You can even use just one VIP for all traffic, then just create the proper rules to send specific traffic to the corresponding service(s). No need for 3 VIPs.
Regards
-juerg

Similar Messages

  • Using a single CSS to load balance multiple services

    Is it possible to use a single CSS to load balance 3 different services (server farm) ? That mean the CSS need to advertise 3 VIP
    I'm thinking of two scenarios:
    1 - configure the CSS to use 4 interfaces: 1 to public, 3 to private (each interface will plug-in to a different vlan/server farm)
    2 - configure the CSS to use 2 interfaces: 1 to public, 1 to private (all 3 server farms are in the same vlan)
    Will both scenarios work ?
    Thanks
    --Phillip.

    Hi Phillip,
    both scenarios will work. One CSS can certainly manage more than 3 services! You can even use just one VIP for all traffic, then just create the proper rules to send specific traffic to the corresponding service(s). No need for 3 VIPs.
    Regards
    -juerg

  • Using a single master data infoobject for multiple fields

    Hello experts. Today I ran un with the following problem: I am modelling an Infocube and will be receiving a flat file with several fields, of which 3 of them give information about sales representatives.
    For each transaction there are 1-3 sales representatives involved, and this is reflected in the file I am going to be loading. If only one representative is involved, it means that he was in charge of a complete negotiation, and his code will be found in all three fields, if two representatives are involved, it means that one was in charge of one part of the negotiation, while the other was in charge of the rest, and according to what they were in charge, their code will appear in one or two of the fields. If three representatives are involved, each one's code will appear on the field corresponding to the part of the negotiation they were in charge of handling.
    I already have the sales representative's codes as master data, but I was wondering how I can have those three fields map into the same InfoObject, if that is possible at all. Maybe in the transformation I map them to the same object? Also, what happens when you create the Data Source? As far as I know, each field in the Data Source must be unique, which makes it impossible to use my ZSALESREP InfoObject for the three fields, at least at Data Source level. What can I do in this case?

    Hi  Pedro Olvera,
    You need 3 infoobjects in datasouce to load 3 different fields.
    If you want load to a single infoobject, you can map accordingly in transformation, bult last field overwrites previous one.
    Its better to maintain 3 fields in cube. Create 2 more sales Reps(ZSALESREP1 & ZSALESREP2) with Reference to ZSALESREP then you no need to maintain master data for ZSALESREP1 & ZSALESREP2.
    Use these 3 fields for modeling.
    Hope it Helps
    Srini
    [Dont forget to close the call by assigning poings.... - Food for Points: Make a Difference through Community Contribution!|https://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/007928c5-c4ef-2a10-d9a3-8109ae621a82]

  • Single Trip number range for multiple personal areas

    Hi,
    Can any expert suggest me whether can we use single trip number range for multiple personal areas.
    Thanks
    Srinivas

    Dear Srinivas,
    This can be done. Please follow the below logic.
    Create a new implementation (enhancement) in BADI  =TRIP_WEB_NUMBER
    Method = USER_EXIT_NUMBER_INTERNAL
    with the below codes.
    DATA:        LV_ZZTRIPTYPE TYPE PTRV_HEAD-ZZTRIPTYPE,
                         LV_CCLAND TYPE BUKRS,
                         LV_LAND TYPE T001-LAND1.
    Fetch the company code from the data inputed.
          SELECT SINGLE LAND1
           FROM     T001
           INTO     LV_CCLAND
           WHERE    BUKRS = ORGANIZATIONAL_ASSIGNMENT-BUKRS.
    IMPORT TRIP_HEADER-ZZTRIPTYPE  TO  LV_ZZTRIPTYPE FROM MEMORY ID 'ABC'.
      CASE ORGANIZATIONAL_ASSIGNMENT-BUKRS+0(2).
             CONCATENATE ORGANIZATIONAL_ASSIGNMENT-BUKRS+0(2) '01' INTO NUMBER_SUBOBJECT .
      ENDCASE.
    NUMBER_RANGE = 'Pass the number range'.
    This is an example on how this will work. Please modify accordingly for your company.
    Edited by: Rajagopalan Kannan on Jun 6, 2011 3:08 PM
    Edited by: Rajagopalan Kannan on Jun 6, 2011 3:11 PM

  • How can I use two single-dimensional arrays-one for the titles and array

    I want to Use two single-dimensional arrays-one for the titles and one for the ID
    Could everyone help me how can i write the code for it?
    Flower
    public class Video
    public static void main(String[] args) throws Exception
    int[][] ID =
    { {145,147,148},
    {146,149, 150} };
    String[][] Titles=
    { {"Barney","True Grit","The night before Christmas"},
    {"Lalla", "Jacke Chan", "Metal"} };
    int x, y;
    int r, c;
    System.out.println("List before Sort");
    for(c =0; c< 3; ++c)
    for(r=0; r< 3; ++ r)
    System.out.println("ID:" + ID[c][r]+ "\tTitle: " + Titles[c][r]);
    System.out.println("\nAfter Sort:");
    for(c =0; c< 3; ++c)
    for(r=0; r< 3; ++ r)
    System.out.println("ID:" + ID[c][r]+ "\tTitle: " + Titles[c][r]);

    This is one of the most bizarre questions I have seen here:
    public class Video
    public static void main(String[] args) throws Exception
    int[] ID = {145,147,148, 146,149, 150};
    String[] Titles= {"Barney","True Grit","The night before Christmas", "Lalla", "Jacke Chan", "Metal"};
    System.out.println("List before Sort");
    for(int i = 0; i < Titles.length; i++)
       System.out.println("ID:" + ID[i]+ "\tTitle: " + Titles);
    System.out.println("\nAfter Sort:");
    for(int i = 0; c < Titles.length; i++)
    System.out.println("ID:" + ID[i]+ "\tTitle: " + Titles[i]);
    Generally you don't use prefix (++c) operators in you for loop. Use postfix (c++).
    Prefix means that it will increment the variable before the loop body is executed. Postfix will cause it to increment after.

  • How can you use the same e-mail address for multiple ipads?

    I have two iPads.. an iPad and an ipad 2.  I registared my new ipad 2 and now my old ipad is will not let me log on and is telling me that my e-mail address is already in use.  how can you use the same e-mail address for multiple ipads?

    And by using the same Apple ID you can also share purchases.  If you have a different Apple ID for each iPhone then you can't share purchases.

  • Percentage wise Confirmation for Multiple Service line items

    Hi,
    Percentage wise Confirmation for Multiple Service line items    
    During doing service entry sheet am able to do % wise confirmaion from
    Menu -> Entry Sheet -> Create -> With Planned Service -> Enter Percent.
    But this works only for single line item the first line.
    If we have multiple line items & if i give 10%, It calculates 10% for
    all items.
    We want Line wise % confirmation can be given as % confirmation will differ from
    line to line.
    Thanks
    Shashank

    Dear ,
    This percentage is a header data i.e applicable for all service items
    F1 help clearly says
    Percentage quantity to be adopted
    Use
        If you wish to adopt the planned services from the purchase order, you
        can enter an additional percentage in this field in order to have that
        percentage adopted instead of the total quantity shown in the purchase
        order.
    Example:
        Quantity specified.............Quantity to be adopted:.............Quantity specified "
        in purchase order:....................... 10 %..................................entry sheet:
        Service  1.......100 pc ................................................................10 pc
        Service  2.......200 m  ...............................................................    20 m
        Service  3. .....30 h   .................................................................   3 h
    Edited by: redriver on Jan 22, 2012 6:50 AM

  • Error Using the SQL Server 2000 Driver for JDBC Service Pack 3

    Hi,
    I�m using the SQL Server 2000 Driver for JDBC Service Pack 3. The connection is succesfully, but when I use de statement.executequery() method, there is the follow exception:
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'PEC_COUNTRY'.
    This is my code:
    ResultSet resultSet;
    Statement statement;
    Connection connection;
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://S0MALMUERTA:1433;user=sa;password=");
    statement = connection.createStatement();
    resultSet = statement.executeQuery("SELECT COY_INX, COY_NAME, COY_ICO FROM PEC_COUNTRY
    ");When I make the last instruction, occurs the above exception
    Thanks in advance
    Luija

    The way you are connecting, the default database used will be 'master' and i guess that the table PEC_COUNTRY was defined in another database.
    If it is the case you need to specify the database name.
    connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://S0MALMUERTA:1433;DatabaseName=yourdb;user=sa;password=");

  • Using several UMTS access points (APN) for different services

    Hello,
    I wonder if it is possible to use several UMTS access points (APN) for different services.
    situation:
    1) The iPhone is used for business AND private purposes.
    2) The company's mobile telephone contract includes a APN, which is only usable by the employees' mobile phones.
    problem / question:
    Is it possible to define two access points in the iPhone, that for example the exchange account uses the company's APN, while all the other apps use the standard APN of the carrier?
    Problem is, that some iPhone's benefits like Push-Messages are blocked by the carrier's APN. Now, I have to switch the access point by installing the appropriate profile every time I want to check my e-mails or vice versa for using "normal" apps.
    I hope you can hep me.
    Greets from Germany
    Mitch

    Thanks for your help! This really helps a lot! We actually only want to replace the autonmous access point with the controller solution and make one WLAN available at another site. From what I can see, this is possible with our current solution - we just need to switch from Layer 2 to Layer 3 and purchase the corresponding amount of supported Access Points (I think we should be able to get some refurbished ones).
    Am I correct in assuming that the Access Points we want to replace (AIR-AP1230B-E-K9 with 802.11b radio only) cannot be upgraded to lightweight ones? Since if I understood document http://www.cisco.com/en/US/docs/wireless/access_point/conversion/lwapp/upgrade/guide/lwapnote.html correctly, this is not possible with access points that only have 802.11b radios.
    Regarding the switch from Layer 2 to Layer 3: Do we really only need to perform the steps I described in my first post?
    And one last question regarding REAP. As far as I understood this is only needed when local traffic needs to be maintained in case the connection to the WLC becomes unavailable. So we really don't need it if we want to access resources that are only available over the WLC?
    Thanks again for your help!
    Michael

  • Using a single NetConnection instance to dispatch multiple calls to backend

    I have a scenario where calls to backend have to be dispatched in parallel because the calls are independent and dispatching them serially would cost performance.
    If I use a single instance of NetConnection to send multiple requests to backend -  one after the other without waiting for responses to previous requests to arrive - and there is a NetStatus event once the calls have been dispatched because, for example, the network connection went down, is it possible to find out which of the calls succeeded and which ones failed? Is it safe to assume that if the onResult function of a particular call's responder was not invoked, then that request did not reach the backend? If not, what is the recommended way to implement this? Should a separate instance of NetConnection be used for each call?  How expensive would it be? How are multiple NetConnection instances connected to the same endpoint handled under the hood?
    Thanks.

    Joe,
    I don´t know a specific reference for it, I remembered it because when I was looking the documentation on the site, I saw the reference "Support for multiple database connections" in the URL: APEX Listener New Features 2.0&lt;/title&gt;&lt;meta name=&quot;Title&quot; content=&quot;APEX Listener New Features 2.0…
    I´ve tried to use APEX listener some time ago, but in a earlier version together with glassfish. So, since for me was only one database, I created the necessary amount of DAD´s on my database, each one for a specific port.
    Check the link and you´ll see the same information I saw.
    Thanks.
    José Valdézio
    "Neo, everything that Oracle told me, became true, except extinguish bugs in a first release."

  • Help Setup KMS on single domain and active for multiple domain another

    Hi all,
    I have a problem about configure DNS for KMS host. My company use a single domain "abc.com". But I must mange more than 10 company different and they use another domain and dns running independently, they have a one lease line connect them together.
    My challenge is how to active all client on more than 10 company. Any ideas is very appreciate.
    Please help.
    Thanks,

    That's a good article suggested by Meinolf, but it's a little outdated.
    For an updated guide for this:
    https://technet.microsoft.com/en-us/library/ff793409.aspx
    Publishing to Multiple DNS Domains
    By default, the KMS host is registered only in the DNS domain to which the host belongs. If the network environment has only one DNS domain, no further action is required.
    If there is more than one DNS domain name, you can create a list of DNS domains for a KMS host to use when publishing its SRV RR. Setting this registry value suspends the KMS host’s default behavior of publishing only in the domain specified as the Primary
    DNS Suffix.
    Optionally, add priority and weight parameters to the
    DnsDomainPublishList registry value for KMS. This feature enables you to establish KMS host priority groupings and weighting within each group to define which KMS host to try first and balance traffic among multiple KMS hosts.
    Note   DNS changes might not be reflected until all DNS servers have been replicated. Changes made too frequently (time < replication time) can leave older records if the change is performed on a server that has not been
    replicated.
    To automatically publish KMS in multiple DNS domains, add each DNS domain suffix to whichever KMS should publish to the multi-string registry value
    DnsDomainPublishList in registry subkey HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform. After changing the value , restart the Software Licensing Service to create the SRV RRs.
    Note   This key has changed from the Windows Vista location of
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SL.
    After configuring a KMS host to publish to multiple domains, export the registry subkey, and then import it in to the registry on additional KMS hosts. To verify that this procedure was successful, check the Application event log on each KMS host. Event
    ID 12294 indicates that the KMS host successfully created the SRV RRs. Event ID 12293 indicates that the attempt to create the SRV RRs was unsuccessful. For a complete list of error codes, see the
    Volume Activation 2.0 Operations Guide at
    http://technet.microsoft.com/en-us/library/cc303695.aspx.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Single Student home directory for Multiple users

    Hi all,
    I'm currently working in an education environment and we have 4x labs of mac's. Currently, when students log in, their login info/permissions are pulled from AD and OD. When they login for the first time, it creates a local home directory with their username, so when they login subsequent times they still get all their saved movies, music and pictures. Nothing special.
    We are aiming to change over to a new system in which the students login with thier username/pass, but they all use the same local home directory called 'student' (which will actually be refreshing with the default-homedir-refresh script by Bombich). To compliment this, as they will not be able to use thier movies folder, we will have a seperate partition on the computer in which they save all thier work. Idealy, we would like the files that one user saves not to be accessable (deleted) by another student, but i'm not sure if this is possible even though they have logged in using different username/passwords, as they are all using the same directory. To add to this, the users will also have thier network space mounted on login (as its on a novell server, currently we mount it by specifying the address in WGM under preferences->login items, with Mount item with user's name and password checked).
    My questions are
    1) how do we get the students to use the single 'student' home directory?
    2) If we have a separate partition set up for them, will the files they create have the permissions assigned to the individual users or will they all be able to access each others file as they will use the single 'student' home directory.
    3) Will our method of mounting their Novell drive still work with the new system?

    I can't help asking: Why?
    Might help if we knew exactly what sort of issues you are trying to avoid, since you're moving away from what appears to be a perfectly functional setup

  • Using SUM BY or MAX BY for multiple levels

    I was wondering if anyone knows if you can use the SUM BY for multiple levels e.g.
    I am using the following at the moment: SUM("Fact.Value" BY Dimension.Level1), but I also want to sum the value by a different level, so adding a second 'BY' level.
    I can't seem to figure if its possible. Any help would be appreciated.

    Hi,
    If I understood you correctly, yes, you can use for example: SUM(saw_4 by saw_1, saw_2, saw_3)
    I hope this helps.

  • Commitment Items for Multiple services in Service PO

    Hi,
    We have created a service master for all the services used in a project. FM is activated. Every service has 1:1 relation with commitment items.
    Even after table look up & derivation, system was not picking up correct commitment item in service PO. We have used some exits & BADI's, Now system checks picks the correct commitment item stored in FMDERIVE against the service master.
    The issue is, the moment I have multiple service masters in a single service PO with two separate comm. Item.  System picks up the commitment item of only for line item 0010 & posts both the entries against one comm. item.
    Let me know how system can pick up individual commt items.
    Thanks & Regards,
    Ajay

    Hi Ajay,
    I believe that there is one standard solution for what you developed. Let me explain better.
    Please check your table FM01X. You can enable one these flags in table FM01X, depending on your business needs:
    FLG_PO_PROTECT if you want to always inherit the fm account assignment from the reference PO and therefore skip FMDERIVE
    FLG_FMDERIVE_FORCE if you always want to force a call to fmderive in all cases
    FLG_SES_OVERWRITE in services, if you wish to overwrite the account assignment from the SES with the derived values from FMDERIVE.
    You can find more information in note 1146677 and 923672. Please review the information of the notes and run the programs
    according your needs.
    FMDERIVE is skipped for GR/IR lines and the Commitment item is inherited from the PO regardless of whether or not the GR/IR line is FM relevant. This is SAP standard behavior.
    If you want to force the Commitment item to be derived from the GL account for the GR/IR line, you can use the FLG_FMDERIVE_FORCE flag as described in note 923672.  This will allow FMDERIVE to be called for these lines.  Please be sure to fully test this to ensure that FM account assignments that you do not want to be overwritten are
    not incorrectly derived.
    Bear in mind that for PO´s that does not have account assignment you should run FMCN/FMCT + FMN4N. For this you would need to check the flags and which one is more related to your needs. With the appropriate flag marked in FM01X (active with X) you should be able to run the transactions without any issue.
    Based on note 189761, after doing all the previous suggestions and the issue does not appear anymore, I suggest you to run the programs described in the note.
    I believe that this will help you.
    Best Regards,
    Vanessa.

  • BAPI_PO_CREATE1 for Multiple service line items

    Hi Exports,
    I am using BAPI_PO_CREATE1 to create service PO. I am facing problem when each line item(ebelp) has multiple service line items. I am unable to map multiple service line items to a single line item (ebelp) properly.
    Can anyone help.
    Regards,
    Kiran

    Hi ,
    I am able to create service PO when only one service line item is there.
    If multiple service line items are there. then i have to put the below code with in the loop.
    here i am facing the probelm.
            w_poservices-pckg_no    = g_pckg.
            w_poservices-line_no    = g_pckg.
            w_poservices-outl_ind   = c_x.
            w_poservices-subpckg_no = g_pckg + 1.
            w_poservices-service    = w_sdata-srvpos.
         w_poservices-short_text = w_idata-ktext1.
         w_poservices-quantity   = w_idata-menge.
         w_poservices-base_uom   = w_idata-meins.
         w_poservices-gr_price   = w_idata-tbtwr.
         w_poservices-matl_group = w_idata-matkl.
            APPEND w_poservices TO i_poservices.
            CLEAR: w_poservices.
            w_poservices-pckg_no    = g_pckg + 1.
            w_poservices-line_no    = g_pckg + 1.
            w_poservices-ext_line   = 0000000010.
            w_poservices-outl_ind   = c_x.
         w_poservices-subpckg_no = g_pckg + 2.
            w_poservices-service    = w_sdata-srvpos.
            w_poservices-short_text = w_sdata-ktext1.
            w_poservices-quantity   = w_sdata-menge.
            w_poservices-base_uom   = w_sdata-meins.
            w_poservices-gr_price   = w_sdata-tbtwr.
            w_poservices-matl_group = w_idata-matkl.
            APPEND w_poservices TO i_poservices.
            CLEAR: w_poservices.
            w_posrvaccessvalues-pckg_no    = g_pckg + 1.
            w_posrvaccessvalues-line_no    = g_pckg + 1.
            w_posrvaccessvalues-serno_line = 01.
            w_posrvaccessvalues-serial_no  = 01.
            w_posrvaccessvalues-quantity   = w_idata-menge.
            APPEND w_posrvaccessvalues TO i_posrvaccessvalues.
    thank you.
    Regards,
    Kiran

Maybe you are looking for