Simplest possible client-server for file sending...

Hi im trying to create a simple client-server application using sockets.
All i want the server to do i listen for the client to send him a file.
Then maby later i'll implement some other stuff like resuming and stuff like that.
And so the client application is only supposed to send a specified file to the server...
However, all the examples and tutorials i've found on the net are either to complex or only dealing with textfiles. I dont need the client to specify what type of file it is just send it in byteform or whatever so that the server can write it to disk.
I get a migraine from all the different types of input/output streams and i dont know which one to use and so on.
If anyone has a good tutorial or example code somewere (seems to me this should be considred very basic stuff) please enligthen me :-)
all help will be appreciated
thanx
/Eric

Yep, O rielly - Networking for Java, not sure exact title, or any basic JAva network book. They start out with a simple app and over chapters add to it, you could stop where you want.....

Similar Messages

  • Need help to Configure FTPS connection for File Sender Adapter

    Hi,
    I want to Configure, FTPS connection (Secured Connection) for File Sender Adapter. Could anyone please guide me, what Information I require to configure. I just want to know what Information should I request the team inorder the configure FTPS so that it can be deployed properly.
    I have checked with [SAP Help Link|http://help.sap.com/saphelp_nw04/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm] and while configuring the communication channel found that I need Keystore and the X.509 Certificate and Private Key.  which needs to be deployed on the J2EE server by using the Visual Administrator.
    Is there anything else, I need to configure.
    Any help would be appreciated in this regard.
    Thanks & Regards,
    Varun.K

    The basic things are Certificate/Keys which you already know. Usually it is enough for running a sceanrio.
    However, if you have additional requirements, like FTPS for "Connection Security" for encryption, then you may need additional details like commands. Rest all settings are same as FTP.
    Regards,
    Prateek

  • I am confuse to choose right technology for file sending?

    Dear all
    i am working in medical transcription project in that we have to send and receive more doc file and voice file from various client (web client and desktop client).
    i have three three technology which makes me confusion
    1. RMI with NIO
    2.servlet with URL class in client
    3.SAAJ with attachment[i dont know much about this]
    so please suggest me which is the right technology for file sending and receiving...the file may maximum 20 MB

    It depends if you have a valid reason to use web services. If you are providing a web front end to your application for clients to use then you could just use a standard file upload procedure, I have used apache commons and it works well for this.
    If your requirements indicate that a web service call is the answer as you have some system-to-system connectivity then I think you will need to use saaj and add the file as a SOAP attachment, as embedding 20MB of binary data into a string field on a standard SOAP message will probably cause the JVM to run out of memory.
    Cheers

  • Cant do a file get from external server using file sender adapter with ftp

    Hi all,
    Up until now our company has only used the file sender adapter with ftp protocol to get a file from our XI server for processing and input the file into an integration process
    I have a requirement to do an ftp file get from an external server
    From our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...).  So all firewall issues and communications are fine
    Unfortunately I cannot currently pull files from the external server using the XI file adapter with ftp protocol from the XI development server AWB017
    FTP Connection Parameters: External server name using port 21, Data Connection is Passive, No security, I supply a userid and password
    Processing Parameters: Processing Mode is Archive (I tried test but this did not work either)
    No messages appear in the RWB
    Is there something else that I need to set up in order for the external ftp get to work via the XI file adapter?
    Regards,
    Mike

    Thanks for your responses.
    I have found the error messages in the File Adapter Monitor
    Scenario 1
    When I prefix the source directory with a forward slash, eg <b>/Folder/Subfolder</b> the error message is as follows
    <b>EST: Error: Error connecting to ftp server 'ip address': FTPEx: /Folder/Subfolder: The system cannot find the path specified</b>
    Scenario 2
    When I DO NOT prefix the source directory with a forward slash, eg <b>Folder/Subfolder</b> a different error message is returned
    <b>Error: Retrieving file 'FILENAME.XML' failed unexpectedly: FTPEx: Folder/Subfolder: The system cannot find the path specified</b>
    At least in this scenario the adapter has been able to identify the file on the external FTP site but cannot retrieve it
    Questions
    I thought that the backslash prefix for the source directory was mandatory but I am receiving an error in each scenario
    I receive the same error message whether the Processing Mode is 'Archive' or 'Test'
    The logs on the external ftp server seem to indicate that I am simply connecting, sending username and password then quiting straight away. I am not issuing any commands that they can see
    I thought that being a Sender adapter it would inherently execute a Pull or Get command
    To recap, from our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...). So all firewall issues, communications, userid and password are fine
    Has anyone experienced these issues?
    Please advise on next course of action?
    Regards,
    Mike

  • UDF to get the filename for File Sender Adapter

    Hi,
    I had an requirement to get the  the Filename and map to the  target payload.
    I had configured the File Sender Adapter settings in the ID
    This is the following UDF i got from SDN.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName;
    But when iam using this UDF iam getting an error
    RuntimeException in Message-Mapping transformation: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_ORDER_CRS_OB_SAP_PROXY_IB_ method Filename$[com.sap.aii.mappingtool.tf3.rt.Context@54e154e1]
    Please help me in correcting the error.
    Thanks
    Srinivas

    Hi Jayson,
    actually, in the interface mapping, it doesn't give exception.
    The DynamicConfiguration is a constant retrieved from the container object, so it will never be returned as null (given that the container object was instantiated).
    Just the retrieved value will be null (since it was not previously set), but no exception occurs.
    In the message mapping, the container object is never instantiated, and that's the reason for the NullPointerException.
    Regards,
    Henrique.

  • SAP PI Table which stores Dynamicconfiguration(filename) for file sender

    Hello All,
    What is the SAP PI table in which SOAP header elements are getting stored. In my scenario, i need to find out the message ID for a specific file name which is picked by file sender, as file name is stored under Dynamicconfiguration of SOAP header node...
    Regards,
    Sreenivas.

    Hi Sreenivas,
    I am not sure if I have understood your requirement correctly but can't you achieve this using a UDF:
    String headerField;
    java.util.Map map;
    AbstractTrace trace=container.getTrace();
    map = container.getTransformationParameters();
    String key = "MessageId";
    headerField = (String) map.get(key);
    return headerField;
    Let us know.
    Regards,
    Shweta

  • File selection sequence in the FTP connection for File Sender Adapter

    Hi,
    I have a file to Proxy scenario using FTP connection parameters.
    If there are multiple files in the sender folder, XI picks up the files randomly with no processing sequence.
    I want XI to pick up the files based on the date time stamp meaning the  oldest file created in the folder should be processes first and rest all in sequence there after.
    I know processing sequence can be set for NFS connection but not for FTP .
    Please suggest if there's any way to make this work.
    Thanks in advance.
    Thanks and Regards,
    Amit Bhagwat.
    Edited by: Amit Bhagwat on Nov 4, 2009 5:17 AM

    Hi
    For the Transport Protocol "File Transfer Protocol (FTP)" files are always processed in ascending alphabetical order
    If you want the file to be processed in sequence then you can use Quality of Service EOIO in the sender adapter.
    The files are processed in the sequence they are picked up.
    otherwise use BPM for File Sequencing..
    Refer the following Threads
    FTP Sender Adapter - Processing Sequence
    Processing Sequence issue of FTP protocol
    Regards
    Abhijit
    Edited by: Abhijit Bolakhe on Nov 4, 2009 10:32 AM

  • Changing source file for file sender adapter in adapter module

    Hi guys!
    3rd party partner send us files, which are not acceptable by file adapter, so we need to implement (I suppose) adapter module in file sender adapter to correct the file format before it is taken by standard adapter. I have no experience in this development field. Could you give me:
    1, whether it is possible (changing file contents before it is taken by standard file sender adapter)
    2. any ideas, where to start with the development (pdf with info etc.)
    Thanx a lot!
    Olian

    <i>2. any ideas, where to start with the development (pdf with info etc.)</i>
    >>>>>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81
    <i>1, whether it is possible (changing file contents before it is taken by standard file sender adapter)</i>
    >>
    yes you can achieve this in the logic in a module

  • Users for File sender/reciever Channel

    Hi,
    As i understand, there is a user that is used internally in file sender/reciever channel to read/write a file.
    Can someone tell me what are those users?

    Hi
    Genral rule for any adapter needs username / login == destination system username / password which has credentials to perform u r required action.
    So bettter use that user pass and check in the destination system and use the same in XI it will work as it is
    rgds
    srini

  • Cisco Smart Call Connector / Advanced Client / Server for UC500

    Would like to hear from Cisco:
    Is there still development in progress on Cisco Smart Call Connector, the advanced client, server and operator involving compatibility and support for Windows 8 / Outlook 2013 / and IE 10 32 and 64 bit ?
    Please vote this up if interested !

    jeliasoncisco wrote:Hello. I have a growing practice selling UC500 and would like to know this too. Cisco, please keep selling and developing this. Thanks a million!
    Check forums here or talk to your Channel Account Manager.
    Cisco doesn't care for the UC500 anymore and will not continue selling it for much longer.

  • Home server for file sharing without SSL certificates?

    Hi,
    I am wanting to use this server to set up a home network...
    Mainly I just want to share document, video and music files from my iMac with multiple iOS devices and PCs in the house.
    Can I use this server to set up such a network without purchasing SSL certificates and such?
    Thank you for your help!
    Tiffany

    Sharing with iOS devices without SSL is - if I recall correctly - problematic, but you can have an SSL certificate without purchasing. Just open Keychain Access, click the Keychain Access menu item in the top of the screen and choose one of the options in the Certificate Assistant drop down menu.

  • Use macbook as server for files while traveling with iPad

    Ill be traveling on an extended road trip, and would like to leave my Macbook Pro home, and only take my iPad.
    Id like to be able to access all my files on the Macbook via internet with the iPad. Is it possible ?
    Message was edited by: yuri2

    Any computer can be hacked.  Passwords can be bypassed.
    I would reduce the amount of sensitive information on your iPad to the absolute minimum.
    According to media reports, law enforcement officials (who can sometimes also be criminals) have tools to hack into handheld devices.
    http://www.cafemom.com/group/99198/forums/read/13882623/Michigan_State_Police_ab le_to_hack_your_cell_phone_during_traffic_stops

  • How the DT should be for File sender

    Hi,
    I have a follwiing XML file and I need to create a data type. how would be the strcture of the DT should be?
    Req
    ...Type
    ...A
    ......Name
    ......City
    .../A
    ...B
    ......region
    .../B
    ....C
    ......Parameters
    ........parameter
    ..........name
    ..........value
    ........./parameter
    ........parameter
    ..........name
    ..........value
    ........./parameter
    ........parameter
    ..........name
    ..........value
    ........./parameter
    ........parameter
    ..........name
    ..........value
    ........./parameter
    ........parameter
    ..........name
    ..........value
    ........./parameter
    ......./Parameters
    ..../C
    /Req
    The follwing node is repeting... Do I need to create the DT same as the above strcuture?
    ........parameter
    ..........name
    ..........value
    ........./parameter
    Thanks
    Rajeev

    Have your Datatype format as shown below:
    Have the occurence accordingly....
    Looking at your requirement every node from Req to Parameters may have occurence as 0..1
    Parameter will have 0..unbounded
    Name and Value will again have 0..1
    Req
    ->Type
    -->A
    --->Name
    --->City
    -->B
    --->Region
    -->C
    --->Parameters
    >Parameter
    >Name
    >Value
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Sep 1, 2009 7:31 PM

  • Can't select related integration server for bs

    Dear All,
             I got new xi server.i am doing file 2 idoc scenario.i created tech system and business system for r3_800.Next i tried to create business system for file sender.while creating business system for file sender i have given logical system name.it's given error as "already one business system is there with that logical system name".After that while checking by mistake i deleted the default business system which came with installation.Now i can not select related integration server during creation of technical and business systems.Earlier it was showing 2 options NONE and D10.Now it's not showing integration server D10.how can i get back that default business system to select related integration server option????
    any help would be appreciated.Thanks in advance.
    Vinay

    solved problem.......
    Maintaining a Business System for the Integration Server
    http://help.sap.com/saphelp_nw04s/helpdata/en/9b/da0f41026df223e10000000a155106/frameset.htm
    Vinay

  • File sender adapter Module Error

    Hi Everybody,
    I have developed an adapter module for file sender to rename the file name which is picked from the directory and I am getting an error
    "Attempt to process file failed with java.lang.NullPointerException".
    Can anybody tell me why is this error?
    Thanks,
    Zabi

    Hi,
    first check that module has been succesfully executed or not .This you can check in RWB .
    Secondly go in the file adpater and click on to module tab and check
    1-there will be two things one will be adapter module that you have depolyed. other one will be call sap adapter.
    2- make sure that call sap adapter should come after the module you have deployed. and having the key value less then adapter module (let say your adapter module is having the key value 1 and  call sap adpater is having the key value 0 then you need to change the key value there)
    Thanks
    sachin

