File scenario avoiding SOAP

Hi,
     I want to configure File to HTTP Scenario. I Want to Read a file and send it over via HTTP. I also wants to avoid SOAP and instead post the file as a simple CGI request. And I should get the same source file name in Target also.
Valuable Inputs would be appreciated.
Regards,
Varun Reddy.K

Hi,
If your scenario is File To HTTP then there is no concept of SOAP.
Only for internal purposes XI integration server uses proprietary XI SOAP format on various stages of message process.
In Mapping use Dynamic configuration to read the file name and set this value to one of the HTTP URL param value.
Check the help documentation for this,
[http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm]
Sample Code to use in Message Mapping.
try
DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
DynamicConfigurationKey HTTP_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/HTTP","UrlParamOne");
conf.put(HTTP_FILENAME, conf.get(KEY_FILENAME));
catch (Exception e)
In the Receiver HTTP adapter check the "Use Adapter Specific Messages" check box.
Thanks,
Gujjeti
Edited by: Praveen Gujjeti on Aug 6, 2008 11:53 AM

Similar Messages

  • Fiel 2 file scenario -  avoiding a line

    hello experts
    I have a txt file to txt file scenario.
    I would like to know if it is possibleto avoid a specific line in the text file?
    for example
    I have a files that contains the same architecture:
    FILE=S0123123 REPORTS=000
    6019,   ,024312
    6019,   ,024313
    6019,   ,024313
    and I would like that the recieving file will contain only:
    6019,   ,024312
    6019,   ,024313
    6019,   ,024313
    (to avoid the first line). is it possible to do? how can I avoid the first line
    Thanks
    Kfir

    Hi,
    If i am not wrong, you just wanted that watever come into your target file , just remove the first line if it is starting with 
    >> FILE=S0123123 REPORTS=000
    You can do this with the file adapter option Run Operating System command After Processing. Write a small shell script and add it there. In the Shell script write the logic to remove first line. or make it commented. Try this.
    Else write an UDF to remove the line if it starts from FILE. If program finds the FILE kepword directly go to next line and check if it again contain the keyword if no then append whole string to resultset.
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • File-Soap-File scenario with asynch - synch bridge

    Hi,
    I am new to PI and I'm trying to develop a FIle-SOAP-File scenario with asynch-synch bridge. These are the components in my integration builder:
    Business Component to act as both the sender and receiver
    1 outbound communication channel to pick up the file from ftp server
    1 SOAP communication channel
    1 inbound communication channel to write file to the ftp server
    receiver determination
    interface determination
    sender agreement
    receiver agreement
    In my outbound channel, I am using:
    Processing sequence:
    1     AF_Modules/RequestResponseBean                Local Enterprise Bean     1
    2     CallSapAdapter                                                         Local Enterprise Bean     2
    3     AF_Modules/ResponseOnewayBean                Local Enterprise Bean     3
    Module configuration:
    1     passThrough                         true
    3     receiverChannel                        inbound communication channel to write file to the ftp server
    3     receiverService                         Business component where the channel above is found.
    When I run the scenario, I am able to get the file from ftp server, map it to SOAP format according to the wsdl, forward the message to SOAP adapter, send it to web service, get the response back from web service, map the data to a regular file format. However, it fails to write back to the ftp server.  I am getting Java null pointer error at AF_Modules/ResponseOnewayBean.
    2010-07-28 15:48:01     Information     SOAP: completed the processing
    2010-07-28 15:48:01     Information     SOAP: continuing to response message 2ce3ec60-9a9a-11df-b109-00145ec5c1ae
    2010-07-28 15:48:01     Information     The message was successfully delivered to the application using connection SOAP_http://sap.com/xi/XI/System.
    2010-07-28 15:48:01     Information     The message status was set to DLVD.
    2010-07-28 15:48:02     Information     The message was successfully transmitted to endpoint http://vs06cs01.sce.com:8000/sap/xi/engine?type=entry using connection File_http://sap.com/xi/XI/System.
    2010-07-28 15:48:02     Information     The message status was set to DLVD.
    2010-07-28 15:48:02     Information     The application sent the message synchronously using connection File_http://sap.com/xi/XI/System. Returning to application.
    2010-07-28 15:48:02     Information     MP: processing local module localejbs/AF_Modules/ResponseOnewayBean
    2010-07-28 15:48:02     Error     MP: exception caught with cause java.lang.NullPointerException:
    2010-07-28 15:48:02     Error     File processing failed with java.lang.NullPointerException:
    Had anyone encountered this error? Any suggestions is greatly appreciated.
    Thanks.

    Thanks for the replies. I checked my module parameters and I realized that i entered the wrond business service. I fixed that and ensure that all 3 channels are running.
    I ran the scenario again and it does not give me Java Null pointer exception. However, it gives me a different errror.
    2010-07-29 08:52:31     Information     The message status was set to DLVD.
    2010-07-29 08:52:31     Information     MP: processing local module localejbs/AF_Modules/ResponseOnewayBean
    2010-07-29 08:52:31     Error     MP: exception caught with cause com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId
    2010-07-29 08:52:31     Error     File processing failed with com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId
    I am trying to check all my settings again. Any pointers regarding the errors above?
    Thank you.

  • File to Web service (SOAP) to File scenario with out BPM in PI 7.1

    Hi All,
    I have scenario File to Web service (SOAP) to File scenario with out BPM.i am getting the below error:
    1) Error MP: unexpected exception caught com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId
    2) Error ROB: error during processing: com.sap.aii.af.lib.mp.processor.ModuleProcessorException: Processing Error
    PI server is 7.1 with SP:8
    I have configured the scenario like this
    1) 2 File channels - Sender & Receiver ,1 RFC channel - Receiver. We need to note that, the additional Module parameters need to be added only for sender File channel
    2) Created Sender Agreement
    3)Created Receiver Determination
    4)Created Interface Determination
    5)Created Receiver Agreement
    Regards,
    Ramesh

    Hi,
    Thanks for your reply!!
    My Scenario is File to SOAP to File.
    Configred modules  in Sender channal below:
    Prcessing sequence:
    Number       Module Name                                        Module Key
    1..........       AF_Modules/RequestResponseBean.......1
    2..........       CallSapAdapter..........................................2
    3..........       AF_Modules/ResponseOnewayBean.......3
    Module Configuration:
    Module Key                                       Parameter Name                                       ParameterValue
    1                                                        passThrough                                            true
    3                                                        receiverChannel                                       receiverChannel name
    3                                                        receiverService                                        receiverService name
    please tell any more confiration requered.
    Regards,
    Ramesh

  • Error in SOAP to file scenario

    Hey guys
    i m doing a SOAP to File scenario and getting the following error.
    <SAP:Stack>&quot;COMMUNICATION FAILURE&quot; during JCo call. Error opening an RFC connection.</SAP:Stack>
    any idea where should i look ?
    thanx
    ahmad

    Hey
    i m still getting a red flag in MONI,the error is
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">JCO_COMMUNICATION_FAILURE</SAP:Code>
      <SAP:P1>Error opening an RFC connection.</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>&quot;COMMUNICATION FAILURE&quot; during JCo call. Error opening an RFC connection.</SAP:Stack>
      <SAP:Retry>A</SAP:Retry>
      </SAP:Error>
    i checked my mapping by copyin payload from MONI,its working fine.
    thanx
    ahmad

  • JCO problem in SOAP to file scenario

    Hey guys
    i m doin a SOAP to file scenario and getting a JCO error in moni,the status of my queue in SMQ2 is SYSFAIL,when i check the TCP/IP connection in SM59 i find error in two places
    AI_DIRECTORY_JCOSERVER and AI_RUNTIME_JCOSERVER .when i test connection for both of them i get the followin error "Error opening and RFC connection".
    is this error dues to some server problem of something wrong in my scenario.?
    the SOAP adapter in RWB is green.
    i tried to unlock and delete the queue in SMQ2 but when i execute my scenario again,it gets SYSFAIL error.
    thanx
    ahmad

    Hi,
    If you restart the J2ee engine, it will work.
    But The error may because of many reasons
    -Might be because of lots of messages are to be processed simultaneously.
    -Increasing the number of processes in VisualAdmin (VisualAdmin>JCO RFC Provider>AI_RUNTIME_<SID>) and see if that helps.
    -This  SAP Note may help u -709140.
    Hope this helps,
    Regards,
    Moorthy

  • Problem in SOAP to IDOC & File scenario

    Hi,
    My scenario is SOAP ->IDOC and FILE,when I run the scenario IDOc was processed and File was not created at the target system.I maintained LS name for sender SOAP and IDOC business service.Nothing was maintained in adapter spec identifiers for Recer business service(i.e For target File CC).This was working fine in Dev.After Importing another scenario which uses same business service,this didnt stp working?
    what could be the reason?
    Thanks,
    RP
    Edited by: RP@261 on Oct 21, 2008 10:59 PM

    > my imported scenario and existing scenario in QA using same sender business service.After importing the other scenario,existing scenario is failed to create files at target system even though it shows successful in MONI.
    >
    Check the target dir permission once again from your BASIS team. Reconfirm the the target dir name in receiver CC also.
    > Should we maintain Logical system in adapter specific identifiers for Recr File CC also??? I create a file in BI application server from recr File CC.
    >
    No, for creating a file you don't require this. This is required only in case of IDOC.
    > my scenario is
    > (SOAP sender) -->  TO IDOC & FILE  ..i maintained LS name in sender BS where SOAP CC is created and also at Recr BS where IDoc CC is created. The other Recr BS for File where I didn't.IS it required ?
    >
    For File recever BS, No need.

  • HOW TO TEST SOAP SENDER TO FILE SCENARIO

    Hi gurus,
    I have designed and configured SOAP to file scenario.
    I have used http://xyz namespace in design time.
    I have created two business systems for this sceanrio.
    I have downloaded and installed soap client on my system.
    When I open this soap client it is asking
    1)URL
    2)load request from
    3)In the editor request tab what should i give.
    4)wht is the response tab here
    I want to send data to XI from SOAP and then to file.
    Please help how to give data and how to get the data format to give in the requst editor?
    Points will B rewarded
    Regards
    Sreeni

    Hi,
    You can use a SOAP client like Altova XML spy for posting a message to XI.
    The best way to do this is to use the generated wsdl for creating a soap request.
    once the wsdl file is picked up by the soap client, it automatically generates the url.
    now the response which comes back to the soap client is usually a http status code of successful post. (since u r performing an async scenario)
    also ensure u use the j2ee port while genrating the wsdl using the "Create Webservice" option in Int Directory.
    Also chk the link for the weblog on sender soap scenario.
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    Hope this helps.
    Award points if found helpful
    Cheers!!
    Sidharth

  • Soap with attachment  To File scenario

    Hi All,
    In my scenario I need to read data on webservice with file in attachments. Webservice in will have two values- data in payload and file in attachments. And on the target side  two files one XML with data and one attachment must be created on the file directory.
    Can any one help me how this task can be implemented in XI
    Thanks in advance.
    Regards,
    Vikram

    Hi,
    some links about this topic:
    SOAP to file scenario
    Send a file usring SOAP adapter
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    Hope it helps.
    Regards
    Patrick

  • Business systems  for Soap to file scenario

    Hi Experts,
       I am working on a soap to file scenario.Which type of business systems shall i  create i.e Third party,As ABAP,As Java etc.Please suggest.
    Thanks
    Veeru

    Hi,
    Normally Business systems are created in SLD when you are provided with relevant system details. A business service is used in case of the system being an abstract unit.
    In your case, it is better to go for Business service because you generally don't  have such details for third party system.
    Just go through this link for more understanding...
    Difference between Business System and Business Service
    Regards,
    Chandra

  • Doubt Regarding SOAP to File Scenario

    Hi All,
    I am trying to create a SOAP to File scenario .These are the following things I have done so far :
    IR -  2 datatypes ( 1 for soap message and 1 for file message )
           2 message types for the corresponding messages
          2 Message interfaces, both are asynchronous
          1 message mapping
          1 interface mapping
    ID- 2 business systems (1 to send soap, 1 to recieve file )
        2 communiccation channel (soap sender, file receiver )
    soap sender adapter parameters - Interface Name  - Message interface for soap message
                                                      interface namespace - scenario namespace
    Then,  i generated a wsdl file to expose the outbound message interface for soap message as a web service, url for message interface : http://host:port.XISOAPAdapter/MessageServlet?:service:channel.
    After generating the wsdl file, i imported it in external definition
    Could anyone plz. tell me, is this the right approach to creat this scenario ? how can I test this scenario?using altova spy ?

    Hi,
    The URL you have mentioned to genarate WSDL is not a valid one
    http://host:port.XISOAPAdapter/MessageServlet?:service:channel.
    Check the below valid URL
    http://host:port/XISOAPAdapter/MessageServlet?channel=:service:channel.
    You no need to import this to the Eexternal Definition as you already have DT,MT and MI, Any way this dosn't make any difference.
    You can use SOAPGUI Tool to test:
    ->Create New Project -> provide WSDL you have genarated.
    ->Select Request and provide username and password and click the green button on top(Submit request to end URL).
    Using altova spy:
    Select SOAP Menu->Create New SOAP Request and provide your WSDL file and
    SOAPMenu->Send Request To Server
    Then you will get response..
    Regards,
    Prasanna

  • Testing of SOAP to FILE Scenario

    Hi all
    I have done with SOAP to FILE scenario.
    --> while defining web service what we need to give in the URL????
    --> How to test this SOAP to FILE scenario to see wheather it is working fine or not, what are the all options
    Thanks
    Dheeraj

    Hi Dheeraj,
    Definitely you can test it through the microsoft infopath tool.
    steps to follow:
    Executing wsdl File Using Microsoft Info Path
    1.>Click on the design a from template
    2.>Select the Web service icon and click ok
    3.>Select the radio button u2018receive and submit datau2019 and click on next.
    4.>Enter the path of the generated wsdl which u have saved and click next.
    5.>Select the interface and   click next
    6.>Select the interface and   click next. 
    7.>Double click on parameters.
    8.>Double click on the parameter (which you want to send as request). Then click on the query field and click ok.
    9.>Click next. And click Finish
    10.>Now drag the query fields on the data fields to the left side. And click preview.
    Please follow these steps I hope you will be able to test it.
    Thanks and regards,
    Nutan

  • Soap to File Scenario with BPM

    Hi Guys
    I have create my Soap to File Scenario using BPM to split the file on "Transformation step" into 7 files and it must save these files to my FTP Server, when testing on sxmb_moni I don't get any errors but when checking on the FTP server no files are created, and I understand that it should be showing all seven processing on the sxmb_moni, but that is not happening.
    I have used the ForEach mode on my Block.
    What could I be doing wrong.
    Thanks!!
    Yonela

    go to runtime work bench to see communication channel, especailly the receiver channel.
    To see what happened on it

  • Error in file-file scenario: HTTP response contains status code 503

    Hi folks,
    I've encountered the foll error in file-file scenario:
    Testing file-file scenario (followed the blog: https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/flatFILETOFLATFILE&)
    Initially i was hving problems with recvr comm channel, which are now resolved. File is sent successfully but not recvd. I tried to modify the scenario above and change the file type to 'Text' but still got the same error.
    I've checked SICF -->default_host/xi/engine , we dont maintain logon data there. when i test the default_host/xi/engine service, it resolves into an ip addr as follows:
    http://<hostname>.<domain.com>:8001/sap/xi/engine?sap-client=<clientNo>
    (Also, we hv a BW system running on the same server ,which uses a fully qualified domain, while we dont which is why we get the above domain. Im not sure if there are any issues with that.)
    and we get the foll error:
    Error Code 10060: Connection timeout
    If i remove the domain manually, im prompted for userid/pwd and get the foll result:
    - <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP:Header />
    - <SOAP:Body>
    - <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <faultcode>SOAP:Client</faultcode>
      <faultstring>Pipeline specified in URL attribute (type) not existing</faultstring>
      <faultactor>http://sap.com/xi/XI/Message/30</faultactor>
    - <detail>
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="MESSAGE">URL_PIPELINE_NOT_FOUND</SAP:Code>
      <SAP:P1>/sap/xi/engine?sap-client=<clientNo></SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Pipeline ID , which is expected as value of attribute &quot;type&quot; in the URL, does not exist in the Integration Engine (URL = /sap/xi/engine?sap-client=811)</SAP:Stack>
      </SAP:Error>
      </detail>
      </SOAP:Fault>
      </SOAP:Body>
      </SOAP:Envelope>
    also, we dont hv any overload issues as this is dev env and not many of us are using the xi server. Would really appreciate if any of you can share your inputs on how to resolve this. Thanks!!
    cheers
    Prachi

    Hi ,
    Look in to this for all errors
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
    Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.
    Possible Tips: Because of J2EE application com.sap.aii.af.ms.app not active
    • Try to (re)start the application using the Visual Administrator Choose Server --> Services --> Deploy --> View on Application or restart the J2EE engine
    • The problem is that not all J2EE services can be started by the J2EE. i.e Start the Visual Administrator and select Server->Services->Deploy in the tree on the left. On the right-hand side, choose the Runtime tab page. You see a tree in the right window with all applications if you select the APPLICATION radio button. Check if they are running, otherwise choose Start. Usually the J2EE engine starts all services automatically.
    • Refer SAP Note 803145,807000,791655
    <b>Award Points if found usefull.</b>

  • 1: N File Scenario..

    Hi,
    My Scenario is File to File Scenario, in which i need to drop the 2  target file in the ftp server in the same directory.
    For Eg:
    Source Fields:
    EMPNO
    ENAME
    Address
    Department
    ContactNumb
    2 OUt PUt files that to be dropped as below:
    In the 1 st output file
    ENO
    ENAME
    Department
    In the 2nd output file
    ENO
    ENAME
    Address
    ContactNumb
    i dont have any condition for splitting the messages,
    IR OBJECTS
    I have created 3 data types, 3 message types, 3 Services Interfaces, 1 Message Mapping ( Through Signature in PI7.1 i have called the 2 output message types), 1 Operation Mapping.
    ID OBJECTS
    1 Sender Comm Channel, 1 Rceive Comm Channel, 1 Sender Agreement, 1 Receiver Determination, 1 Interface Determination, 1 Reciever Agreement,
    When i search with multimapping there they suggest to go for enhanced Interface Determination, but in PI 7.1 i didn't find the Enhanced Interface Determination.
    My Question:
    1. HOw many Receiver communication Channels are required. With one can we use Dynamic File Naming Conf.. UDF whethr it will drop multiple file names in the directory of FTP , Please suggest how to handle this..
    Expecting your valuable inputs ..
    Thanks,
    Sai

    Hi Raja,
    As per our discussion i have created ESR objects and ID objects, with 2 reciever communication channels and 2 receiver agreements,
    With Respect to ER:
    Message Mapping: I have usind multi mapping using signature tab. Have called 2 message types at the target.
    But while mapping i didnt map any element to the headers of the target.
    as a result the output files are generated with out any data.
    Later i have mapped the target headers with the only one source header.
    Source Header -- Target Header1
    Source Header -- Target Header2
    When i test the scenario at Message mapping level it is working fine but when i test the complete scenario
    throwing following error in moni..
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">GENERIC</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_mulout_</SAP:P1>
      <SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>
      <SAP:P3>on: Cannot create target element /ns0:Messages/ns0</SAP:P3>
      <SAP:P4>:Message1/ns1:MT_output1. Values missing in queue~</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>com/sap/xi/tf/_MM_mulout_com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:Messages/ns0:Message1/ns1:MT_output1. Values missing in queue~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    indicate target header is unable to create i have mapped with all possiblities,
    Please suggest me towards getting the solution..
    Thnks,
    --Sai

