Exchanging objects from mobile to server.

Hi,
I'm working in a project that needs to send and receive objects from a mobile client, i know java me does not suport serialization, so, we do not have ObjectOutputStream and ObjectInputStream classes... but, anyone worked in a project with thats requirements? how you pass objects between server and mobile? we are analizing the possibility of make a framework, this one converts a object in the mobile for a xml and the server parse the xml in a new object, we will need to work with aspectj or something like this to intercept the methods and abstract totally de parsing, but this requires time, and we are very close in the project, can someone tell me what to do?
Thank you
André Martins

The HARD WAY:
The thing you are trying is complicated. First of all, a mechanism to write "any" type of object is very complicated. You have to take
care of any type of Class. There is a way of doing this but you have to work many months.
Java offers a mechanism to extract Class information at runtime by using "Class.Class" type. When you serialize an object, you care about internal fields and not
methods, so you have to extract fields information in triplets : (type, fieldName, value). After you extract all these triplets you define a protocol
of writing fields into a byte array with DataOutputStream;
This is the simplest way, but here rises a problem: what if the fields are not primitive values(float, integer, etc..). These
types are indivisible; but a reference to another object is not an indivisible field. So here comes a recursive way of analyze the
class: For every indivisible field you have to apply the same algorithm. You apply this until no more reference types are found.
At the end, the "map" of one Class will look like a tree data structure, where the root is the class type to serialize and the leafs are
primitive types that are indivisible. Intermediary nodes are references(Class types). By doing so you create a map of the entire Class dependencies.
Another problem rises here: what if references are in cycle? This means that the previous algorithm works in infinite loop. To avoid this you have
to create a hash map and add at recursive reference traversal in the hash map objects already mapped. In this case the references between Class types
creates a graph topology and not a tree topology. By adding this hash of already visited and mapped objects you create a spanning tree over the graph and
avoid infinite looping.
After creating the spanning tree, you apply a traversal algorithm(BFS - Breadth First Search) and for every node you write, using the DataOutputStream object,the
triplets.
In order to separate the objects into the byte stream, you have to add "offset information" for every Class type you write, in order to read at the other end the correct instances. For a real example of coding this offsets and "pointers" try to implement from scratch the DNS protocol(application layer protocol used to translate a domain name into IP address).
The EASY WAY
The easy way is to create a finite number of objects that can be serialized. To do this you have to combine two Design Patterns - Abstract Factory and Memento.
The Abstract Factory pattern is used to instantiate a family of objects into an uniform way and context. The Memento pattern is used to save a specific state of one object or group of objects. So, you define an Abstract Factory that creates Mementos from objects you want to serialize. Of course the number of objects(or families) is limited, but sufficient to fit your communication needs. On Sender you create mementos that encapsulate the state of objects and send them to Receiver that uses the same factory type to recreate the original object from the memento, but you have to do it by hand: for every class type you have to "recreate" the original configuration by telling the meaning of the received bytes. Also, the memento object must have a low complexity, so you can code it, and not to be a representation of a tree with 10 levels.