Maybe you are looking for

  • How do i get rid of the red x on my speaker icon and that dam messages "the speaker is unplugged"

    HP Pavillion p6-2011 - speaker icon with red x along with message the speaker, headset, or headphones is unplugged but the speakers set is securely plugged in and i've try every method to resolve this! any taker? 

  • SELECT and detail Region in IE

    The following code work great in Firefox but not in IE. Basically what I'm doing is search a DB with a string and populating a Select menu with the results. Once the select menu populated, the user chooses a name and the details of that employee is d

  • Am I building the right number of pages ?

    Hi Everybody, It is my first time here and actually I'm building my very first site. This site will be a portifolio of my jobs. As I'm a multimidia man .. lol and I'm not a teenager ... more lol , I have a lot of jobs to show. I do graphic design, il

  • Need to download lightroom 2, i have CD but no CD reader on computer... help

    So I have an old version of lightroom on a CD. Lightroom 2. I recently purchesed a new mac, but it doesn't have a CD reader, so I can't install it with the CD, is there any way I can install Lightroom 2 through online? I have the serial Number for th

  • QWWAS issue

    Hi, I have created a BAPI for sales order creation in one of the R/3 system. On top of that i created xeclsius report and used "Web service connection", and mapped the input and output fileds. when I click preview it working properly, but when next t