Maybe you are looking for

  • Batch internl number assignment

    Hello SAP gurus,     Lets suppose i have finished product, semifinished product and raw material with me.I am managing all of them in batches.I want to use automatic creation of batch (internal number assignment) for them.Now my question is i want to

  • Iphone 5 keeps restarting while syncing, updating or pluged in

    Hello, first of all sorry for my enlgish.. so please, be patient...  i'm having a problem with my iphone 5 that showed up after i updated to iOS 8.1.2. First i saw that after the whole night charging, battery shows that its 52% charged so i restarted

  • Possible to Turn Off Tagging for Accessibility?

    Question: Is it possible to skip or disable tagging for accessibility option during conversion of a Word doc to PDF? I convert 90+ doc's to PDF to deliver my project twice yearly. Most files are 200 pages +. ADOBE often falls over during conversion.

  • Receiving Custom XML Document over AS2 (HTTPS) - Inbound Processing

    Hi All, Need help in Receiving Custom XML Document over AS2 (HTTPS) - Inbound Processing External Trading Partner will be able to post the XML Documents to https://<b2bconsolehost>:<b2bconsoleport>/b2b/httpReceiver. Here is the process flow: 1. Exter

  • I keep getting error code 204 and can't install the creative cloud. Need Help!?!

    I am currently trying to install the Creative Cloud but error: 204 keeps popping up stating 'There seems to be a problem accessing a critical file/directory during download...' Can anyone help me? Thanks