Http to File Scenario

Hi,
I am doing Http to File Scenario i.e, Receive message via HTTP, Process it and write the file in the target.
1. As Http is the sender, I need not create Sender Communication Channel and Sender Agreement. But While Creating other objects in the ID, we need to mention Sender service, so what shd i mention there.
2. Can we do Asynchronous scenarios for Http to file Scenarios, because I have done Http to RFC scenario before.
3. When I use the HTTP Client tool to test my scenario, I upload a file or paste an xml payload and test, then will the file be created in the target directory, as Receiver is the File Adapter.
4. Do I need to create any Technical and Business System for HTTP sender in SLD, or should I create a Business Service in ID.
Regards,
Varun

Hi,
1. As Http is the sender, I need not create Sender Communication Channel and Sender Agreement. But While Creating other objects in the ID, we need to mention Sender service, so what shd i mention there.
---> You need to use the Business Service on sender side. Similar to HTTP --RFc scenario, It is required to identify the Sender side service.
2. Can we do Asynchronous scenarios for Http to file Scenarios, because I have done Http to RFC scenario before.
--> Yes You can have the asynchronous scenario. with HTTP to file
3. When I use the HTTP Client tool to test my scenario, I upload a file or paste an xml payload and test, then will the file be created in the target directory, as Receiver is the File Adapter.
--> Yes it will create the target file. If youhave applied any File Content Conversion then you can align the XML format to flat file format also....
4. Do I need to create any Technical and Business System for HTTP sender in SLD, or should I create a Business Service in ID.
---> Its better if you create the Business Service. Generally for SAP landscape Business system is used..and here in your scenario sender is HTTP and there is no need of Business system...Go for Business Service..
Thanks
Swarup
Edited by: Swarup Sawant on Aug 12, 2008 10:36 AM

