File - Webservice - File

Hi All,
I am trying this simple scenario:
  1. read file
  2. pass input towards webservice
  3. write response into file.
BPM seemed the correct solution for this.
However, if I try to create the interface mapping, the integration builder start complaining that I am mapping an asynchronous interface towards an synchronous interface and that is not possible.
Any-one an idea how I should solve this problem.
Thanks in advance
Kind regards
Joris

you have to deal with abstract interfaces only in the bpm.
Let's call BSFILE the business system/service reading and writing to file, and IP1 your Integration Process (ccBPM), so in the ID you'll something like:
BSFILE -> Outbound Aysnch
going to
IP1 -> Abstract Asynch (web service request)
and
IP1 -> Abstract Asynch (web service response)
going to
BSFILE -> Inbound Asynch
In your IP1, these steps:
- receive asynch
- tranformation, mapping file to ws request
- send synch to ws
- tranformation, mapping ws response to file
- send asynch
That should work!
Regards,
Alex
P.S. In ID, I was missing an important thing:
IP1 -> Abstract Synch (web service call)
going to
WSP -> Synch
where WSP is your web service provider with the relevant channel
Message was edited by: Alessandro Guarneri

Similar Messages

  • Error in file-webservice- file (Error: java.lang.NullPointerException)

    Hi everybody,
    I have configured a file-webservice-file without BPM scenario...as explained by Bhavesh in the following thread:
    File - RFC - File without a BPM - Possible from SP 19.
    I have  used a soap adapter (for webservice) instead of rfc .My input file sends the date as request message and gets the sales order details from the webservice and then creates a file at my sender side.
    1 communication channel for sender file
    1 for receiver soap
    1 for receiver file
    Error: java.lang.NullPointerException
    What could be the reason for this error
    thanks a lot
    Ramya

    Hi Tanaya,
    I monitored the channels in the Runtime work bench and the error is in the sender ftp channel.The other 2 channel status is "not used" in RWB.
    1 sender ftp channel
    1 receiver soap channel
    1 receiver ftp channel.
    2009-12-16 15:02:00 Information Send binary file  "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS EO
    2009-12-16 15:02:00 Information MP: entering1
    2009-12-16 15:02:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean
    2009-12-16 15:02:00 Information RRB: entering RequestResponseBean
    2009-12-16 15:02:00 Information RRB: suspending the transaction
    2009-12-16 15:02:00 Information RRB: passing through ...
    2009-12-16 15:02:00 Information RRB: leaving RequestResponseBean
    2009-12-16 15:02:00 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:02:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:00 Information Trying to put the message into the call queue.
    2009-12-16 15:02:00 Information Message successfully put into the queue.
    2009-12-16 15:02:00 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:02:00 Information The message status was set to DLNG.
    2009-12-16 15:02:02 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:02 Error The message status was set to FAIL.
    Now, the error is internal server error.What can I do about this?
    thanks a lot
    Ramya

  • File-webservice-file , error in BPM workflow

    Hi GURUs,
                          I am working on file-webservice-file scenario. I have followed the blog /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit . In my BPM workflow I am getting error right at the receive step it self and not proceeding to next step. Error in workflow log saying, no proper message id for the outbound abstract interface. Main thing here is we dont have any value passing fields in our outbound request message type as well as in the request in the wsdl. In these two emssagess we have only on element hich is not of any type. Is this the reason for the error I am getting. 
    any help ill be appreciated,
    Regards,
    Reyaz

    Means, in the outbond request message type and the request message type in the WSDL .  in these messages we dont have a single field which can carry some value. We have an element which is not of any type like string , number etc..
    Regards,
    Reyaz
    Edited by: Reyaz  Hussain on Feb 27, 2009 3:37 PM

  • Need inputs for FILE-Webservice-File using BPM scenario

    Hello All,
    can any one tell me how to do the file-webservice(soap adapter)-file with out BPM.
    If we cant do with out BPM then, please let me know after importing the WSDL file, how many Message interfaces i need to create what are they.
    Thanks and Regards,
    chinna

    Hi Chinna,
    Check this links for the receiver side SOAP configuration
    http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    Sender side File adapter configuration is as usual
    > please let me know after importing the WSDL file, how many Message interfaces i need to create what are they.
    It is a synchronous scenario so you need to create the two message interfacess for the sender (one is for request message and another is for response message). For receiver you don't need to create any message interfaces, because the WSDL internally having the two messages (request and response).
    Regards
    Ramesh

  • Transformations using BPM - File -webservice-merge-File

    Friends,
    I have a requirement something like this.
    1. i get the file through the sender file adapter
    2. one field out of those sent by the sender will be used to make a webservice call to get dateofbirth and name details.
    3. i need to merge these data (from file + webservice response) and send it to the receiver using FTP
    Can you please elaborate as to how we can achieve this?
    Thanks and Regards,
    Pavan

    Use a SOAP lookup;
    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    More about the lookup api - https://help.sap.com/javadocs/NW04S/current/pi/index.html

  • Error in File to File scenario

    Hi All,
    im trying out the file to file scenario [binary file using file content conversion]from SDN Wiki:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/main&
    On the runtime workbench, adapter engine is in red/error status due to error in the receiver comunication channel.
    The sender communication channel is working fine. During testing, my file is being picked up and deleted(processing mode set to delete).
    I am able to see the msgs in sxmb_moni and in Message Monitoring, the status is delivered.
    However, the receiver channel does not show any error msgs at all.
    Yday when i tested , i got the foll error msg:
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'EMP.Contacts.fieldFixedLengths' or 'EMP.Contacts.fieldSeparator' is missing
    However tdy i dont see any new error msgs during testing (no changes made to the recvr channel).
    Given that the sender communication channel is wrking, can i safely assume that file adapter is wrking fine. If not, how do i check the status of the file adapter [in RWB, i can see the file adapter  and various other adapters(with a grey diamond icon next to them). how do i interpret the status of the adapter?
    Would really appreciate if anyone can advice on how to troubleshoot this?
    Many thanx!
    cheers
    Prachi
    I hv tried doing a full cpa cache refresh.

    Hello Prachi ,
    I thinks its because of receiver File Processing Parameters,as you are considering here File Content Conversion.
    If your structure is like this
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:Proveedor_100011 xmlns:ns1="http://sap.com/xi/webservices/buyordint">
    <config>
    <directory>c:/tmp</directory>
    <filename>dynamicFile3.txt</filename>
    </config>
    <root>
    <string>Header;423423</string>
    <lines>
    <value>LINE;</value>
    </lines>
    </root>
    </ns1:Proveedor_100011>
    Then your content conversion is -
    RecordSet Structure: config,root
    root.fieldSeparator = ;
    root.endSeparator = 'nl'
    config.fieldFixedLenghts = 0
    config.fixedLenghtTooShortHandling = CUT
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    With Regards,
    Raju.
    Please give points if useful.....

  • Step by Step Guide Details for RFC to File and File to RFC scenario

    Hi Guru's
    Good day to you. I am tyring to develop some scenarios based on RFC adaptor. so i want to start up with basic scenarios like RFC to File  scenario(Here i just want to pull some data from SAP using RFC and put it in destination folder as an text file) and FILE to RFC scenario (Here i just want to take some data from the file and update into SAP).
    For doing these scenarios i would like to request you people to send me the step by step guide which explains me about the complete steps of configurations required to do the RFC to FILE scenario and FILE to RFC scenario.
    I found some scenarios and i am in confused state. so i request you to please put your experience to help me out.
    thanks in advance.
    Regards
    Raj

    Hi Aaron,
    I don't know your scenario and your ECC and PI versions but I learned how to use ABAP Proxy more than 1 year ago with the following tutorial:
    Edit--> The forum doesn't allow me to post external link, just search "ABAP Proxy Communication Scenario" in google and visit the 1st result
    The way to develop ABAP Proxys has changed a little if your PI is 7.1. In the ECC side, the transaction SPROXY looks much better too if you have a recent version of the ECC.
    Edited by: Marshal on Oct 8, 2009 5:08 PM
    I've found that SDN Document. Maybe the scenario is not the most simple to start with ABAP Proxy but is very well documented and is for PI 7.1. The document also handles the inbound and outbound proxys
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c00ca32e-f991-2b10-f5be-97114bd2b08f&overridelayout=true]
    Edited by: Marshal on Oct 8, 2009 5:22 PM

  • Help needed for file to file communication

    Dear all I am working on file to file adapter in XI 3.0 . I tried to different waysof flat file location C:\ and C:/ I am not soure witch one is currect and any time i am getting NO MESSAGE FOUND ! error in SX_MONI.
    and
    Any one have step by step clear procedure for File to File Adapter SAP XI 3.0.
    Thanking U,
    <b>Murali</b>.

    Hi Murali,
    first we need to uderstand how to do content conversion ( to convert flat files to xml format ) for which u can go through the following links :
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    http://help.sap.com/saphelp_nw04/helpdata/en/89/90fd3f0521c842e10000000a1550b0/frameset.htm
    then file to file scenarios:
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/43/25112ab6140b25e10000000a1553f6/frameset.htm
    Configuring sender file adapter:
    /people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    Configuring receiver file adapter:
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    going through all the given links you will not have any problems doing a file to file scenario with any constraints.
    Regards,
    abhy

  • Error reading product file driver files

    When attempting apply a large merge patch I receive the following error:
    Screening out files not valid for this installation...
    Determining valid on-site files...
    AutoPatch error:
    The following file is missing:
    /oracle/prodappl/pa/11.5.0/admin/driver/pasb038.drv
    AutoPatch error:
    Error reading product file driver files [complete; make tapes]
    AutoPatch error:
    Error determining valid on-site files
    Any ideas?
    I've tried using options=noprereq option, but that didn't help.

    - Try to restore the file from a backup you have Or just copy it from any other environment.
    - Make sure that you have included all pre-req patches in the merged file.
    I've tried using options=noprereq optionBy this you tell adpatch not to check for pre-req, use 'options=prereq' instead.

  • Now that I'm a paid up supporter Maybe you will fix Firefox and return "Close File" to File on the menu toolbar.

    I just degraded from Firefox 3.6 to 9.0.1 and found that one of the most useful tools is missing. On the Menu toolbar under File, "Close File" has been eliminated. Why? Why do I have to close the site I was looking at and go back to my Firefox home page and start all over? Why was "Close File" eliminated? It was one of the most useful tools in Firefox. I'm hoping I haven't gotten rid of the CD that has 3.6 install on it so I can upgrade to a great version of Firefox.
    Bob -
    ''[Personal information removed by moderator. Please read [[Forum and chat rules and guidelines]], thanks.]''

    Some menu entries in the main menu bar are hidden if you use the mouse and only appear if you use the keyboard to open the menu (Bug 626825).
    You can see the difference if you use Alt+F to open the File menu or other menus like the Edit menu (Alt+E) and Bookmarks menu (Alt+B) and compare that to what you see if you use the mouse to open the menu after you have made the menu bar visible by tapping Alt or by pressing F10.
    Add code to userChrome.css below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    /* Always show menu entries with class="show-only-for-keyboard" */
    #navigator-toolbox menuitem[class="show-only-for-keyboard"]:not([hidden="true"]){ display:-moz-box !important; }
    </nowiki></pre>

  • Deleting the data from logical file/unix file

    Hi all.
        I need to delete the all the data from logical file (application server file/unix file).But I dont want to delete the logical file ( only data in the logical file should be deleted, i.e making file empty)
    Thanks in advance.
    Cheers.
    sami

    Hi Sami,
    Refer thsi document https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4d7aeb7d-0c01-0010-fa8a-a4a8e8968a93.
    Regards,
    Flavya

  • File to File scenario

    Hi,
    I have a problem in file to file scenario in which the file is not getting transferred from source to target.
    Source communication channel - Transport protocol - NFS  | Process mode : Delete |  The file is picked but not able to delete from the directory.
    Error: File: d:\test\file.txt deleting after processing failed - retry
    The file is not transferred to target is it because of this CC is not able to delete the file. Does windows also have any authorization issue if so how should one check the authorization. I have the admin access of my system.
    Thanks.

    Hi,
    Firstly, Since the scenario works perfectly while using Test mode, so all your design & configuration are OK.
    Now, there can be Two reasons why PI is not able to delete the file and process it (during Delete Mode):
    (The Problem will persists if you use Archive Mode also)
    Prob 1. The directory is write protected or read only
    Prob 2. The file is write protected or read only
    Solution:
    If Unix System
    Soln for Prob 1. - go to the directory structure
    for ex: if directory where file is kept is /staging/Interface/PI/Test/inbox/
    then go to /staging/Interface/PI/Test/ and give command ls -lrt
    It will show the directory names with permisions.
    use chmod 777 inbox and the permissions willl be changed ( drwxrwxrwx )
    Soln for Prob 2. - Get inside  /staging/Interface/PI/Test/inbox/ and give command ls -lrt
    if the file does not have authorizations as (-rwxrwxrwx) give chmod 777 <filename>  and then give command touch <filename>
    If Windows System
    Soln for Prob 1. - Goto the directoty and right click on the folder and deselect the Read Only Checkbox.
    Soln for Prob 2. - Right Click on the file and deselect the Read Only Checkbox
    Try again and the scenario will work surely. Let me know if any issues.
    Regards,
    Souvik
    Edited by: Souvik Chatterjee on Mar 14, 2011 8:14 AM

  • File-RFC-File (without BPM)- Issue

    Hi All,
    I am working on a File-RFC-File (without BPM) scenario in PI 7.1.
    My scenario is having few problems like, its not able to delete the file from the source directory path (for which we have delete permissions) and it is an NFS system and it shows an error in the Sender file CC.
    "Error: com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId"
    But it gets processed successfully and provides a written paramter which I could see in MONI, but again doesn't write the file in the target directory. Could you please provide your inputs and let me know if I need to do any additional settings w.r.to PI7.1.
    These are the parameters which I have specified in the Sender File adapter
    Processing sequence
    AF_Modules/RequestResponseBean     Local Enterprise Bean     1
    CallSapAdapter     Local Enterprise Bean     2
    AF_Modules/ResponseOnewayBean Local Enterprise Bean     3
    Module configuration:
    1     PassThrough     true
    3     receiverChannel     <FilereceiverCCname>
    3     receiverService     <Receiver Bus System>
    Regards,
    Nithiyanandam

    Hello,
    Check out in module configuration tab for any "type error" or spell mistakes.
    Check out this thread which might be useful for you :[ File - RFC - File without a BPM - Possible from SP 19.|File - RFC - File without a BPM - Possible from SP 19.]
    regards
    Ramesh

  • Store \ Retrieve files from file system

    Hi to all!
    I would like to implement a solution for storing files uploaded via apex user interface to servers file system. As well I would like this files to be retrievable by apex users. I designed the following solution:
    For upload:
    1. Through file browse item user chooses file to be uploaded
    2. File goes to custom table (as BLOB)
    -- so far i would use apex Upload\Download files tutorial
    3. File(BLOB) would then have to be written to file system to some directory and file id would have to be written to some db table which holds pointers to files on file system
    4. delete file(blob) from custom table (from step 2)
    For download:
    1. user chooses link from some report region(based on table giving file pointers to files residing on file system)
    2. file identified with chosen file pointer is then inserted into blob column of some custom table in db
    3. from custom table with download procedure fie is finally presented to user
    4. delete file(blob) from custom table (from step 2)
    Using apex tutorial for Upload\Download files it is straitforward to get the files from db table or into db table using blobs. But i have not seen any example of using BFILE or migrating files from db to file system and vice versa.
    So some Q arise:
    a) How can I implement step 3 under For upload section above
    b) How can I implement step 2 under For download section above
    c) Is there any way to directly upload file to file system via apex user interface or to directly download file from file system via some report region link column?
    Please help!!!
    Regards Marinero
    Message was edited by:
    marinero

    marinero,
    Here is a procedure that will copy an uploaded file to the file system:
      Procedure BLOB_TO_FILE(p_file_name In Varchar2) Is
        l_out_file    UTL_FILE.file_type;
        l_buffer      Raw(32767);
        l_amount      Binary_Integer := 32767;
        l_pos         Integer := 1;
        l_blob_len    Integer;
        p_data        Blob;
        file_name  Varchar2(256);
      Begin
        For rec In (Select ID
                              From HTMLDB_APPLICATION_FILES
                             Where Name = p_file_name)
        Loop
            Select BLOB_CONTENT, filename Into p_data, file_name From HTMLDB_APPLICATION_FILES Where ID = rec.ID;
            l_blob_len := DBMS_LOB.getlength(p_data);
            l_out_file := UTL_FILE.fopen('UPDOWNFILES_DIR', file_name, 'wb', 32767);
            While l_pos < l_blob_len
            Loop
              DBMS_LOB.Read(p_data, l_amount, l_pos, l_buffer);
              If l_buffer Is Not Null Then
                UTL_FILE.put_raw(l_out_file, l_buffer, True);
              End If;
              l_pos := l_pos + l_amount;
            End Loop;
            UTL_FILE.fclose(l_out_file);
        End Loop;         
      Exception
        When Others Then
          If UTL_FILE.is_open(l_out_file) Then
            UTL_FILE.fclose(l_out_file);
          End If;
      end; And here is a procedure that will download a file directly from the file system:
      Procedure download_my_file(p_file In Number) As
        v_length    Number;
        v_file_name Varchar2(2000);
        Lob_loc     Bfile;
      Begin
        Select file_name
          Into v_file_name
          From UpDownFiles F
         Where File_id = p_file;
        Lob_loc  := bfilename('UPDOWNFILES_DIR', v_file_name);
        v_length := dbms_lob.getlength(Lob_loc);
        owa_util.mime_header('application/octet', False);
        htp.p('Content-length: ' || v_length);
        htp.p('Content-Disposition: attachment; filename="' || SUBSTR(v_file_name, INSTR(v_file_name, '/') + 1) || '"');
        owa_util.http_header_close;
        wpg_docload.download_file(Lob_loc);
      End download_my_file;I could put a sample application on apex.oracle.com, but it wouldn't be able to access the file system on that server.

  • Unable to delete File in file system

    I have built an explorer just like a Windows explorer. I am not able to delete individual files. but the files in a folder can be deleted. How should I proceed?

    Madam, we wouldn't be able to help u unless u tell us in detasil or post ur code...Anyway, Any File can be deleted by Following Procedure.
    File file = new File("<Path to File;FileName>");
    file.delete();
    Please note that the File can either be a Directory or an absolute Individual File
    Cheers,
    Manja