Similar Messages

  • Sending an object from client to server always on button press

    What I need is to send an object from client to server but I need to make server wait until another object is sent. What I have is the JFrame where you put the wanted name and surname, then you create a User object with these details and on button press you send this object to the server. I just can't hold the connection because when I send the first object, server doesn't wait for another button click and throws EOFexception. Creating the while loop isn't helpfull as well because it keeps sending the same object again and again. The code is here
    public class ClientFrame extends JFrame {
        private JButton btnSend;
        private JTextField txfName;
        private JTextField txfSurname;
        public ClientFrame() {
            this.setTitle(".. ");
            Container con = this.getContentPane();
            con.setLayout(new BorderLayout());
            txfName = new JTextField("name");
            txfSurname = new JTextField("surname");
            btnSend = new JButton(new AbstractAction() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    SSLSocketFactory f =
                            (SSLSocketFactory) SSLSocketFactory.getDefault();
                    try {
                        SSLSocket c =
                                (SSLSocket) f.createSocket("localhost", 8888);
                        c.startHandshake();
                        OutputStream os = c.getOutputStream();
                        ObjectOutputStream oos = new ObjectOutputStream(os);
                        InputStream is = c.getInputStream();
                        ObjectInputStream ois = new ObjectInputStream(is);
                        boolean done = false;
                        while (!done) {
                            String first = txfName.getText();
                            String last = txfSurname.getText();
                            User u = new User();
                            u.setFirstName(first);
                            u.setLastName(last);
                            oos.reset();
                            oos.writeObject(u);
                            String str = (String) ois.readObject();
                            if (str.equals("rcvdOK")) {
                                System.out.println("received on the server side");
                            } else if (str.equals("ERROR")) {
                                System.out.println("ERROR");
                        //oos.writeObject(confirmString);
                        oos.close();
                        os.close();
                        c.close();
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(ClientFrame.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        System.err.println(ex.toString());
            btnSend.setText("send object");
            con.add(btnSend, BorderLayout.PAGE_START);
            con.add(txfName, BorderLayout.CENTER);
            con.add(txfSurname, BorderLayout.PAGE_END);
            this.pack();
            setSize(200, 150);
            setVisible(true);
    public class TestServer {
        public static void main(String[] args) {
            try {
                KeyStore ks = KeyStore.getInstance("JKS");
                ks.load(new FileInputStream(ksName), ksPass);
                KeyManagerFactory kmf =
                        KeyManagerFactory.getInstance("SunX509");
                kmf.init(ks, ctPass);
                SSLContext sc = SSLContext.getInstance("TLS");
                sc.init(kmf.getKeyManagers(), null, null);
                SSLServerSocketFactory ssf = sc.getServerSocketFactory();
                SSLServerSocket s = (SSLServerSocket) ssf.createServerSocket(8888);
                printServerSocketInfo(s);
                SSLSocket c = (SSLSocket) s.accept();
                InputStream is = c.getInputStream();
                ObjectInputStream ois = new ObjectInputStream(is);
                OutputStream os = c.getOutputStream();
                ObjectOutputStream oos = new ObjectOutputStream(os);
                boolean done = false;
                User u;
                  while(!done){
                    u = (User) ois.readObject();
                    String confirmString = "rcvdOK";
                    String errorString = "ERROR";
                    if (u != null) {
                        System.out.println(u.getFirstName() + " " + u.getLastName());
                        oos.writeObject(confirmString);
                    } else if (u == null) {
                        oos.writeObject(errorString);
                is.close();
                s.close();
                c.close();
            } catch (Exception e) {
                    System.err.println(e.toString());
    }Thanks for any help, btw this doesnt need to be via ssl, the problem would be the same using only http. Please anyone help me:)
    Edited by: Vencicek on 7.5.2012 2:19
    Edited by: EJP on 7/05/2012 19:53
    Edited by: Vencicek on 7.5.2012 3:36

    Current code fails because it's sending still the same entity again(using while loop)No it's not. You are creating a new User object every time around the loop.
    which makes the system freezeWhich means that you are executing network code in the event thread. Don't do that, use a separate thread. At the moment you're doing all that sending inside the constructor for ClientFrame which is an even worse idea: you can never get out of there to the rest of your client program. This is a program design problem, not a networking problem.
    and doesn't allow me to set new parameters of the new entityI do not understand.
    I need to find a way to keep Server running even when the client doesn't send any data and wait until the client doesnt press the send button again to read a new object.That's exactly what happens. readObject() blocks until data is received.

  • Passing a object from browser to server

    How can i pass a java object from browser to server, can anybody help me in knowing this?
    Rajesh.

    You might need to clarify this. What exactly do you need to do? You can't pass anything from a browser except HTML, other than by attachment. If you have a Java object, then I assume that you are using JSP or something that supports Java, in which case you are already using server-side semantics.
    If however, you mean Javascript, that's a whole other problem, as it is client side only.
    Perhaps if you clarify what you are trying to do someone can give you a good answer.
    Regards,
    Paul

  • Accessing an object from a different server

    Hi,
    I am making a program that will access an object from a different server.
    I have a program that when I run calls a jsp page running on Server A which in turn should request an object A from Server B.
    I am relatively new to Java and jsp. What would my best course of action be.
    Thanks in advance,
    Brian

    Or RMI?OK, sounds good, I will look up some RMi on the site.
    Thanks, will prob have more questions for you later.

  • Cannot Uninstall Exchange 2003 from former SBS2003 server

    Hi,
    I have this problem uninstalling Exchange 2003 from a prior SBS2003 installation.
    Started with SBS2003 with Exchange2003 on server1
    Then added server2, with Exchange2003 Standard
    Then transitioned succesfully Server1 from SBS2003 to Server2003 Standard with Exchange2003 standard.
    Now I have added 3 Exchange2010 servers and migrated completely to Exchange2010.
    Uninstallation of Exchange2003 Standard from Server2 went succesfully.
    I cannot find a way to uninstall the last Exchange2003 Standard from Server1
    In Control Panel add remove programs there's no option to enter SBS setup anymore.
    When starting setup.exe from SBS CD2 (i386 directory) I'm asked for a Product Key but I have no valid key to enter. Tried SBS key, Transition key, nothing works.
    When downloading an Exchange2003 SP2 installation exe I only have the option to upgrade the existing installation. No option to uninstall.
    What is the way forward? I'm stuck right now.
    Regards,
    Joost

    Hello,
    If you don't uninstall exchange 2003 in Control Panel add/remove programs, you may need to uninstall it by ADSIEDIT. Do not remove this Administrative Group unless you’re absolutely sure there’s
    no object in Active Directory referencing this Administrative Group in the ExchangeLegacyDN attribute.
    More information for your reference.
    http://blog.dargel.at/2012/02/23/remove-legacy-exchange-server-using-adsi/ (Note: Microsoft is providing
    this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand
    the risk before retrieving any suggestions from the above link.)
    http://technet.microsoft.com/en-us/library/bb288905.aspx
    If you have any feedback on our support, please click
    here
    Cara Chen
    TechNet Community Support

  • How to send multiple objects from Client to Server

    Hi
    I have a simple Client - Server architecture. I am trying to send 5 objects from Client to the Server which the server would operate on.
    In the past I've used PrintWriter to pass Strings from Client to Server but now when I am dealing with multiple Objects and PrintWriter not allowing sending of Arrays or ArrayList, how can I send these from the Client to the Server? What would be a good writer to use for this purpose?
    Thanks!

    Thanks, I am looking into ObjectOutputStream but from the API it appears I can only send 1 object at a time. I need to send 5 objects per transaction and then send the next group of 5 objects for another transaction.
    Could you clarify some more on how to put these objects together as a single Object perhaps?
    Thanks

  • Removing email from iPhone without removing it from Mobile me server

    I currently have an iPhone and several email accounts on different servers. All these accounts give me to option to remove mail from my iPhone without removing them from the server. With Mobile me there is no option available to do this that I've been able to to locate on my iPhone. Does anyone know how to prevent the emails pushed to my iphone not being removed from the server when I delete them from my iPhone? Thanks.

    Mobile Me uses the IMAP protocol.
    This allows the iPhone + Server + all other PC/Macs you have your account on to remain in sync. Delete an email, it affects all devices with account, read email, read on all devices with account. Etc. Etc.
    This is normal for any IMAP based account. POP are the accounts that will not keep things up to date or the same.
    By any chance are all the other accounts actually POP? or are they also using IMAP?
    Typically you may find a default global settings in Settings - Mail, Contacts, Calenders - On that screen might be some deletion options.

  • Failed retrieval of the session object from the portal server in the WebApp

    hello out there,
    i tried to realize a multipartform file upload with a jsp-Channel (in .../portal/dt ) which sends the data into the same WebApp ( .../portal/ )to a different jsp-File but which is not using the desktopServlet of the potal. The Information where the file must be stored is generated in the jsp-Channel of the portalDesktop and saved in a session object. the problem i have is this: the session object generated in the jsp-Channel isn`t available outside .../portal/dt. But the WebAppContext is .../portal/ and the jsp File which processes the upload resides in .../portal/fileProcess.jsp . Does the PortalServer manage SessionManagement in a different way than an ordinary servlet/jsp container ?? if yes, how can i create a session object for the whole webAppContext ".../portal/ " ??
    i am very thankful for answers
    sincerely
    martin

    you may try to set usehttpsession to true in ../SUNWam/lib/AMConfig.properties file (restart after change). But using httpsession in portal is not an optimal solution for performance - performance tuning in production environment sets the value to false. I remember there is a good posting here about using session in portal, you may want to find it out.
    Hope this helps.
    Joe Zhou

  • Remove Exchange 2007 from an Exchange 2013 coexistence.

    Hey everyone,
    I've just installed Exchange 2013 on a new server and all is working great.  It is currently in coexistence with our old Exchange 2007 server.  I've since shut the server down and Exchange 2013 has been working without issue.  However, I haven't
    been able to find any articles on this matter so I figured I would ask the question here.
    How do you remove Exchange 2007 from the coexistence.  Do I just uninstall Exchange 2007 from the old server and it will remove itself from the server and the domain?  Any help/link on this matter would be greatly appreciated.
    Thank you,
    Chris

    Hi Simon,
    I am about to do the same exercise as Chris,  I just would like some clarity.  
    1) When you say mailbox Database, do you mean make sure there are no more mailboxes that you want to move over, or are you actually meaning delete the physical DB on the exchange 2007 server.
    2) If there is no use of public folders does anything need to happen?
    Thanks,
    Terry

  • Removing Exchange 2007 from SBS 2008 (In an Exchange 2010 Coexistance Scenario) - In order to remove 2007 Mailbox Objects from Active Directory and remove the SBS2008 server completely

    I'm trying to remove Exchange 2007 from an SBS 2008 server
    (Server 2008 Standard FE).  My ultimate goal is to completely remove the SBS 2008 Server from the network environment.
    We have an Exchange 2010 Coexistence Scenario and Mailboxes/Public Folders/etc have been moved over to the 2010 mail server, on Server 2008 R2.
    I have moved all Shares, FSMO roles, DHCP, DNS, etc over to their respective servers.  We have two full blown DC's in the environment.
    I'm ready to remove Exchange 2007 from SBS 2008 and DCPROMO the server.  I can NOT seem to find a TechNet article that shows me how
    to proceed in this kind of scenario.  I am trying to use the TechNet article:
    http://technet.microsoft.com/en-us/library/dd728003(v=ws.10).aspx
    This article references Disabling Mailboxes, Removing OAB, Removing Public Folder Databases, then uninstalling Exchange using the Setup Wizard. 
    When I go to Disable Mailboxes I get the following error:
    Microsoft Exchange Error
    Action 'Disable' could not be performed on object 'Username (edited)'.
    Username (edited)
    Failed
    Error:
    Object cannot be saved because its ExchangeVersion property is 0.10 (14.0.100.0), which is not supported by the current version 0.1 (8.0.535.0). You will need a later version of Exchange.
    OK
    I really don't see why I need to Disable Mailboxes, Remove OAB and Public Folder Databases since they have been moved to 2010.  I just want
    to remove Exchange 2007 and DCPROMO this server (actually I just want to remove any lingering Exchange AD Objects referring to the SBS 2008 Server, using the easiest and cleanest method possible).
    Can someone point me in the right direction?
    Thanks!

    Hi,
    Based on your description, it seems that you are in a migration process (migrate SBS 2008 to Windows Server
    2008 R2). Now, you want to remove Exchange Server and demote server. If anything I misunderstand, please don’t hesitate to let me know.
    On current situation, please refer to following articles and check if can help you.
    Transition
    from Small Business Server to Standard Windows Server
    Removing SBS 2008 –
    Step 1: Exchange 2007
    Removing SBS 2008 – Step 2:
    ADCS
    Removing
    SBS 2008 – Step 3: remove from domain / DCPROMO
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft
    does not guarantee the accuracy of this information.
    Hope this helps.
    Best regards,
    Justin Gu

  • [urgent[ Passing object from server to the midlet

    I am building a search function for my mobile application..
    I created a servlet "SearchServlet.java" that basically send a query to the dbase to retrieve the values in the database.
    In this servlet, I store the results in an arraylist..
    The servlet works just fine *I've tested it in the browser and accessed it through the local host"..
    The concern now is, what if I need to call the servlet from the midlet application..
    How to pass the object from the server to the midlet?
    Could someone explain to me the mechanism to pass the object?
    What object should be the return value in SearchServlet.java?
    Thank you very much..

    First of all use sober language on forums, its not
    your private forum where you can use your abusive
    language.And even if it is than its not good manners
    to speak in public.Well, quite honestly, my language was not that abusive... I aleady told you that that it's wrong several times... No response on those (at least nothing showing that i would be wrong). And if you keep linking to that code, I find that very anoying.
    Second of all. the try catch block sends response
    back to J2me app request.Its upto developer whatever
    response he wants to send back. There is nothing
    wrong in that.No, all it does it declare a string, nothing more, nothing less. No need to catch any exception!
    third of all if you think that writeUTF method is
    totally wrong, then why dont you show me the
    improved solution or correct solution. After all its
    forum site, if you know the better solution please
    show me rather than always criticising and using
    abusive languages.I told you several times that you should read the api docs! It's all in there and you see why you should not read data with readline() when you write that data with writeUTF(). If you fail to do that, and are not capable to learn from that, then that's your own problem. Sure I could show you what it should be (and I beleive I did more than ones), but what does that teach you? Not a lot! Only to keep coming back here and ask more questions that can be found if you take two minutes of time and read docs or search the internet using google or whatever search engine you like (or even the forum search enigne, since that is also rarely used). I'm not talking about you in particular, but about the general level of the questions asked here. 75% of the answers can be found with a little more effort, and in less time than it would take to wait for someone else to come up with an answer.
    So please, read what writeUTF() does, and you'll understand what's wrong.
    Let me show you:
    Writes a string to the underlying output stream using UTF-8 encoding in a machine-independent manner.
    First, two bytes are written to the output stream as if by the writeShort method giving the number of bytes to follow. This value is the number of bytes actually written out, not the length of the string. Following the length, each character of the string is output, in sequence, using the UTF-8 encoding for the character. If no exception is thrown, the counter written is incremented by the total number of bytes written to the output stream. This will be at least two plus the length of str, and at most two plus thrice the length of str. What does readline() do? It reads UTF-8 text until some endline character. So it will also read the two length bytes of the wirteUTF method. Is this good? No, it's not. If the lengt is to long, it could even insert extra text characters in the line that should not be there, since readline doesn't know anything about the length bytes, and theats them as normal UTF-8 text.
    If you think I dont understand API properly than make
    me explain, thats what forums are for...You never said you didn't understand the api docs... I think they are very clear
    To end it I really doubt that you are developer/
    coder. If you think yourself too perfect please guide
    me.I'm not perfect, I'm just putting effort into finding solution myself.
    If you are going to continue such an attitude I have
    to report to Java forums administrator.I realy don't mind.
    Note to original user who posted this message: I am
    sorry to write such a comment in your thread, but
    "deepspace" user really needs some help.Please, if you want to make a comment, be constuctive. Talking about abusive language... This might be subtle, but it still is abusive! Tell that to all the users I helped already... I bet I'm the most active user here at the moment and I think I helped a whole lot of them very well. Some didn't like my method at first, but in the end, most wil apriciate what I did. I like to let user find out stuff for themselfs, and not give them what they want. They learn much more thay way for sure!

  • Hi,how can i transport objects from one server to other like (Dev To Qty)

    Hi Sir/madam,
       Can u explain how can i transport objects from one server to other like (Development To Quality To Production).
    Regards,
    Vishali.

    Hi Vishali,
    Step 1: Collect all Transports(with Packages) in Transports Tab(RSA1)- CTO
    Step 2: Release the subrequests first and then the main request by pressing Truck button
    Step 3: STMS or Customized transactions
    Object Collection In Transports:
    The respective Transports should have the following objects:
    1. Base Objects -
    a. Info Area
    b. Info object catalogs
    c. Info Objects
    2. Info Providers u2013
    a. Info Cubes
    b. Multi Providers
    c. Info Sets
    d. Data Store Objects
    e. Info Cube Aggregates
    3. Transfer Rules u2013
    a. Application Components
    b. Communication Structure
    c. Data Source replica
    d. Info Packages
    e. Transfer Rules
    f. Transformations
    g. Info Source Transaction data
    h. Transfer Structure
    i. Data sources (Active version)
    j. Routines & BW Formulas used in the Transfer routines
    k. Extract Structures
    l. (Note) If the transfer structures and related objects are being transferred without preceding
    Base Objects transport (e.g. while fixing an error) it is safer to transport the related Info
    Objects as well.
    4. Update Rules u2013
    a. Update rules
    b. Routines and formulas used in Update rules
    c. DTPs
    5. Process Chains u2013
    a. Process Chains
    b. Process Chain Starter
    c. Process Variants
    d. Event u2013 Administration Chains
    6. Report Objects u2013
    a. Reports
    b. Report Objects
    c. Web Templates
    Regards,
    Suman

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

  • Client unable to get the javax.activation.DataHandler object from Server

    Hi All,
    I am trying to download the file from the server to the client using Javax.Activation.Data Handler object with IBM web services. But server always returning the Data Handler object is null. I am wondering why it is behaving like this.
    My requirement is add the file to the Data Handler object from the server and read the same from the client. But I am always getting Data Handler object is  null at the client place.
    Please see the client side code and server side code below.
    Server side Code:
    This is the simple web service method, its creating the Data Handler object and adding it to the Hash Map and returning the Hash Map object to the client.
    public Hashtable download()
              DataHandler dh = null;
              HashMap hashMap =new HashMap();
              try{
                   //Sample test files contains data
                   String downLoadFName="C:/ADP/downLoadData.txt";
                   //Creating the DataHandler Object with sample file
                   dh      =      new DataHandler(new FileDataSource(new File(downLoadFName)));
                   //Keeping the DataHandler object in the HashMap.
                   hashMap.put("DATAHANDLER",dh);
                   //keeping the sample test message object in the HashMap
                   hashMap.put("TEST","Keeping the DataHandler and test messages in the hashTable");                         
              }catch(Exception e){
                   logger.error("Error :while sending the data:"+e.getMessage(), e);
              //retrun the HashMap object to the client.
              return hashMap;
    Client Side Code:
    This is the simple client code, and connecting to the server and invoking the web service method
    //This is the client code,Just invoking the webservice method from the Webspehre server.
    public class WebserviceClient {
         static DocumentTransfer controller     =     null;
         public static void main(String args[]){     
                DocumentTransferService service          =     null;
              try{
                   //Creating the service Object
                   service               =     new DocumentTransferServiceLocator();
                   //Getting the Server connection
                    controller          =      (DocumentTransfer)service.getDocumentTransfer(new java.net.URL("http://localhost:9081/eNetsRuntimeEngine/services/DocumentTransfer"));
                    //Calling the download method from the server and it returns HashMap object.
                   HashMap hashMap     = controller.download();
                   //Getting the DataHandler Object from the HashMap
                    DataHandler dh=(DataHandler)hashMap.get("DATAHANDLER");
                   System.out.println("DATAHANDLER: :"+dh);
                   //Getting the String object from the HashMap.
                   String message=(String)hashMap.get("TEST");
                   System.out.println(": :"+message);
               }catch(Exception e){
                    System.out.println("Exception :Not able to get the file :"+e.getMessage());
    Could you please give me some inputs on this?
    Thanks in advance,
    Sreeni.

    Hi Stif,
    Thanks for your response.I did debug from server side,it has printing content of Data Handler properly.
    Also i have debug request and response messages using TCP/IP monitor(RAD environment has this feature).The response from the server is going proplery.
    But the client side Data Handler is coming null.
    Any advice or solution would be greatly appreciated.
    Thanks,
    Sreeni.

  • Attach doc from external content server- using Generic Object Service (GOS)

    Dear All,
    i have intergrated an external content server to SAP using SAP archive link. All the scanned document are there in Content server and corresponding entries are done in SAP.I can search and view document using tcode : OAAD
    Please tell me steps for "how to attach a document from external content server using Generic Object Service "
    Scenario is :  For example when we change any Master records or create a new PO, or do some financial transaction then i need to attach the supporting document which is there in my content server connected  to SAP.how do we manual attach a Document in SAP using GOS.
    Do we need to do some special configuration to use GOS .please give the steps from initial.
    Thanks
    sandeep

    Hello,
    Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
    Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
    This will help in attaching the document to your required business document.
    To verify you can check the archivelink table or by transaction OAAD.
    Hope this will help you.
    -Thanks,
    Ajay

Maybe you are looking for

  • Question about reading a string or integer at the command line.

    Now I know java doesn't have something like scanf/readln buillt into it, but I was wondering what's the easiest, and what's the most robust way to add this functionality? (This may require two separate answers, sorry). The reason I ask is because I'v

  • Power supply from g3 into a g4?

    Hi ! i have a G4 533 which is kinda dead, and have a B&W G3 which is fine. i wanted to try to switch the power supplies, but i thought i'd ask here first to see if anyone knew if they were compatable. MOst of the number specs look the same, but not 1

  • 2 CD Music Files in External Hard Drive

    I remember you told me how to file my iTunes music folder into my existing one in my external hard drive (EHD). When I slide the one from my PC directly over the iTunes Music File in my EHD it copies and updates everything fine. However, when I look

  • Kerning In Boris

    What am I missing? Putting a crawl title in with Boris. Trubuchet, 48 pt., Edge style Plain, edge width 1.53, white, words "Muchoa Lake Park" in red letters. (This is an example--the problem always happens.) The M is partly on top of the O. The dista

  • Macbook Pro Late 2011 Grey screen

    Hi pals, I have a Macbook Pro Late 2011 since 2012. I've upgraded it to Yosemite, thing that I've to do from scratch because it worked very slow, but that's not the deal here. The other day I started it, and it simply didn't do it. I've tried everyth