SRM , HR replication and default address

Hi,
HR data is not with address (e.g Organization ). I would like to 'default' an address when I replicate the Organizations.
How do I do it ?
Please help
With regards,
Pranav

Hi
Which SRM / HR system versions are you using ?
Please go through this ->
Default address for all organization unit
Hoe to fill "Main address" subtype automatically
Re: Delivery address created in ADRC table but not visible
HR OrgStructure replication to EBP, again
Please revert in the event of any query.
Regards
- Atul

Similar Messages

  • How to add custom field in delivery address/performance location tab in SRM shopping cart and Ship to address Pop-up in SRM PO?

    Hi Experts
    i have a reuirement where i have to add custom field in delivery address/performance location tab in SRM shopping cart and Ship to address Pop-up in SRM PO
    i am doing below steps for this.
    1. Adding custom field ZZfield in structure INCL_EEW_PD_PARTNER_CSF by  using  append structure.
    2. Spro ->Supplier Relationship Management -> SRM Server -> Cross application basic settings -> Extensions and field controls (personalization) -> Configure field control ->Configure Control for Fields of Substructures
    then click on  "Metadata for Fields of Substructures and Table-Like Enhancements"  
    add the below entry
    Bus. Object Set Type  : I am trying 7 and 29
    Structure Field Name  : ZZfield
    Bus. Object Type       : BUS2121/BUS2201
    Set Level                    : Item
    Field Visible :  Check box should be checked
    Field Enable :  check box should be checked
    Can anyone has the idea of this?
    Thanks
    Rohit

    Hello Rohit,
    Please create a enchancement for component  /SAPSRM/WDC_UI_DO_SHIPTO.
    Add new input field and label in view V_DODC_SHIPTO.
    Bind the input field value with field ZZfield from structure  /SAPSRM/WDC_UI_DO_SHIPTO in the context node SHIP_TO .
    Regards,
    Neelima

  • ABP applied in OWA not in Outlook. Users see Default GAL and all address lists, regardless of address book policies.

    During a company merger a standard exchange org was converted to a multi-tenant setup. Problem: Address Book Policies not applied in Outlook, users see all address lists and default GAL. However, in OWA its all as expected, users see only what is allowed
    by the ABP.
    We followed the steps outlined in the MUlti-Tenancy and Hosting Guidance for Exchange Server 2010 SP2
    http://www.microsoft.com/en-us/download/details.aspx?id=28192
    It's EXCH 2010 SP3.
    Any idea would be appreciated.

    Hi,
    Please check whether the Default GAL changed in Outlook Online mode. The issue maybe occur when an Offline Address Book which is used for Outlook cached mode is not updated.
    Please run the following command:
    Get-OfflineAddressBook | Update-OfflineAddressBook
    In Outlook client, we can do the following steps in Outlook to download Offline Address Book to check whether the issue persists:
    1. Delete the *.oab files in the following folders in local machine:
         \Users\<username>\AppData\Local\Microsoft\Outlook\Offline Address Books
    2. Create a new Outlook profile that uses Cached Exchange Mode.
    3. Start Outlook 2010 with this new profile.
    4. In the ribbon click Send / Receive, click
    Send/Receive Groups and then click Download Address Book.
    Then check whether the Address Book is updated or not.
    Regards,
    Winnie Liang
    TechNet Community Support

  • Migrate WSUS server from 2003x86 to 2008x64, new hardware, use same name and IP address?

    Searching through the WSUS forums and reading the TechNET migration documentation, I have bits and pieces of information to make this a smooth transition...I think. I have a plan in mind but
    would like the communities input on what I am thinking before moving forward and having it blowup in my face :). <o:p></o:p>
    I have the following currently:<o:p></o:p>
    A single WSUS 3.0 SP2 server, running on Server Win2003x86, using the default WID (susdb.mdf) on the same server. I have SQL 2005 Express installed on this server as well for other services
    but this has no bearing on the WID correct?<o:p></o:p>
    What I would like to do:<o:p></o:p>
    I have a new server (a much better one) that I would like to move WSUS on to, that will be running Server Win2008x64 (I have to setup first). <o:p></o:p>
    Steps that I would like to follow:<o:p></o:p>
    1. I will go through and setup this new server with all M$ updates etc... under a new name (ex. wsusnew) and DHCP acquired IP address and then power it down. <o:p></o:p>
    2. Get on my current WSUS server and backup all current WSUS settings, groups, DB etc... to a network location for temporary storage. Then power it down.<o:p></o:p>
    3. Delete the current WSUS server computer object in AD, DNS entry I will leave because my intension is to give the same IP address to the new WSUS server.<o:p></o:p>
    4. Start the new server, static assign the IP address from the old WSUS server to this new server and then change the name of (wsusnew) to the old servers name, which should be ok sense I deleted
    the AD object in step 3.<o:p></o:p>
    5. After the obvious restart, the new server will have the same name and IP address as the old server. <o:p></o:p>
    6. Now that the new server is up (with same settings name/IP as old server), I will then go through and install the WSUS role on the server and restore my WSUS information.<o:p></o:p>
    Questions:<o:p></o:p>
    1. Step 2 above, is it possible to do this, without making replica servers? I kept reading about this as I was researching doing this, I would rather just copy the DB and folders and simply
    put them in-place on the new server.<o:p></o:p>
    2. Step 6 above, restoring of the data, what is the proper way to do this in the scenarioI described? <o:p></o:p>
    Thank you to anyone who can provide me some information.
    Jeff

    Thank you for the reply, I will follow and let you know. Proabably be next week sometime before I'm able to try though. So look for a reponse then. Thank you again.
    Jeff
    OR...
    You can use the much more simple, much more reliable, and much more proven method of:
    Install new server as a replica of the old.
    Replicate.
    Configure new server as upstream server.
    Point clients to new server.
    Turn off old server after all clients have redirected to the new server.
    For everybody that has tried the backup/restore the database procedure described above, they have encounted complications of one form or another.
    WSUS has a built-in and fully supported comprehensive replication capbility. use it! :-)
    Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
    Microsoft MVP - Software Distribution (2005-2012)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin

  • Exchange 2010 - Offline Address Book and Global Address List Issue!

    I don't think I'm going crazy but cant find out why this is happening?
    When I search the Address book in cached mode (OAB) in outlook for "Jackie W"
    I get a number of users which include "Jackie W***"
    but some are "Jackie K***" or "Jackie B***"
    but their Office is set to "Westminster"
    But this is the strange part when I search on the address book with Cached mode disabled (GAL) I only get users with Surnames begging with
    "W" so only "Jackie W***" show up and if I just type in "Westminster" I get users form that location! but not a mix like on the OAB! Also when using the OAB if I type
    "Jackie West" it brings up the Jackie from Westminster but this dose not happen when using the GAL because there is no
    "Jackie West" in the Address book?
    To my knowledge the OAB is just a Copy of the GAL that updates every 24 hours, and should be the same (give or take a few starters and leavers in the last 24 hours) and should pull up the same information when searching is this correct or am I going crazy!
    :D
    Technical Beta Tester || Matthew John Earley BSc (hons) || www.o0MattE0o.myby.co.uk

    Hi MattE,
    Does it happen for each Outlook profile you have, from every user account which is on Cached Mode.
    A.If not then I believe OAB copy is either corrupted or Out of date.
    Checking it on OWA would confirm the actual GAL data.(Similar to Online Exchange)
    Client side update runs by default at Startup and every 24hrs , if skipped it will wait for next day or manual update.
    1.In Outlook 2010, select the File tab in the upper left corner, then Download Address Book from the Account Settings drop down menu.
    Outlook 2007 users should select Tools from Outlooks uppermost menu, then Send/Receive and Download Address Book from the Tools drop down menus.
    2.The Offline Address Book window will appear. Make sure the following options are selected:
    ##De-check the Download changes since last Send/Receive option
    ##Make sure Full Details is selected
    ##Make sure the \Global Address List is selected from the Choose address book drop down menu
    Q: How frequently is the offline address book updated on the Outlook client?
    A: If left constantly running, Outlook in cached mode automatically updates the offline address book on the client every 24 hours. The 24-hour time period is measured from the time that the offline address book was last downloaded successfully. For example, if you complete an offline address book download at 09:00 today, Outlook will start the offline address book download the next day at approximately 09:00. Therefore, different people will receive updates at different, random times.
    Note The default setting on the Exchange computer is to generate an offline address book differential file every morning at 04:00. For a change that is made in Active Directory to reach the client computer, the following events must occur:•The change must be picked up by the Exchange computer that generates the offline address book files. This can take several hours. At worst, it can take 24 hours. This variable will be referred to as "x."
    •The Outlook clients must download the offline address book updates every 24 hours. This update can take several hours. At worst, it can take 24 hours. This variable will be referred to as "y."
    The update reaches the client machines x+y hours later. It would be rare for a client to ever experience a 48-hour delay or more unless there were some Active Directory or public folder replication issues.
    B.If yes, then there is a issue with OAB generation, that needs further troubleshooting depending on the distribution structure used Public Folder based or EWS.
    • Try following:
    EMC > Organization configuration > Mailbox > Offline address book.
    Then right click on "Default offline addressbook" and select properies.
    Click on "Distribution" tab, and untick "Enable public folder distribution". Click "Apply" and "OK"
    Update the Address Book. Let replication finish.
    Now go back to same location and tick "Enable public folder distribution" back again. Click "Apply" and "OK".
    Here is a old times article I like:
    Offline Address List Generation Overview
    http://blogs.msdn.com/b/dgoldman/archive/2005/03/31/overview-of-the-oabgen-process.aspx
    One More Old but relevant:
    Administering the offline address book in Outlook
    http://support.microsoft.com/kb/841273
    Regards,
    Satyajit
    Please “Vote As Helpful”
    if you find my contribution useful or “Mark As Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

  • SRM 7.0 Ship-To Address

    All,
    I am trying to determine how I can build and maintain a list of delivery addresses in SRM 7.0. I realize tht all company codes have an address which can be used as a deliver to address, but in 5.0, you could use the transaction "Maintain Address for Own Company" where you could add as many addresses for a company code you wanted. You could then set this address as a "Ship-to" address or something else if desired. The user could have this maintained in PPOMA_BBP in the GUI, OR they could perform a search when creating a shopping cart.
    I can find delivery addresses I create (or have been created based on th ecompany creation) in the table ADRC in the SRM 7.0 GUI, however, I can not select any of these addresses when in the shopping cart as ship-to/delivery addresses.
    Does anyone have any input on this? I don't know how a shopping cart can be created without having to free-text a manual delivery address for every line item of every shopping cart.
    Thanks in Advance -Eric

    Purchasers can set the following addresses and defaults for suppliers or for themselves:
    Ordering address
    Ship-from address
    Invoicing party address
    System administrators can set the following addresses and defaults for their own company (purchasing side):
    Ship-to address
    Invoice recipient address
    ==
    Define the attributes Ship-to address (ADDR_SHIPT) and Company (COMPANY) at least once at a high level in the organizational plan. The number of the organizational unit is then copied to the COMPANY attribute. The Ship-to address and Company attributes are then inherited by organizational units at a lower level in the organizational plan. If you define other organizational units as subsidiaries, you can identify these as separate legal entities with different addresses using these attributes.
    Hi Eric
    if you maintain a address number in the ADDR_SHIPT . you must get a address.
    br
    Muthu

  • Combobox (Editor) and IP Address

    Hi,
    I wish to display the structure of and IP address in my ComboBox (editable) and display plus forcing user to input only digits for those 4 parts of the IP address.
    So display of a blank IP initially will be
    [    .    .    .    ]I was thinking of creating an editor, but haven't got a clue how those methods could be implemented to achieve the above.
    public interface ComboBoxEditor {
      /** Return the component that should be added to the tree hierarchy for
        * this editor
      public Component getEditorComponent();
      /** Set the item that should be edited. Cancel any editing if necessary **/
      public void setItem(Object anObject);
      /** Return the edited item **/
      public Object getItem();
      /** Ask the editor to start editing and to select everything **/
      public void selectAll();   
      /** Add an ActionListener. An action event is generated when the edited item changes **/
      public void addActionListener(ActionListener l);
      /** Remove an ActionListener **/
      public void removeActionListener(ActionListener l);
    }Do you know how this could be achieve?
    Thanks in advance.

    Hi
    This sample may helps you...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * CustomComboBoxDemo.java is a 1.4 application that uses the following files:
    *   images/Bird.gif
    *   images/Cat.gif
    *   images/Dog.gif
    *   images/Rabbit.gif
    *   images/Pig.gif
    public class CustomComboBoxDemo extends JPanel {
        ImageIcon[] images;
        String[] petStrings = {"Bird", "Cat", "Dog", "Rabbit", "Pig"};
         * Despite its use of EmptyBorder, this panel makes a fine content
         * pane because the empty border just increases the panel's size
         * and is "painted" on top of the panel's normal background.  In
         * other words, the JPanel fills its entire background if it's
         * opaque (which it is by default); adding a border doesn't change
         * that.
        public CustomComboBoxDemo() {
            super(new BorderLayout());
            //Load the pet images and create an array of indexes.
            images = new ImageIcon[petStrings.length];
            Integer[] intArray = new Integer[petStrings.length];
            for (int i = 0; i < petStrings.length; i++) {
                intArray[i] = new Integer(i);
                images[i] = createImageIcon("images/" + petStrings[i] + ".gif");
                if (images[i] != null) {
                    images.setDescription(petStrings[i]);
    //Create the combo box.
    JComboBox petList = new JComboBox(intArray);
    ComboBoxRenderer renderer= new ComboBoxRenderer();
    renderer.setPreferredSize(new Dimension(200, 130));
    petList.setRenderer(renderer);
    petList.setMaximumRowCount(3);
    //Lay out the demo.
    add(petList, BorderLayout.PAGE_START);
    setBorder(BorderFactory.createEmptyBorder(20,20,20,20));
    /** Returns an ImageIcon, or null if the path was invalid. */
    protected static ImageIcon createImageIcon(String path) {
    java.net.URL imgURL = CustomComboBoxDemo.class.getResource(path);
    if (imgURL != null) {
    return new ImageIcon(imgURL);
    } else {
    System.err.println("Couldn't find file: " + path);
    return null;
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("CustomComboBoxDemo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    JComponent newContentPane = new CustomComboBoxDemo();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    class ComboBoxRenderer extends JLabel
    implements ListCellRenderer {
    private Font uhOhFont;
    public ComboBoxRenderer() {
    setOpaque(true);
    setHorizontalAlignment(CENTER);
    setVerticalAlignment(CENTER);
    * This method finds the image and text corresponding
    * to the selected value and returns the label, set up
    * to display the text and image.
    public Component getListCellRendererComponent(
    JList list,
    Object value,
    int index,
    boolean isSelected,
    boolean cellHasFocus) {
    //Get the selected index. (The index param isn't
    //always valid, so just use the value.)
    int selectedIndex = ((Integer)value).intValue();
    if (isSelected) {
    setBackground(list.getSelectionBackground());
    setForeground(list.getSelectionForeground());
    } else {
    setBackground(list.getBackground());
    setForeground(list.getForeground());
    //Set the icon and text. If icon was null, say so.
    ImageIcon icon = images[selectedIndex];
    String pet = petStrings[selectedIndex];
    setIcon(icon);
    if (icon != null) {
    setText(pet);
    setFont(list.getFont());
    } else {
    setUhOhText(pet + " (no image available)",
    list.getFont());
    return this;
    //Set the font and text when no image was found.
    protected void setUhOhText(String uhOhText, Font normalFont) {
    if (uhOhFont == null) { //lazily create this font
    uhOhFont = normalFont.deriveFont(Font.ITALIC);
    setFont(uhOhFont);
    setText(uhOhText);

  • ESS Who is Who default address

    Dear Guru's
    For our customer we are looking for an option to view a default address subtype in the output from Who is Who. I have two questions:
    1. We use our own infoset with infotype 0006 for addresses. Our customer however uses multiple subtypes in infotype 0006. They want to show a certain subtype default in the output results without  selecting this subtype using the advanced search option.
    Is this possbile?
    2.Also using our own infoset. The outputresults in the Iview don't seem to match with the records in te backend. For example:
    infotype 0006 consist two records:
    record 1:
    P0006-BEGDA= 01.01.2011
    P0006 - ENDDA = 31.12.9999
    P0006-ANSSA = 1 Permanent residence
    P0006-STRAS = x
    P0006-HSNMR = x
    P0006-PSTLZ= x
    P0006-ORT01 = x
    record 2:
    P0006-BEGDA= 01.01.2011
    P0006 - ENDDA = 31.12.9999
    P0006-ANSSA = 6 nursing address
    P0006-STRAS = y
    P0006-HSNMR = y
    P0006-PSTLZ= y
    P0006-ORT01 = y
    The output in the Iview using the infoset and filling P0006-ANSSA in the advanced search option with 1 shows for example
    P0006-ANSSA = 1 Permanent address (record 1)
    P0006-STRAS = y (record 2)
    P0006-HSNMR = x (record 1)
    P0006-PSTLZ= x (record 1)
    P0006-ORT01 = y (record 2)
    Is this a problem with FM BAPI_EMPLOYEE_GETDATA ?
    Help needed.

    have you made your custom infoset and a query and select those fields which you need to be shown?
    Note that
    We can only restrict with the query which is based on the infoset.
    In the case of who is who, the query is designed based on selection of
    selection fields, output fields & output field list.
    We can create infoset query based on subtype field of IT 6 but we cannot
    restrict it to subtype.
    I suggest that you use BAPI method for creating search for Who's Who .
    You may need to write your own BAPI.

  • RE: 1) Changing name and IP address of an AIX 4.2 Server 2)Using NAT

    Daniel,
    you (normaly) just have to :
    1) edit the $FORTE_ROOT/fortedef.sh fileand change the value of variable
    FORTE_NS_ADDRESS
    2) shutdown and restart forte environment
    3) put the new values in the control panel of the client and run !
    It worked on our site with the same configuration (Aix 4.2)
    Good luck
    De : Daniel[SMTP:[email protected]]
    R&eacute;pondre &agrave; : Daniel
    Date : vendredi 18 juin 1999 13:08
    A : [email protected]
    Cc : Jose Ignacio
    Objet : 1) Changing name and IP address of an AIX 4.2 Server 2)
    Using NAT to reach forte
    Hello Forte Users :
        I have 2 questions to make:
        1)
        I've installed a Forte Server Central Node (Release 3.0.F.2) in an
    IBM RS/6000  with OS AIX 4.2
        (The name of the server is Name_1 and the IP address is
    125.125.50.50 with mask 255.255.255.0)
        Nowadays we had to change the name and IP address of this server
    lets say to Name_2 and 125.125.60.60 with mask 255.255.255.0.
        After that we try to find any reference to old name and IP address
    in the forte directory and all of its subdirectories changing them to
    the new ones.
        After these changes we found than forte could'nt start the nodemgr
    server.
        We have too many reasons to avoid installing FORTE again.
        Does anybody know if I have to change anything more to make
    nodemgr server work.
        2)
        The second question is about NAT (Network Address Translation).
        To reach a Forte Server Central Node from a Forte Client we have
    to pass through a Firewall and NAT.
        We are researching and at this moment we can not reach the server
    from the client, has anybody any suggestion to correctly configure
    Forte (Client and Server) to use NAT between them.
        If anyone could help me I would be very pleased.
        Thank you very much in advance,
        Daniel Gonz&aacute;Lucas (EAM Sistemas Inform&aacute;ticos SL, Spain,
    e-mail: [email protected])
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    >> 15 Mins is not enough for completely the replication.
    >> use repadmin /syncall /aEpd   - for force replication.
    >> Wait 3 hrs minimum.
    Regards,
    Biswajit
    MCTS, MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, Enterprise Admin, ITIL F 2011
    Blog:
      Script Gallary:
      LinkedIn:
    Note: Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights..

  • Default addresses

    I have a bad feeling what I want can't be done, but thought I'd check an make sure.
    I have several addresses I send mail from including some alias addresses for my @me.com account.
    I use these different addresses to send things to different people like family, friends, business (and I really don't want my real me.com address going out since I never want it to get spam - aliases I can change easier!
    The problem is with the options of what to set as the default address.  Sooner or later, I write a new email and the default isn't going to be what I want so now that person has two (or more) addresses for me!
    The only solution I can see would be if there was an option to NOT have a default address.  This would force me to choose it manually for any new mail (replies to messages would, of course, keep the same address) since, trying to send it with no address would bring up a warning to fill it in.
    Is there any way to do this?  Or is there some other mail client I can use (though I would rather just keep the Apple program if possible) that does this?

    Although I am not that familar with Mac Mail in most mail programs you can override the Return address, reply to, to something other then the address it was sent from. Not sure it that will help you but it is an option.
    I have 6 different email addresses so when I am composing a new email it defaults to what the program and I have selected as the default address for mail to be sent from. All I have to do is select, from a drop down, one of my other addresses for that particular email to be sent from.
    I personally don't use the otion I wrote about above as I don't need that feature but other find it very handy.

  • Jax-ws 2.2.8 and ws-addressing: Client throwing java.lang.NullPointerException on receipt of HTTP 202 when using non-anonymous ReplyTo address

    Server: JBoss EAP 6.2.0
    Client: JDK 1.7.0_51 x64
    JAX-WS: RI 2.2.8 ( via -Djava.endorsed.dirs )
    I am getting a java.lang.NullPointerException when calling the operation on the WS endpoint from the client when using non-anonymous replyTo address.
    I have simplified the scenario into a small test case that hopefully others can replicate. Since the exception is happening on the client instead of the server, I would think that the container used is irrelevant, but I have specified it nonetheless.
    1) WebService:
    package test.webservice;
    import java.util.Random;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.jws.soap.SOAPBinding;
    import javax.xml.ws.soap.Addressing;
    @WebService(targetNamespace="http://services.nowhere.org/")
    @Addressing(required=true)
    @SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
    public class RandomTest {
        @WebMethod
        public long nextRandom(@WebParam boolean forceException) throws Exception {
            if( forceException ) {
                throw new Exception("Some exception");
            Random rand = new Random();
            return rand.nextLong();
    2) Generated WSDL by JBossEAP 6.2.2:
    <?xml version='1.0' encoding='UTF-8'?><wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://webservice.test/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" name="RandomTestService" targetNamespace="http://webservice.test/">
      <wsdl:types>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://webservice.test/" elementFormDefault="unqualified" targetNamespace="http://webservice.test/" version="1.0">
      <xs:element name="nextRandom" type="tns:nextRandom"/>
      <xs:element name="nextRandomResponse" type="tns:nextRandomResponse"/>
      <xs:complexType name="nextRandom">
        <xs:sequence/>
      </xs:complexType>
      <xs:complexType name="nextRandomResponse">
        <xs:sequence>
          <xs:element name="return" type="xs:long"/>
        </xs:sequence>
      </xs:complexType>
    </xs:schema>
      </wsdl:types>
      <wsdl:message name="nextRandom">
        <wsdl:part element="tns:nextRandom" name="parameters">
        </wsdl:part>
      </wsdl:message>
      <wsdl:message name="nextRandomResponse">
        <wsdl:part element="tns:nextRandomResponse" name="parameters">
        </wsdl:part>
      </wsdl:message>
      <wsdl:portType name="RandomTest">
        <wsdl:operation name="nextRandom">
          <wsdl:input message="tns:nextRandom" name="nextRandom" wsam:Action="http://webservice.test/RandomTest/nextRandomRequest" wsaw:Action="http://webservice.test/RandomTest/nextRandomRequest">
        </wsdl:input>
          <wsdl:output message="tns:nextRandomResponse" name="nextRandomResponse" wsam:Action="http://webservice.test/RandomTest/nextRandomResponse" wsaw:Action="http://webservice.test/RandomTest/nextRandomResponse">
        </wsdl:output>
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="RandomTestServiceSoapBinding" type="tns:RandomTest">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsaw:UsingAddressing wsdl:required="true"/>
        <wsp:PolicyReference URI="#RandomTestServiceSoapBinding_WSAM_Addressing_Policy"/>
        <wsdl:operation name="nextRandom">
          <soap:operation soapAction="" style="document"/>
          <wsdl:input name="nextRandom">
            <soap:body use="literal"/>
          </wsdl:input>
          <wsdl:output name="nextRandomResponse">
            <soap:body use="literal"/>
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="RandomTestService">
        <wsdl:port binding="tns:RandomTestServiceSoapBinding" name="RandomTestPort">
          <soap:address location="http://localhost:8080/servertest/RandomTest"/>
        </wsdl:port>
      </wsdl:service>
        <wsp:Policy xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="RandomTestServiceSoapBinding_WSAM_Addressing_Policy"><wsam:Addressing><wsp:Policy/></wsam:Addressing></wsp:Policy>
    </wsdl:definitions>
    3) ant build.xml to generate the client code from WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <project default="build" basedir="..">
        <property name="jaxws.classpath" location="C://jaxws-2.2.8/jaxws-ri/lib/*.jar"/>
        <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
               <classpath path="${jaxws.classpath}"/>
        </taskdef>
        <target name="build" >
            <!-- For these to work, the JAR files in tools/jaxws-ri must be included in Ant's classpath -->
            <wsimport wsdl="http://localhost:8080/servertest/RandomTest?wsdl"
                   verbose="true"
                   sourcedestdir="src"
                   destdir="bin"
                   keep="true">
                   <xjcarg value="-enableIntrospection"/>
            </wsimport>
        </target>
    </project>
    4) Client code
    4a) ClientTest.java - Actual client run from client
    package test.wsclient;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.ws.BindingProvider;
    import javax.xml.ws.Endpoint;
    import javax.xml.ws.handler.Handler;
    import javax.xml.ws.soap.AddressingFeature;
    import org.nowhere.services.RandomTest;
    import org.nowhere.services.RandomTestService;
    public class ClientTest {
        public static void main(String args[]) throws Exception {
            ClientTest app = new ClientTest();
            app.testAddressing();
        public void testAddressing() throws Exception {
            String REPLY_TO_ADDRESS = "http://localhost:8082/servertest/RandomCallback";
            String FAULT_TO_ADDRESS = "http://localhost:8082/servertest/RandomCallbackFault";
            RandomTestService service = new RandomTestService();
            RandomTest port = service.getRandomTestPort(new AddressingFeature());
            BindingProvider provider = (BindingProvider) port;
            // pass the replyTo address to the handler
            provider.getRequestContext().put("ReplyTo", REPLY_TO_ADDRESS);
            provider.getRequestContext().put("FaultTo", FAULT_TO_ADDRESS);
            // Register handlers to set the ReplyTo and FaultTo on the SOAP request sent to the WS endpoint
            List<Handler> handlerChain = new ArrayList<Handler>();
            handlerChain.add(new ClientHandler());
            provider.getBinding().setHandlerChain(handlerChain);
            // Start endpoint to receive callbacks from WS
            Endpoint endpoint = Endpoint.publish(REPLY_TO_ADDRESS, new CallbackSEI());
            try {
                port.nextRandom(false);
            } catch( Exception ex ) {
                ex.printStackTrace();
            } finally {
                Thread.sleep(10000);
            endpoint.stop();
            System.exit(0);
    4b) ClientHandler.java - Used to set the wsa ReplyTo address and FaultTo address when sending SOAP request from client to server
    package test.wsclient;
    import java.util.Set;
    import javax.xml.namespace.QName;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.ws.handler.MessageContext;
    import javax.xml.ws.handler.MessageContext.Scope;
    import javax.xml.ws.handler.soap.SOAPHandler;
    import javax.xml.ws.handler.soap.SOAPMessageContext;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    public class ClientHandler implements SOAPHandler<SOAPMessageContext> {
        public ClientHandler() {};
        @Override
        public Set<QName> getHeaders() {
            return null;
        @Override
        public void close(MessageContext arg0) {
        @Override
        public boolean handleFault(SOAPMessageContext context) {
            return true;
        protected void setAnAddress(SOAPHeader header, String tagName, String address) {
            NodeList nodeListReplyTo = header.getElementsByTagName(tagName);
            NodeList nodeListAddress = nodeListReplyTo.item(0).getChildNodes();
            for (int i = 0; i < nodeListAddress.getLength(); i++) {
                Node node = nodeListAddress.item(i);
                if ("Address".equals(node.getLocalName())) {
                    node.setTextContent(address);
                    break;
        protected String getMessageID(SOAPHeader header) {
            NodeList nodeListMessageId = header.getElementsByTagName("MessageID");
            return nodeListMessageId.item(0).getTextContent();
        @Override
        public boolean handleMessage(SOAPMessageContext context) {
            Boolean isOutbound = (Boolean) context.get(SOAPMessageContext.MESSAGE_OUTBOUND_PROPERTY);
            if (isOutbound) {
                try {
                    SOAPEnvelope envelope = context.getMessage().getSOAPPart().getEnvelope();
                    SOAPHeader header = envelope.getHeader();
                    /* extract the generated MessageID */
                    String messageID = getMessageID(header);
                    context.put("MessageID", messageID);
                    context.setScope("MessageID", Scope.APPLICATION);
                    /* change ReplyTo address */
                    setAnAddress(header, "ReplyTo", (String) context.get("ReplyTo"));
                    setAnAddress(header, "FaultTo", (String) context.get("FaultTo"));
                } catch (Exception ex) {
                    throw new RuntimeException(ex);
            return true;
    4c) CallbackSEI.java - endpoint on the client for server to send the SOAP response back to the client
    package test.wsclient;
    import javax.annotation.Resource;
    import javax.jws.Oneway;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.xml.ws.Action;
    import javax.xml.ws.RequestWrapper;
    import javax.xml.ws.WebServiceContext;
    import javax.xml.ws.soap.Addressing;
    @WebService
    @Addressing
    //@HandlerChain(file = "/handler-chain.xml")
    public class CallbackSEI {
        @Resource
        private WebServiceContext context;
         * If there is no namespace specified in the method below, then the CallbackSEI needs to be in the same package as the
         * WS endpoint.
        @Oneway
        @Action(input="http://services.nowhere.org/RandomTest/nextRandomResponse")
        @RequestWrapper(localName="nextRandomResponse", targetNamespace="http://services.nowhere.org/")
        public void handleNotification(@WebParam(name="return")long random) {
            System.out.println("Asynch response received");
            System.out.println( random );
            //System.out.println("This response relates to the message ID: "+ getMessageID());
    In summary:
    Server is listening on port 8080
    Client will listen in port 8082 for the callback from the server for the SOAP response
    Now when I run the client, I see that the proper behaviour as far as ws-addressing is concerned. That is:
    client  -- SOAP request ( on port 8080 ) --> server
    client <-- HTTP 202 ( empty HTTP body )  --- server
    client <-- SOAP response ( on port 8082 )  --- server
    All well and good, except that I am getting a NullPointerException on the client side when I call the operation.
    With debugging of the SOAP request and responses, I get the following output:
    ---[HTTP request - http://localhost:8080/servertest/RandomTest]---
    Accept: text/xml, multipart/related
    Content-Type: text/xml; charset=utf-8
    SOAPAction: "http://services.nowhere.org/RandomTest/nextRandomRequest"
    User-Agent: JAX-WS RI 2.2.8 svn-revision#13980
    <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><To xmlns="http://www.w3.org/2005/08/addressing">http://localhost:8080/servertest/RandomTest</To><Action xmlns="http://www.w3.org/2005/08/addressing">http://services.nowhere.org/RandomTest/nextRandomRequest</Action><ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
        <Address>http://localhost:8082/servertest/RandomCallback</Address>
    </ReplyTo><FaultTo xmlns="http://www.w3.org/2005/08/addressing">
        <Address>http://localhost:8082/servertest/RandomCallbackFault</Address>
    </FaultTo><MessageID xmlns="http://www.w3.org/2005/08/addressing">uuid:bcd2f6ef-3034-49e8-b837-dbd6a772fb93</MessageID></S:Header><S:Body><ns2:nextRandom xmlns:ns2="http://services.nowhere.org/"><arg0>false</arg0></ns2:nextRandom></S:Body></S:Envelope>--------------------
    ---[HTTP response - http://localhost:8080/servertest/RandomTest - 202]---
    null: HTTP/1.1 202 Accepted
    Content-Length: 0
    Content-Type: text/xml;charset=UTF-8
    Date: Fri, 18 Jul 2014 08:34:36 GMT
    Server: Apache-Coyote/1.1
    java.lang.NullPointerException
        at com.sun.proxy.$Proxy38.nextRandom(Unknown Source)
        at test.wsclient.ClientTest.testAddressing(ClientTest.java:43)
        at test.wsclient.ClientTest.main(ClientTest.java:18)
    ---[HTTP request]---
    Cache-control: no-cache
    Host: localhost:8082
    Content-type: text/xml; charset=UTF-8
    Content-length: 704
    Connection: keep-alive
    Pragma: no-cache
    User-agent: Apache CXF 2.7.7.redhat-1
    Accept: */*
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action xmlns="http://www.w3.org/2005/08/addressing">http://services.nowhere.org/RandomTest/nextRandomResponse</Action><MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:65d8d7fc-09e4-494a-a9c5-0a01faf4d7e6</MessageID><To xmlns="http://www.w3.org/2005/08/addressing">http://localhost:8082/servertest/RandomCallback</To><RelatesTo xmlns="http://www.w3.org/2005/08/addressing">uuid:bcd2f6ef-3034-49e8-b837-dbd6a772fb93</RelatesTo></soap:Header><soap:Body><ns2:nextRandomResponse xmlns:ns2="http://services.nowhere.org/"><return>2870062781194370669</return></ns2:nextRandomResponse></soap:Body></soap:Envelope>--------------------
    Asynch response received
    2870062781194370669
    As you can see from the output above, the proxy is throwing an Exception when it receives the HTTP 202 response.
    Any ideas ?

    I think I have found when I get this error and probably I have found a bug. I will appreciate if someone can confirm this.
    In my BPEL project setup, my BPEL process's wsdl file imports another wsdl from different namespace. Here is sample snippet -
    <wsdl:definitions targetNamespace="http://namespace/1">
    <wsdl:import namespace="http://namespace/2" location="resources/another.wsdl"/>
    <plnk:partnerLinkType....../>
    </wsdl:definitions>
    Please let me know. I checked the bundled samples with Oracle BPEL PM and did not find any similar case where process wsdl imports another wsdl.
    Thank you.
    Meghana

  • Materials replication and R3PRODSTYP - SYSFAIL in inbound queues

    Hi,
    We are using SRM 7.0 and we have a problem in materials replication. In inbound queues we have the status SYSFAIL and  the following error:
    R3A* Error in Mapping (Details: transaction SMW01)
    In SW01 the error messages are: u201CDownload inicial material: Table not supported by functionu201D and u201CCategory for material type MAT_Z001 does not existu201D
    We did the initial download of DNL_CUST_PROD1 and the materialu2019s group corresponding to R3MATCLASS were replicated successfully. However 2 product subtype, corresponding to R3PRODSTYP, were not  replicated.
    Thus, the materials are not being replicated.
    Do you have any ideas?
    Thanks in advance,
    Best regards,
    AN

    We already did the initial download of DNL_CUST_PROD0, DNL_CUST_PROD1, MATERIAL...
    The problem is that there are two material types that at this time donu2019t exist in R/3 and when we do the material download those material types are trying to be replicated...
    Any help?
    Thanks!
    Best Regards,
    AN

  • Materials replication and R3PRODSTYP product subtype - SYSFAIL in inbound q

    Hi,
    We are using SRM 7.0 and we have a problem in materials replication. In inbound queues we have the status sysfail and the following error:
    R3A* Error in Mapping (Details: transaction SMW01)
    In SW01 the error messages are: u201CDownload inicial material: Table not supported by functionu201D and u201CCategory for material type MAT_Z001 does not existu201D
    We did the initial download of DNL_CUST_PROD1 and the materialu2019s group corresponding to R3MATCLASS were replicated successfully. However the product subtype, corresponding to R3PRODSTYP, was not correctly replicated. Thus, the materials are not being replicated.
    Do you have any ideas?
    Thanks in advance,
    Best regards,
    AN

    Hi AN,
    Do you mind verifying your setup with this blog? : /people/marcin.gajewski/blog/2007/02/05/how-to-replicate-material-master-from-r3-to-srm
    Also in ECC system, what are your entries in the table : CRMPRLS?
    Regards,
    Nikhil

  • How to ensure that photos emailed thru the iPhoto sharing facility are sent from my default address

    When I mail a photo using the sharing facility it goes from my secondary, not my default, email address.  The dropdown "from" box does not offer my default (Gmail) address only my secondary and icloud addresses.  All emails sent through mail go from my default (Gmail) address.  Why does this not show in iphoto?

    Click on the "+" button and add your Gmail account to the iPhoto/Accounts preference pane.
    OT

  • Default Address format

    How can i set default address format & show complete name of country & state in pld.

    Hi,
    Check the following thread
    Country Field problem
    Re: Address Formats - Country
    Invoice ship to State and Country
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

Maybe you are looking for

  • Export web analysis document from workspace to excel

    Hi all i have the problem regarding exporting the webanalysis document from workspace,i.e when i drilldown the webanalysis document to lowest level and right click on the report and select "export to excel " i am being prompted the webanalysis login

  • Call Template Editor in LabVIEW

    Is it possible to call template editor in LV? I searched around and found using command prompt is asolution, but is there any VIs or a combination of VIs that can realize this function in new version Labview? Following is the link that calling templa

  • SCAT t-code catt for extending materials - import file?

    want to extend materials to a new plant but not with the MASS transaction. apparently SCAT can do this more efficiently.  i'm not sure how the import file should be formatted.  i.e. want to make thousands of finished goods that will have ~ 7 default

  • Precedence: Procedure or Function

    I have a package that contains function revise and procedure revise. (this package is over a decade old) Inside the package, some code reads: if jobtype is not null then my_custom_package.revise; end if; Which "revise" is called? Is it the procedure

  • Quicktime crashes on open

    Hi, I was watching a normal .mp4 video in quicktime and I wanted to stop playback and stop Quicktime, so I clicked the red X to close the window. When I did that, Quicktime crashed and didn't respond for about 5 seconds, quit, and I got a crash repor