Maybe you are looking for

  • How to raise customer invoice in case of third party sale from PS

    Dear All,            In case of third party sale from project systems module, PR is raised which is further converted to PO and once the material reaches at client place GRN is done.Based upon the GRN the actual cost is booked to the project.How shou

  • Add a bullet correctly below the text in the previous line.

    Hi All, I know how to add bullets in a word doc, but I dont know how to set the range.listformat.leftindent property to match this particular reuirement i.e 1.1.1.   some text             (add a bullet below s in some) normal text (add a bullet below

  • Imessage won't switch to SMS

    I recently got the iphone 5s and I have been wondering why my friends who don't have iPhones cannot receive my messages. I made sure that I switched the "send as SMS" thing on but it still doesn't automatically switch to SMS. I also tried resetting t

  • HP Photosmart D7260 driver issues

    I have this printer and only plug it into my laptop when i need to print, with usb cable.... yesterday it didnt' recogonize the printer at all after plugging it in, so i deleted all the printers in my printers folder.... i have window vista and have

  • Crop Tool Confusion When Used to Change the Dimensions (but not the resolution) of an Image

    Picture this.  You have a real photograph in front of you.  Its dimensions are 7x5 inches, and you want to cut out of that photograph, a 4x4” square.  You’re not bothered by the rest of the photograph, you’ll discard that, so you mark your 4” square