Similar Messages

  • Testing HTTP to File scenario

    Hey guys
    i m testing a HTTP to file scenario for one of our clients and the test seems to be working fine when i test it in RWB under Integration Engine,MONI is chequered as well as i m getting the file on receiver side too.
    but when i test it by making use of the HTTP client which i got from the followin link
    /message/266750#266750 [original link is broken]
    it gives and error saying http-status 404 not found.
    the URL which is getting created is
    http://scosap005.sap.com:50100/sap/xi/adapter_plain?namespace=urn%3ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=&sap-password=&sap-client=100&sap-language=EN
    is this the same URL our client is gonna use to post the message to our XI server?
    also why am i getting error in the second testing?
    thanx
    ahmad

    Hi,
    1) Did you maintain Client, userid, password, and lang information in SICF transaction -> sap/xi/engine ? Double click on service and check whether you have entered correct information.
    2)Access the trace file and search for traces with severity ERROR, WARNING or stack traces.
    If we do not find an error in the log file or the error message does not explain the problem sufficiently, access the default Trace. The default trace file contains detailed messages for developers. Extract the relevant trace information e.g. using the time stamp or the message ID.
    If this does not explain the problem in more detail, increase the trace level and reproduce the problem. Then restart message processing using the message display tool. Mark the message and select repeat.
    3)Check the Note-803145
    4) 404 is an HTTP response code that indicates that the resource in question could not be found. Usually this is due to an incorrect URL check all URLs.
    Regards
    Agasthuri Doss

  • Warning message in MONI for HTTP to File scenario

    Hey guys
    i have a HTTP to file scenario wherein i m getting file from an extrenal system in XML format outside our landscape,file is coming in properly and its being delivered as desired as well,but everytime i check my payload in moni ,an information message pops up saying that the file may be unsafe,do you want to display,save or cancel?
    even though i get correct payload and the file is also coming from the designated IP and port,why do i keep getting this pop up?
    thanx
    ahmad

    Hi Ahmad,
    Put a break point at line 1,311 in progam RSXMB_DISPLAY_MSG_VERS_NEW_F02 in the form READ_AND_DISPLAY_DOCU2....
    That is where you are getting this popup from...
    Thanks,
    Renjith

  • HTTP to File Scenario using URL parameters.

    Hi,
    I am working on a HTTP to file scenario where POST method is hirring the XI server with authentication parameters.
    CAD application is trying to hot our XI server using POST Method and the application does not have ability to send XML payload to XI server directly.
    So we are simply receiving parameters in plain text in inbound payload.
    I need to convert this payload to XML format and am tring to work this out using dynamic configuration.
    But It is throwing parser error.
    BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 73, 75, 62(:main:, row:1, col:3) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:770)
    Here I have to use HTTP sender adapter.
    Please suggest how can I acheive this.??
    Regards,
    Sachi

    Hi Mark and Maciej,
    The Inbpound payload we are reciving is of the kind:
    sap-user=<UserID>&sap-password=<Pwd>&Param1=Sachi&submit=submit
    As in HTML we ar using hidden parameters to given authentication details and submmit button to hit XI serrver.
    Can you please help me to out how can I add prolog and epilog.
    How can I change my payload to XML format.
    Regards,
    Sachi

  • Error in HTTP to file scenario

    Hey guys
    we have a HTTP to file scenario in which our client has to send the Invoices over HTTP in XML format,when we test the scenario from within our landscape we are getting the output file correctly but when we test from the client site,we get an error message saying that the file has missing semi colon (,the URL which we are getting from the local HTTP client is something like this
    http://scosap005.sap.com:8001/sap/xi/adapter_plain?namespace=urn%3ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=&sap-password=&sap-client=100&sap-language=EN
    and the one which we are getting from the client is
    http://xx.xxx.xx.xx:8001/sap/xi/adapter_plain?namespace=urn%3ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=&sap-password=&sap-client=100&sap-language=EN
    why am i getting this error?
    thanx
    ahmad

    Hey guys
    i m having a very strange problem with my scenario,we are doing a HTTP to file scenario,now as both the sender and receiver have same structure i havent done any mapping,client is sending XML over HTTP from another location which is not in our landscape,he is using web methods Business connector .when he send us the XML message to our XI server some stuffs are added at the top of the payload,its something like this
    namespace=urn%253ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=nov_test&sap-password=xi_test&sap-client=100&sap-language=EN&
    these are actually the parameters which are used in the URL to send the XML to us.but because of this i m unable to process the XML .
    so my XML looks something like this
    namespace=urn%253ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=nov_test&sap-password=xi_test&sap-client=100&sap-language=EN&
    <?xml version="1.0" encoding="UTF-8"?>
    <Invoice transactionPurposeIndicator="Original">
         <InvoiceProperties>
              <InvoiceNumber>0094372098</InvoiceNumber>
              <InvoiceDate>20070319</InvoiceDate>
              <VendorNumber>VENDOR #</VendorNumber>
    but when i try this scenario from within our landscape it works fine and nothing is added on top of XML.
    they are sayin that nothin extra is being added from thr side and their XML does not have the extra addition on top.
    how should i solve dis problem?
    its urgent
    thanx
    ahmad

  • Error in the filename response vaule when doing Http to file scenario

    Hi,
       I am doing Http to File Scenario. I am trying to retrieve the source filename in the structure field "filename". I have defined a UDF for that and It worked well for file to file scenario.
    Now for Http to file scenario if i want to get the filename, I am getting "null" value in the response.
    I am using Http Client test tool for testing the scenario.
    My output is
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:FileTarget_MT xmlns:ns0="http://soacity.net/HTTPtoFile">
      <MsgId>DD74CE4AE01AC6F19C0900199912BCA0</MsgId>
      <filename>nullnull</filename>
      <Body>hello world.</Body>
      </ns0:FileTarget_MT>
    I got nullnull because i am trying to retrieve Source directory and filename.
    Desired Out put
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:FileTarget_MT xmlns:ns0="http://soacity.net/HTTPtoFile">
      <MsgId>DD74CE4AE01AC6F19C0900199912BCA0</MsgId>
      <filename>/FileServer/Sender/test.xml</filename>
      <Body>hello world.</Body>
      </ns0:FileTarget_MT>
    For File receiver i am using FTP Parameters.
    I got the correct output for file to file scenario because i had placed the file in the source directory, so that XI can read the source directory and file name. but now for Http to file scenario i am using the Http client tool, where in i have an option to paste the payload directly or upload the file.
    Any Inputs would be appreciated.
    Regards,
    Varun

    Hi,
    I Have defined the structure as
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Source_FILE xmlns:ns0="http://soacity.net/HTTPtoFile">
       <Message>
          <Id/>
          <Head>
             <Id/>
             <Filename/>
          </Head>
          <Body/>
       </Message>
    </ns0:MT_Source_FILE>
    My requirement is
    "The HTTP adapter would recieve a HTTP document. It has two main tags: head and body; there are two options : either specify the filename in <head> and data in <body> or you send the full message as payload into <body><message>.... </message></body>"
    So How do I proceed in Defining the objects.
    Regards,
    Varun

  • HTTP to File Scenario: execute Test Tool (html) but any received message?

    Hi all,
    I have configured the HTTP to File scenario in SAP XI 7.0. When i execute the Test Tool (HTTP_Client_Adapter.html), i don't see any message in the XI Server. I don't know the Test Tool which i used for the test work correctly, because when i clicked on 'Send' button, i don't get any message in the XI Server?
    The Configuration Scenario is OK when executing the Configuration Test in ID.
    Could you please tell me how i can know the Test Tool is execute correctly?
    The Test Tool which i used in the link below:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    Thanks a lot in advance,
    Vinh Vo

    HI,
    In XI You can go to RWB (from XI server homepage)->Comp Monitoring -> Display All ->Int Server-> Int Engine
    In the bottom, you find 3 tabs, select the test message tab to post messages.
    Pls note that, when you need to test, you should have created the scenario in IR/ID (and u can use the details of Receiver Determination ID) to fill in the details.
    You can refer this:
    /message/266750#266750 [original link is broken]

  • Triggering an HTTP to file scenario using UDF

    Hi,
    Is it possible to trigger an http to file scenario from  UDF? If it is possible can anyone tell me how it can be acheived.
    regards,
    Meenakshi

    hi,
    can u tell me how this could be possible?
    my requirements are such that we are collecting some data in UDF and creating an xml. this xml is sent to another scenario using HTTP adapter.  this adapter need to be triggered from the UDF.
    please let me know how this can be done.
    regards,
    meenakshi

  • Http to file scenario generate "Acknowledgement not possible"?

    Hi.
    On PI7.1 we built a http to file scenario and used the RWB "Test message" functionality to test the interface.
    Now we get a "Acknowledgement not possible" in sxmb_moni. How can we switch this off.
    thanks

    Hi
    while sending request use either EO or EOIO for Asynch.
    EO and EOIO, processing occurs asynchronously and the client only receives a confirmation of receipt with HTTP status u2018200u2019.
    Read this
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm

  • How to setup HTTP client for HTTP to File scenario

    Hey guys
    i have a scenario wherein one of our clients is sending invoices(as XML message) over  HTTP(client is outside our landscape) and i have to to send this invoice to a File system from where it will be picked up by an ABAP code(picking of the file has to be done by ABAper so i m not concerned with that)
    the way i m starting off this project is that
    i will create a sender and receiver data type,message type and Message interface,Message mapping is 1-1 so its kinda simple and then Interface mapping.
    in configuration i wont be creating and sender communication channel and sender Agreement,i need receiver communication channel,receiver determination and interface determination.
    does my design and configuration looks good to you guys?
    also i waz goin through some threads and it says that i need to setup HTTP client for this scenario and then specify a URL in a specific format.
    where will i setup the HTTP client and where will i specify the URL?
    thanx
    ahmad

    Ahmad,
    ><i>does my design and configuration looks good to you guys?</i>
    Is correct.
    ><i>where will i setup the HTTP client and where will i specify the URL?</i>
    Take a look at this thread and check the HTTP Client code.
    Copy the code and save it as a HTML file and you have the HTTP Cliet ready. GIve the details of your server, sender service, interface etc and trigger the call to XI.
    In a real time scenario, you will need to use the URL used in the HTTP Client code from your WebApplication to trigger the call to XI.
    /message/266750#266750 [original link is broken]
    Regards
    Bhavesh

  • Urgent!! HTTP to File scenario

    Hey guys i have a client who is sending Invoices to our company through HTTP over internet in XML format.he send this Invoice to our IP address and port and the firewall has been configured to allow Invoices coming to this IP and port.
    do we need to use party in this type of scenario or not?
    also any blog explaining this will be really helpful.
    thanx
    Ahmad

    not required to use party . you should use buisness serivce not business system.
    Also, check these blogs. They use HTTP adapters for their configuration,
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    and for HTTP Adapters u have follow this link..
    http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    Best of luck
    regards
    sreeram..g.reddy
    Message was edited by:
            Sreeram Reddy

  • HTTP to File with source XML validation

    Hey guys
    i have a HTTP to File scenario wherein i m getting XML over HTTP from an external system.i need to perform a validation check on this payload and if the check fails then i need to send this payload as a mail attachment to a certain address,if check is successful then i need to post this XML to the File server.
    i have done simple scenario without any validation but now i need to upgrade and perform validations,do i need to do that in Message mappin?
    some links will be really helpful
    thanx
    ahmad

    Hi,
    I hope the following two ways are possible.
    1)
    Maintain one message as source and two messages as target.One is actual message and second one message structure should containt the structure with  error details with source details.
    Validate the message in MM with UDF.
    If the source is valid then assign the msg to correct target messages.and ResultList.SUPPRESS to suppress the second message
    Else then assign the error details with source details to second message.and ResultList.SUPPRESS to suppress the first message
    Be sure that the target messages occurrences are 0..unbound or 0..1
    then use the IM in interface determination.
    and maitain two CCs one for actual receiver, second for MAIL receiver with HTTP attatchment.
    2) You can raise an alert from payload. in alert you should maitain the mail, su01 mail id , designated reciept.
    See the below links
    Alerts with variables from the messages payload (XI) - UPDATED - /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    Triggering XI Alerts from a User Defined Function - /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address - Dynamic Mail Address
    /people/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u - Triggering Email from folder
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter - XI: HTML e-mails from the receiver mail adapter
    Regards
    Chilla

  • Http-XI-File:  "The requested resource does not exist"

    i have a http-XI-File scenario, where i m sending a request from the HTTpClient application(i obtained that HTTPClientApplication from SDN itself), when i send the request, i receive a response in the internet explorer as
    "The requested resource does not exist"...
    help me

    Hi,
    Have You Entered Correct Input Parameters in the Client Test Tool ???
    Please Mention the Correct Server Port
    Regards
    Khanna

  • 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>

  • HTTP-RFC(BPM)-FILE Scenario

    I have a problem on using the 'http-RFC(BPM)-File scenario'. When i enter values using the  Client http adapter, it displays message telling that "BPE_ADDAPTER.SYNCHONOUS_MESSAGE"
    The error msg is displayed below:
    Result:  
    <SAP:Error>
    <SAP:Category>XIAdapter</SAP:Category>
    <SAP:Code>BPE_ADAPTER.SYNCHONOUS_MESSAGE</SAP:Code>
    <SAP:Stack>The process does not support the given synchronous interface or does not support synchronous messages</SAP:Stack>
    </SAP:Error>
    Also in SAP XI monitor, the sender services along with the corresponding sender interfaces.
    Expecting this prob will be off soon.
    thanks
    vinod v

    Hi Vinod,
    your process is asynchronous (no sync async bridge). But you send "Quality of Service = Best Effort" (Url paramater qos=BE). You should send "Exactly Once" (EO).
    Regards,
    Udo

Maybe you are looking for