FTP adapter should send file as binary attachment

Hello,
we user XI 3.0 and want to implement the following scenario:
- FTP adapter has to read binary files (*.tif and *.xls)
- Receiver adapter is an ABAP proxy
We want to get the file content as attachment to the message or as binary string in the payload. Is it possible? I Think the FTP adapter can only handle the file content over as complete message payload and not as an attachment. File content conversion is not possible because we read non textual files. Do any adpater modules exist that could swap the payload to attachment? In my point of view the PayloadSwapBean can only handle the other way.
Any suggestions?
Thanks in Advance,
Daniel

Hello,
with the file adapter in NFS mode it is easy to attach one file as payload and further files as attachment.
But as I stated above we use the FTP mode (and we have no NFS server!). The binary file is read by the adapter and assigned to the message as main payload. The proxy inbound handling is not able to parse the payload because it will see it as application/xml.
I'm looking for one of the following solutions:
1) swap the content of the main payload to an attachment. This can be processed at the proxy
2) perhaps it is possible to change the mime type of the main payload to reflect the xls or tif content with the MessageTransformBean. But what has to be done at the proxy inbound side?
Best regards,
Daniel

Similar Messages

  • FTP adapter should take file path and name at runtime..

    Hello All,
    I have requirement of getting the file from remote machine into local machine..thinking FTP adapter should help me to do this..
    I dont need to poll the remote directory. rather I will pass the exact path and name of the file to be fetched during runtime as an input to the bpel process.
    How to configure the FTP Adapter to receive the file path runtiime and gets it to local machine.
    Is it doable using ftp adapter..?
    Thanks
    Saikrishna

    Hello Anne,
    Thank you for the help.
    I am not able to call a adapter partner link using invoke activity..I am facing variable type conflicts.
    modified the
    OutboundFtpHeaderType wsdl to take file name and directory as:
    <complexType>
    <sequence>
    <element name="*fileName*" type="string"/>
    <element name="*directory*" type="string"/>
    </sequence>
    </complexType>
    Using Adapters tab of Invoke activity created a variable:
    <variable name="outputVariable"
    messageType="client:FTPadapterResponseMessage"/>
    <variable name="*filePath*" messageType="ns2:OutboundHeader_msg"/>
    Using Assign Activity, assigned the input varibales to the ftp outboundHeader variable:
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:FTPadapterProcessRequest/client:*directory*"/>
    <to variable="*filePath*" part="outboundHeader"
    query="/ns2:OutboundFTPHeaderType/ns2:directory"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:FTPadapterProcessRequest/client:*filename*"/>
    <to variable="*filePath*" part="outboundHeader"
    query="/ns2:OutboundFTPHeaderType/ns2:fileName"/>
    </copy>
    </assign>
    Used the created variable in the invoke activity as a input paramater to the partner link:
    <invoke name="Invoke_1" partnerLink="ftpAdapterTest"
    portType="ns1:SynchRead_ptt" operation="SynchRead"
    inputVariable="*filePath*" bpelx:inputHeaderVariable="filePath"/>
    <reply name="replyOutput" partnerLink="client" portType="client:FTPadapter"
    operation="process" variable="outputVariable"/>
    I am getting an error in invoke activity:
    Variable type does not match the input type.
    Thanks
    Saikrishna

  • FTP Adapter Location - sending alerts

    Hi,
    we have a FTP adapter to receive files from FTP.
     but i have a requirement like, if the file is not received in the specific time frame , then biztalk orchestration should send an error alert. 
    Is there any possibility to do it in Biztalk adapter / orchestration?
    Please help me.
    Vinoth

    Hi,
    You can leverage ESB Exception Notification service ,if you are using ESB Portal for Exception handling .
    Just what you need to do is to useEpression shape and throw exception shape along with delay shape .
    Define a variable of type System.exception and use it in thow exception shape.
    For refenerce you can use
    http://stephenomo.blogspot.ca/2011/10/force-exception-with-throw-exception.html
    Configure Email subscription at your Portal for specific Application .
    Another way is to use SMTP message along with delay shape in Orchestration or Using Failed message rounting which will be subscribed by another Child Orchestration responsible for sending messages .
    Thanks
    Abhishek

  • OSB error while generating business service for FTP adapter Sync Get File

    Hi All
    I am trying to generate a business service from SOA Suite JCA FTP adapter Sync Get File, but i am getting this exception for no reasons (Rest operations list file, get file and put file are working)
    Invalid JCA transport endpoint configuration, exception: java.lang.NullPointerException     Unknown ALSB Conflict.
    Is this a bug in eclipse, can any body help me. Thanks
    Sorry Forgot to mention eclipse version...
    Eclipse Platform
    Version: 3.6.2
    Build id: M20110210-1200

    Ok,
    bcoz of this issue, i had to code the entire interface in OSB console. It runs fine in OSB console (i was able to test it successfully).
    Is this a bug in eclipse or only i am facing this issue? Has anybody tried to create a business service from JCA FTP Get Synchronous jca file?
    <adapter-config name="FTPReadMOMFileOnRMSDB" adapter="FTP Adapter"
         wsdlLocation="../wsdl/FTPReadMOMFileOnRMSDB.wsdl"
         xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
         <connection-factory location="eis/ftp/RMSDBFtpAdapter" />
         <endpoint-interaction portType="SynchRead_ptt"
              operation="SynchRead">
              <interaction-spec
                   className="oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec">
                   <property name="DeleteFile" value="true" />
                   <property name="PhysicalDirectory" value="/MOMFiles/output" />
                   <property name="FileName" value="*" />
                   <property name="FileType" value="binary" />
              </interaction-spec>
         </endpoint-interaction>
    </adapter-config>
    One more doubt? The PhysicalArchiveDirectory path can be on the FTP server something like: /MOMFiles/archive. Or do i have to use the Put operation to move it to /MOMFiles/archive directory. Currently OSB console and eclipse do not accept FTP path for this parameter and want me to specify a local directory on server. Thanks

  • Configuration FTP Adapter XML - Sender

    Hello:
    I need to configure dynamically the IP, directory and file name of the FTP through a Sender file/FTP adapter; in other words, I need to set those parameters in the XML message. The IP address, directory and file name of the FTP are obtained in the first message and match with another, which is sent to the adapter (communication channel) to get the data of a file.
    I would appreciate your help.
    Thanks a lot!

    Hi Julio,
    Configuring dynamically the parameters for FTP sender adapter is not possible, due to two reasons,
    1. FTP sender is a pull adapter, so you cannot set parameter (in runtime) and fetch the data.
    2. FTP sender is a async adapter
    Try to have a soap sender with AXIS framework (thought i have never tried, but this looks promising).
    Regards
    Suraj

  • Preview 6.0, no send file as email attachment?

    Does anyone know where they put the send file command?  I need to email pdfs from Preview all the time.
    There used to be a "send file as email attachment" command under the edit menu.  It's gone.  Anyone have any suggestions?

    Handsomfreddy wrote:
    Sorry, I dont understand what you are referring to. Can you calify please "undo the changes."
    Thanks,
    Andy
    Didn't you just post this (below)
    Handsomfreddy wrote:
    Very bizarrely Parallels had changed this Mail Preference to some weird Windows program [Disk Clean up or something equally random] thus preventing me from emailing anything from any program.
    That's the change I am referring to.

  • Send file as email attachment not working

    any help would be greatly appreciated...
    When I click "send file as email attachment" it will open outlook with the PDF attached but when I click send on the email,  the email closes like it is sent but never actually gets sent (nothing in sent items and recipient never gets the email)
    Adobe Acrobat 11 Pro (Creative Cloud Suite installed)
    Outlook 2013

    Hi sandyw26405588,
    Could you please try sending PDF as email attachment via another email apart from Outlook.
    Are you able to send the file successfully?
    Also, go under 'Help> Check for Updates' and ensure if you are using the latest version of Acrobat XI i.e. 11.0.10
    Have you tried sending any other PDF via Outlook?
    Let me know.
    Regards,
    Anubha

  • Unable to send file in binary mode to ftp server using AIR application

    Hi,  Can any one help me. i am trying to send local files to ftp server  in binary mode from AIR application using sockets.
    I cant use PASV mode for this FTP server because security restrictions. when i am trying to send Binary command i am always getting
    error code 500 which is unrecognized command. I googled for solutions but i cant find any one using Binary mode to send data every example is using PASV mode to send
    file.
    code example:
    private function upload():void{
    sendCommand("binary ");
    private function sendCommand(arg:String):void {
                                            arg +="\n";
                                            s.writeUTFBytes(arg);
                                            s.flush();
    in response i am getting unrecognized command.

    I'm successfully using an ftp example from http://http://projects.maliboo.pl/FlexFTP/
    that I converted to spark and uses a popup progress window.
    If you don't need to use sockets I can post a sample project.
    I believe I still connect with PASV, but have no problems sending Binary files.
    I don't think they're commands that are dependent on each other

  • FTP Adapter batching multiple files in one send

    Hello,
    I'd like to set up a process in XI to allow me to group all files into one batch message and send the group all in one send every thirty minutes.  This is an FTP adapter.
    Do I need to work through a BPM to do this?  Is there a good blog or forum topic on this?
    Thanks,
    Matt

    That is exactly what I was looking for.  Thanks.
    I will test with the BPM and if the performance becomes and issue I will try your suggestions.
    Thanks,
    Matt

  • Sender FTP Adapter - Archive faulty files not working

    Hello,
    We are on SAP PI 7.11 SP 06
    We have a scenario where we are reading CSV files from a FTP location.
    File Sender Adapter is polling the FTP location for CSV files, if there
    is any error during FCC we need to move the faulty file under a
    particular directory on FTP server.
    Archive faulty files tick is click under the communication channel and
    also the required directory is specified, but the functionality is not
    working.
    If there is a faulty file it is just adding a rejected prefix to the
    file and keeping the file in the polling directory. It is not moving
    the file in the rejected directory specified in the communication
    channel.
    Thanks & Regards,
    Rahul Nawale

    Are you trying to archive the file on the same FTP server or a different FTP server? Archiving the faulty file on the FTP server might not have expected results. And if you are trying to archive the file on a separate FTP server, it wouldn't probably be achieved using the simple file adapter functionalities.
    The best way would be to archive the faulty files to an NFS location on your PI server (this will certainly work, even if it's FTP mode) and then use a separate script or PI interface (file tunneling) to move these files from PI server File System to FTP archive location.
    Regards,
    Suddhasatta

  • Sending File as an attachment

    Dear all,
    I need to pick the file from FTP and the contents of file should be sent as an attachment. I know how to send content of file as an attachments.
    But the challange for me here is, the attachment file name should as we picked from FTP.
    Ex: Suppose we are picking 26062008.txt file from FTP, then the attached file name should also be 26062008.
    Please guide me about how to achive this functionality.
    Regards,
    Raghvendra.

    Hi Raghavendra,
    You can easly achieve this by writing a Module wherein you can access the file name and change the attachment name to file name.
    you can refer the sample code in
    https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=64389779
    thanks,
    Sunil Singh

  • FTP adapter not picking files

    Hi
    I trying to get files from a remote FTP server
    but the FTP adapter configured is not able to pick up files from the remote folder
    using
    soa 11.1.1.3
    filezilla as FTP server
    +<Sep 5, 2011 5:32:56 PM GMT+05:30> <Error> <oracle.soa.b2b.transport> <BEA-00000+
    +0> <[IPT_FileRecMonitorError] Error in ftp or file receiver monitor.>+
    FINE:  Ftp Adapter FTPManagedConnectionFactory::getPasswordCredential using mcf
    for credentials
    FINE:  Ftp Adapter Managed Connection Created
    FINE:  Ftp Adapter Adding Event Listener
    FINE:  Ftp Adapter Connection Created
    +FINE:  Ftp Adapter Using locale=[null] for ftp server+
    +FINE:  Ftp Adapter FtpTimestampParserImpl::parseTimestamp returned [Wed Aug 31 1+
    +9:40:00 GMT+05:30 2011] for [Aug 31 19:40], time offset=[0]+
    +FINE:  Ftp Adapter Using locale=[null] for ftp server+
    +FINE:  Ftp Adapter FtpTimestampParserImpl::parseTimestamp returned [Fri Sep 02 1+
    +8:23:00 GMT+05:30 2011] for [Sep 02 18:23], time offset=[0]+
    +FINE:  Ftp Adapter Using locale=[null] for ftp server+
    +FINE:  Ftp Adapter FtpTimestampParserImpl::parseTimestamp returned [Fri Sep 02 1+
    +8:33:00 GMT+05:30 2011] for [Sep 02 18:33], time offset=[0]+
    +FINE:  Ftp Adapter Using locale=[null] for ftp server+
    +FINE:  Ftp Adapter FtpTimestampParserImpl::parseTimestamp returned [Mon Sep 05 1+
    +3:13:00 GMT+05:30 2011] for [Sep 05 13:13], time offset=[0]+
    +FINE:  Ftp Adapter Using locale=[null] for ftp server+
    +FINE:  Ftp Adapter FtpTimestampParserImpl::parseTimestamp returned [Mon Sep 05 1+
    +3:45:00 GMT+05:30 2011] for [Sep 05 13:45], time offset=[0]+
    FINE:  Ftp Adapter Sending event: 1 with: oracle.tip.adapter.ftp.FTPConnection@8
    +68852+
    can someone help me on this
    -Regards
    adiKsystime

    Hey Naresh
    thanks for your earlier reply
    but I have no luck yet
    soa_server logs show
    FINE:  Ftp Adapter Clearing Event Listeners
    FINE:  Ftp Adapter FTPManagedConnectionFactory::getPasswordCredential using apps
    erver credentials
    FINE:  Ftp Adapter Managed Connection Created
    FINE:  Ftp Adapter Adding Event Listener
    FINE:  Ftp Adapter Connection Created
    FINE:  Ftp Adapter Sending event: 1 with: oracle.tip.adapter.ftp.FTPConnection@1
    +47dc09+
    FINE:  Ftp Adapter The candidate set size in matchManagedConnection [1]
    FINE:  Ftp Adapter FTPManagedConnectionFactory::getPasswordCredential using apps
    erver credentials
    FINE:  Ftp Adapter Connection Created
    FINE:  Ftp Adapter Sending event: 1 with: oracle.tip.adapter.ftp.FTPConnection@1
    d469b0
    FINE:  Ftp Adapter The candidate set size in matchManagedConnection [1]
    FINE:  Ftp Adapter FTPManagedConnectionFactory::getPasswordCredential using apps
    erver credentials
    FINE:  Ftp Adapter Connection Created
    FINE:  Ftp Adapter Sending event: 1 with: oracle.tip.adapter.ftp.FTPConnection@1
    +040f85+
    FINE:  Ftp Adapter FTPManagedConnection::destroy called, closing physical socket
    and No luck yet in picking up the remote files
    regards
    adiKsystime

  • Configuring FTP adapter using .ppk file

    Hi:
    I am trying to configure FTP adapter in Weblogic for making a secured connection. My destination system provided a .ppk file, username and password to make a connection. I tried using both the Authentication Type PASSWORD as well as PUBLICKEY, but in both cases i am getting this error
    <part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'FileListing' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. FileConsumer:FTP_ListFiles_out [ FileListing_ptt::FileListing(Empty,filelist) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: Error in establishing a session with SSH Server.. Error in establishing a session with SSH Server.. Unable to establish a session with the server. Please ensure hostname and port specified to login to the server are correct. Please make sure that the JCA connection factory and any dependent connection factories have been configured with a sufficient limit for max connections. Please also make sure that the physical connection to the backend EIS is available and the backend itself is accepting connections. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary>
    </part>
    <part name="detail">
    <detail>Too many authentication failures for testuser</detail>
    And in SOA logs i am getting this below error
    ####<Apr 30, 2013 1:46:05 AM EDT> <Warning> <Connector> <[email protected]> <soa_server1> <orabpel.invoke.pool-4.thread-3> <<anonymous>> <BEA1-4A34E1F57560E2DF58E4> <43b21ccaefeebde3:1e7743d9:13dfccfff26:-8000-00000000008dee9f> <1367300765147> <BEA-190032> << eis/sftp/qwer > ResourceAllocationException thrown by resource adapter on call to ManagedConnectionFactory.createManagedConnection(): "BINDING.JCA-11447
    Error in establishing a session with SSH Server..
    Error in establishing a session with SSH Server..
    Unable to establish a session with the server.
    Please ensure hostname and port specified to login to the server are correct.
    ">
    SOA Version: 11.1.1.6, Weblogic Version: 10.3.6
    Regards
    RK

    As you suggested, you can write a custom adapter where you can do duplicate check, file move to duplicate directory and email notification.
     But this is trying to cover many business processes under adapter functionality whose intend purpose is just to
    work with a transport, speak the transmission protocol and
    transfer the file.
    Custom adapter:
    But still you can do these functionalities in custom adapter.
    For article, white papers and webcast for developing custom adapter refer this MSDN page:
    Developing Adapters using the BizTalk Adapter Framework
    You can still use BizTalk adapter wizard which gives you the template files including registry key required for registering the custom adapter. This may need Visual Studio
    2005 to get the template project created. The export Visual Studio 2005 to your latest version to get the template for your latest version. And write your FTP library code in the placeholders.
    Or refer the SDK for sample custom adapter and replace those custom functionalities to yours to make and update SDK samples work for you.
    http://biztalkadapterwizard.codeplex.com/releases/view/3892
    No to custom pipeline:
     Your functionalities are not meant for custom pipeline processing. Pipelines are meant for preparing the received message for further processing or preparing the message/file to be sent out. Custom pipeline is not the correct place to write
    your functionalities.
    Try to isolate the functionalities and handle it different modules and don’t pack everything in custom adapter. For example, you can just use custom adapter
    to FTP the file, if it’s a duplicate file transfer the file to different folder location. You can (or ask the team who own the FTP server) to send an email if the duplicate folder receives a file. This would improve the performance of the adapter.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • FTP Adapter pickup the file meanwhile the file is transfering

    Hello,
    we have a follow problem: We transfer some big files manually in a ftp directory. If the adapter connect the directory concurrent as we transfer the file, he'll pick up the incomplete file and processed this. The problem is now, we get an error message in XI Monitoring. After this, we put the file form archive directory (same server) in the "normal" directory and the ftp adapter pick up the file, all is okay. My question is: It is possible, you can create a check or a parameter setting, if the file is complete transferred, first then could start the ftp adapter.
    Remark: We increase and decrease the polling parameter and we're teseted with changing the paramter connect mode, without success.
    Thanks for your help.

    Hi,
    You can execute a shell script to change the file name of the completed file . So the job of script is to rename the complete file.And then give this file name in the File Adapter configuration.
    Did you check the option of Read-Only Files ( if you are using NFS protocol) ? If so uncheck and try it..
    Regards,
    Moorthy

  • 10.1.3.4 - FTP adapter error while file get

    I created an esb service that reads from a remote server and processes the file locally. It works fine in dev. When I migrated my esb flow to a test environment it is now throwing some error.
    <AdapterFramework::Inbound> Adapter Framework instance: OraESB - successfully completed endpointActivation for portType=Get_ptt, operation=Get
    <FTP Adapter::Inbound> Connection Created
    <FTP Adapter::Inbound> Unable to list files from '/apps/EDI/Archive/OutBound/Customer' directory on 'corpapp10' server; FTP command[NLST] returned unexpected reply code : 550
    <FTP Adapter::Inbound> Poller raising Alert for exception : ORABPEL-11430
    Error in listing files in the remote directory.
    Unable to list file in remote directory.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    The dev remote server and the test remote server are different. I have done the obvious checks about server name, permissions, directory names etc. I can login to the server using windows ftp however when I go the inbound directory and type in ls, i get the following error - 550 Arguments too long. I have some 37000 files in the directory. ls -l works fine.
    I switched the ftp adapter to poll a different directory which only has 1 file, but it still gives the same error. However in this case, the windows ftp is able to list the files using ls command.
    any idea how i can make this work ?

    i undeployed the esb project and deploying it again. Now even worse, nothing happens now. It has stopped polling at all. I just see the following message in the opmn.log, but none of the files get picked up.
    <FTP Adapter::Inbound> Connection Created
    <FTP Adapter::Inbound> Connection Created
    <FTP Adapter::Inbound> Connection Created
    To be sure, I deployed it to another environment (DEV) and it works ok there.

Maybe you are looking for

  • Dont want to show overall result in my report

    Hi Probably quite simple,  i just dont fint how to " NOT show overall result in my query"

  • As if java weren't hard enough on it's own merit..

    There's some voodoo I'm missing..or I missed the one document that goes over this, but I can't find any reference to it..please help? I'm getting inconsitent results compiling the same code. I'm building a chat applet (that will be client/server) to

  • Frame to PDF font conversion broken in upgrade to Frame 10

    I am using Adobe Garamond Pro font as body text.  In Frame 9, this worked fine, I was able to generate PDFs with correct text.  Now I have upgraded to Frame 10.  I generate the same file as PDF, and the body text looks good except for passages that h

  • Client automatically cache the data got from cache server?

    Hi expert, I have 2 questions about the client local cache. Would you please help to give me some suggestion? 1. Will client automatically locally cache the data got from cache server the first time and automatically update the data in local cache wh

  • BlackBerry NOT displaying images which are from an SSI

    Hi all - hoping someone knows the answer to the following, or where I may be able to go to get the answer. I'm working on a website that has SSI (Server Side Includes) and CSS.....we have an SSI for the header, footer, and navigation sections of the