Http adapter -reading a http file stream

Hi folks,
Here is a requirement
I need to read a file sent as an http object stream through XI and then updated the same in a database table in R/3?
<b>How can i configure the http adapter so that it reads the file stream</b>
regards
krishna
Message was edited by:
        Krishnamoorthy Ramakrishnan

Thanks bhavesh
Though your reply and reference did not directly answer my question, which i will explain below concisely, it did help me to get an idea about how to handle my requirement.
Please read and give me your valuable advise.
The sender is a distributor that wants to send some text file to a file server in XI.The sender will have to send the file as a http stream link. XI has to read the  file from the http stream and push it to a  file server in XI.  for this, i have identified that
1. At outbound/sender side, there is an HTTP adapter in XI.
2.The request to XI should be of the some think like
<b>http://<host>:<port>/file stream.....</b>
3. At inbound side , I have a java server proxy as suggested in the blog.
4. The server proxy will use a http client connection to read the file stream and another ftp client to push it to the file server
Do you think this would realize the requirement?
I have also got a question here
With the above mentioned URL, will the sender be able to communicate with XI, since the client is outside the network and has access to internet only. How can it communicate with XI?
Also, Is there an better alternative to this approach?
Thanks for your help
Kind Regards
krishna

Similar Messages

  • How can I read a binary file stream with many data type, as with AcqKnowledge physio binary data file?

    I would like to read in and write physiological data files which were saved by BioPac�s AcqKnowledge 3.8.1 software, in conjunction with their MP150 acquisition system. To start with, I�d like to write a converter from different physiodata file format into the AcqKnowledge binary file format for version 3.5 � 3.7 (including 3.7.3). It will allow us to read different file format into an analysis package which can only read in file written by AcqKnowledge version 3.5 � 3.7 (including 3.7.3).
    I attempted to write a reader following the Application Note AS156 entitled �AcqKnowledge File Format for PC with Windows� (see http://biopac.com/AppNotes/ app156Fi
    leFormat/FileFormat.htm ). Note the link for the Mac File format is very instructive too - it is presented in a different style and might make sense to some people with C library like look (http://biopac.com/AppNotes/ app155macffmt/macff.htm).
    I guess the problem I had was that I could not manage to read all the different byte data stream with File.vi. This is easy in C but I did not get very far in LabView 7.0. Also, I was a little unsure which LabView data types correspond to int, char , short, long, double, byte, RGB and Rect. And, since it is for PC I am also assuming the data to be written as �little endian� integer, and thus I also used byte swap vi.
    Two samples *.acq binary files are attach to this post to the list. Demo.acq is for version 3.7-3.7.2, while SCR_EKGtest1b.acq was recorded and saved with AcqKnowledge 3.8.1, which version number is 41.
    I would be grateful if you someone could explain how to handle such binary file stream with LabView and send an example to i
    llustrate it.
    Many thanks in advance for your help.
    Donat-Pierre
    Attachments:
    Demo.acq ‏248 KB
    SCR_EKG_test1b.acq ‏97 KB

    The reading of double is also straight forward : just use a dble float wired to the type cast node, after inverting the string (indian conversion).
    See the attached example.
    The measure of skin thickness is based on OCT (optical coherent tomography = interferometry) : an optical fiber system send and received light emitted to/back from the skin at a few centimeter distance. A profile of skin structure is then computed from the optical signal.
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Read_AK_time_info.vi.zip ‏9 KB

  • How can I read a binary file stream with many data type, as with AcqKnowled​ge physio binary data file?

    I would like to read in and write physiological data which was saved by Biopac�s AcqKnowledge 3.8.1 software, in conjunction with their MP150 acquisition system. To start with, I�d like to write a converter from different physiodata file format into the AcqKnowledge binary file format for version 3.5 � 3.7 (including 3.7.3). It will allow us to read different file format into an analysis package which can only read in file written by AcqKnowledge version 3.5 � 3.7 (including 3.7.3).
    I attempted to write a reader following the Application Note AS156 entitled �AcqKnowledge File Format for PC with Windows� (see http://biopac.com/AppNotes/app156FileFormat/FileFo​rmat.h
    tm ). Note the link for the Mac File format is very instructive too - it is presented in a different style and might make sense to some people with C library like look (http://biopac.com/AppNotes/app155macffmt/macff.ht​m) .
    I guess the problem I had was that I could not manage to read all the different byte data stream with File.vi. This is easy in C but I did not get very far in LabView 7.0. Also, because it is for PC I am assuming the data to be written as �little endian� integer, and thus I also used byte swap vi.
    I would be grateful if you someone could explain how to handle such binary file stream with LabView and send an example to illustrate it.
    Many thanks in advance for your help.
    Donat-Pierre

    One more step...
    short are U16 integer
    double are double precision float
    bool seem to be 2 bytes (= U16)
    char are string (variable length)
    rgb are U16 integer, with high order byte = 0
    rect should be 4 x U16 (top, left, bottom, right)
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • [File-Adapter] Reading not finished files

    Hey,
    my sender file adapter reading files which are not finished yet.
    The files are created by an ABAP programm. The creation could
    take some seconds. If the file adapter polls while creation is not
    finished, we have a problem.
    The flag "Process Read-Only Files" is not set, so the ABAP programm
    doesn't seem to set the file to read only.
    Is there a way to check (e.g. with an operating system command) if the
    file is processed completly?
    For example I could check if the date of creation is higher than 10 minutes
    or something like this.
    Any other ideas?
    thanks
    chris

    What is the file adapter option you are using?
    If NFS, you have the option "Milliseconds check before modification" that will prevent the file from being picked up till they are completly written.
    If FTP, then when the file is being written to the ftp folder you should have the option to use temporary files option
    Regards,
    Bhavesh

  • Configuration of http adapter to reach https-URL

    I want to configure a http Receiver Communication Channel that is supposed to call a web service with the following URL: https://api.sandbox.ebay.com/ws/api.dll.
    I did the following set-up in the http Adapter:
    Addressing Type: URL Address
    Target host: api.sandbox.ebay.com
    Service Number (Port):443 (-> Standard https Port)
    Path Prefix: /ws/api.dll
    I startet the process and received the following error message in XI:
    "ERROR: The requested URL could not be retrieved. While trying to retrieve the URL: "http://api.sandbox.ebay.com:443/ws/api.dll?"The following error was encountered: Zero Sized Reply. Squid did not receive any data for this request."
    It seems it is calling the URL via http, not with https.
    Can someone tell me how to change the configuration of the http Adapter that it uses https?
    Thanx in advance.
    Alex

    Hi Alexander,
    Create RFC Destination with Connection type ‘G’ using Tr. Code SM59 in XI System and enter all the parameters like TargetHost,(Target System), ServiceNo(external port)and path prefix. In the tab “Logon/Security” enter the login info and enable SSL. Run the transaction STRUST to setup client PSE.
    For more info on this refer to help.sap.com at the following <a href="http://help.sap.com/saphelp_nw04/helpdata/en/65/6a563cef658a06e10000000a11405a/content.htm">link</a>.
    In the HTTP Adapter communication channel config in XI ID, Select the “Addressing Type” as HTTP Destination and in the HTTP Destination field enter the HTTP Destination name you created in the above step.
    Hope this helps.
    Regards,
    Sam Raju

  • How to make BPEL File Adapter read only new files?

    Hello
    we have BPEL processes that define to run from bpel component - file adatper-
    when a file come into location that it is path on the linux server . the bpel start run when "File Adapter" bpel component recognize that new file come to the location. its PollingFrequency define to 5. property name="DeleteFile" value="false" so the files remaine there.
    we want to migrate the bpel to new SOA version so we did export and deploy to new SOA Domain.
    the location of the file adapter is the same.
    but when the BPEL processes deployed its start to run for all the files that are in this location- that the file adapter define on .
    even the original soa tooks those files and start the BPEL processes for each one of them. also the new SOA that we did deploy to the BPEL processes take those files even if they are very old.
    we want the file adatper we take only new files . the start point is the time when we do deploy to the process so if we do deploy in 10:00 am we dont want this bpel will take files from 9:00 or earlier time
    Please help , how we can do this?
    Thanks

    thank you
    do you kno hat the value means in the example:
    Java mon amour: File Adapter metadata with SOA Suite
    <property name="jca.file.LastModifiedTime" value="1293041258635">
    what should I rite for read only the files that are only neer then yesterday?

  • File adapter reading while the file is still being written....

    Hello BPEL Gurus,
    I had a quick question around BPEL or ESB file adapter. Does BPEL file adapter starts reading a huge file that is being written or it waits until the writing process is completed and file is complete?
    Any response is highly is appreciated.
    Thanks.
    SM

    It goes like this. At every polling frequency, the adapter looks into the directory for the files with specified pattern (e.g. *.csv, MYCOMPANY*.txt) and specified condition, e.g. minimum file age. This means if there will be 2 files available with matching criteria, the both will be picked up and processed simultaneously in two different BPEL instances. No specific order of execution. However you will find the instances in BPEL console with little delay based on file size.
    Perhaps you can elaborate your scenario further. Do we have knowledge of the file name that are to be picked up from the folder. You may use synchronous read option. If you are using 10.1.3.4 version then you can specify the file name before file adapter makes a synchronous read into the give directory.

  • Ent-filename in HTTP adapter

    Hi...
    I have a sender file adapter and HTTP receiver adapter.
    In HTTP adapter, in the parameter "ent-filename" , I want to retain the name of the file that was picked.
    In Sender File adapter, I have checked the File Name under Adapter specific message attributes.
    In the HTTP receiver , I tried putting the value for ent-filename as %FileName% .
    When I check in sxmb_moni, it shows me the ent-filename = %FileName%, but not the actual file name.
    Kindly help!
    Thanks,
    Pratibha.

    Here is a blog how to provide the HTTP header fields:
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    If you do not want to write a UDF, you can do it like described in that blog:
    /people/stefan.grube/blog/2009/06/19/unknown-use-case-of-dynamicconfigurationbean-store-file-name-to-jms-header-without-mapping
    Put the modules in sender channel and use the parameters of HTTP adapter.

  • HTTP Adapter as Receiver

    Hi Everyone,
      I am using a HTTP adapter at the receiver side. I am not sure about what values I should give in the following parameters
       Addressing Type,
       Target Host,
       Service Number,
       Path.
    I'm getting an error when I go to "sxmb_moni" which says
      Error Category =     PLAINHTTP_ADAPTER
      Error ID           =     ATTRIBUTE_SERVER
      Kindly help..
    Regards
      Indudhar.

    this error might be due to bottleneck in the traffic.When the data comes in bulk some of the message is failing or when they are not able to connect to reciever server.
    PLAINHTTP_ADAPTER.ATTRIBUTE_SERVER error
    PLAIN HTTP ADAPTER -ATTRIBUTE_SERVER ERROR
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
    Plain HTTP adapter error
    PLAINHTTP_ADAPTER  -  ATTRIBUTE_SERVER
    check once again your HTTLP receiver adapter entries......care you getting this in the call adapter step of the Pipiline?

  • How to read an excel file which contains multiple tabs using File adapter

    Hi BPEL gurus,
    I have a requirement where i need to read an EXCEL file, which has three tabs inside the file. All the three tabs has data in it. I have seen few examples where file adapter reads an excel file with data present inside a single tab but not with multiple tabs.
    If anyone has worked on this scenario, please provide your suggestions/inputs/links etc.
    Thanks in advance

    hi Sathish,
    this might help
    PI/XI: Reading MS Excel's XLSX and XLSM files with standard PI modules - easily...
    thanks and regards,
    Praveen T

  • Busine Process Monitoring: define alert in XI for HTTP adapter

    Hi Experts,
    Iu2019m working with SAP XI 7.0 and solution manager 701. Iu2019m configuring BPM.
    I want to monitor the error in XI. I have three systems:
    Legacy System --> SAP PI --> ECC
    The legacy System, communicate whit SAP PI with HTTP request so the adapter  sender in PI is  an HTTP Adapter.
    I want to  monitor the errors in the http adapter so I created the  alert category HTTP_ERROR_ADAPTER in the abap stack (transaction alrtcatdef).
    When I try to configure the alert in the Runtime WorkBanch I canu2019t find u201CHTTP Adapteru201D in the field u201CAdapter Engineu201D . I can see only jdbc, rfc, mail u2026. Adapters.
    I think that I canu2019t see the http adapter because the HTTP Adapter is not a java adapter.
    So, how can I monitor the errors in the HTTP adapter sender in SAP PI? Can I monitor the http adapter sender  errors using the field u201CIntegration Engineu201D (u201Cerror categoryu201D = * and u201Cerror codeu201D = * )?
    Thank you a lot in advance for collaboration.
    Best regards
    Giou2019

    how can I monitor the errors in the HTTP adapter sender in SAP PI?
    Alert category option you are trying won't work. The only thing you may check in PI perspective is whether http service is running in smicm. I am not sure but CCMS monitoring could take care of this specific category. Other way without thinking about alerts could be using manual TCPGateway procedure to trace http calls.
    Can I monitor the http adapter sender errors using the field u201CIntegration Engineu201D (u201Cerror categoryu201D = * and u201Cerror codeu201D = * )?
    Integration Engine category here won't be actually the http related error, it would be pipeline steps related error.
    Regards,
    Prateek

  • Plain HTTP Adapter

    Hi All,
    I am working on a scenario ,
    ThirdyPartyDB(Oracle)  --> PI -->SAP.
    I am not using JDBC Sender between OracleDB and PI.
    As  client wants event based trigger from Thrid party system.When ever a event occurs,the third party system(DB) would send data to PI.So I suggested them to write a Stored procedure to convert their DB Table data to XML format and send it over HTTP .
    Now, I need to given them a HTTP URL where they need to send their data.So, in this case will I use Sender HTTP adapter or Receiver HTTP adapter?
    Please provide some heelp on the follwoing scenario DB(Stored Procedure) >HTTP Adapter->PI>Idoc->SAP.Could you please givea sample DB stored procedure as how to convert data in DB to XML and send that to HTTP URL.
    Venu

    >
    > 1. Should the URL which I need to provide the DB guys looks like this ,
    > http://hostname:port/sap/xi/adapter_plain?namespace=http%3A//svg.com/target&interface=mi_test&service=bs_sender_http&party=&agency=&scheme=&QOS=EO&sap-user=PIapplication user&sap-password=password&sap-client=001&sap-language=EN
    >
    Yes
    Do i need to register do setting XI for this URL , i mean exposing this URL etc...
    No need
    > 2.Assume that, the DB guy is sending two fields test1 and test2 , so would the XML look like
    >
    > <?xml version="1.0" encoding="UTF-8"?>
    > <ns0:mt_test xmlns:ns0="http://svg.com/target">
    >    <test1>value1</test1>
    >    <test2>value2</test2>
    >    <test3>value3</test3>
    > </ns0:mt_test>
    yes

  • Monitoring http adapter

    hi
    if message is picked from source and not reached xi how we will monitor for http adapter.
    regards
    raghu

    for HTTP adapter monitorig, there is no direct tcode......
    you can go to SM59 to see whether the HTTP connections between XI and R/3 are up and running......if your HTTP connections are working here, then your HTTP adapter will be working.......then go to SXMB_MONI to see the xml msgs
    Please check the blog on searching for messages with values in the payload using the TREX engine....The XI system has to be SP15 or above...
    /people/prasad.illapani/blog/2005/11/14/payload-based-message-search-in-xi30-using-trex-engine

  • PI 7.11 - Sync HTTP receiver adapter with response XML file

    Hi
    We have a File to HTTP scenario in which we need a sync HTTP interface. We send a file to the HTTP address and receive a XML acknowledge. As I read in this forum: sync HTTP interfaces are not possible with the "standard" HTTP adapter. So I found an entry which recommended to use the SOAP adapter instead.
    I configured it:
    - Do Not Use SOAP envelope
    - modules: RequestResponseBeans, CallSapAdapter, ResponseOneWayBean
    If i use this scenario, i get following error in the RWB - Message Display Tool:
    Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageId() of an object loaded from local variable 'message1'.
    I testet this scenario using CURL and it worked properly. Should this kind of scenario work with the SOAP adapter or do I need to buy/develop an own adapter? Is in NW7.3 possible to configure sync HTTP scenarios?
    Thanks in advance
    Michael

    Hi
    actually i use a simple HTTP receiver CC with the setting "XI Payload in HTTP Body" to send a XML datafile to a webpage (java servlet). This part works fine by now. But, this servlet would also send back a status information to the state of the received datafile, which I like to catch.
    e.g. HTTP response from the servlet (catched using CURL):
    HTTP/1.0 403 Forbidden
    Server: Apache-Coyote/1.1
    X-Powered-By: Servlet 2.4; JBoss-4.3.0.GA (build: SVNTag=JBPAPP_4_3_0_GA date=200801031548)/Tomcat-5.5
    Set-Cookie: JSESSIONID=OALHMomjR9TVgIATi8SrPQ**.ajp13_ls_1; Path=/ls
    Content-Type: text/xml
    Date: Tue, 06 Mar 2012 16:19:56 GMT
    X-Cache: MISS from proxy.xxxx.com
    Via: 1.0 proxy.xxxx.com:xxxx (http_scan/4.0.2.6.19)
    Proxy-Connection: close
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><!DOCTYPE transportordersfromls [ <!ELEMENT transportordersfromls (userid, clntid, msgid, (transportorderfromls+ | error))> <!ATTLIST transportordersfromls vers CDATA #REQUIRED> <!ELEMENT userid (#PCDATA)> <!ELEMENT clntid (#PCDATA)> <!ELEMENT msgid (#PCDATA)> <!ELEMENT transportorderfromls (refid, status)> <!ELEMENT refid (#PCDATA)> <!ELEMENT status (ok | error+)> <!ELEMENT ok EMPTY> <!ELEMENT error EMPTY> <!ATTLIST error reason (XMLError | SystemNotAvailable | ApplicationError | OTHER) #REQUIRED message CDATA #REQUIRED> ]>
    <transportordersfromls vers="1.0">
        <userid/>
        <clntid>XXXXX</clntid>
        <msgid>0</msgid>
        <error reason="OTHER" message="Access denied"/>
    </transportordersfromls>
    Michael

  • File fetch from external souce...  http adapter, file adapter, or...

    Hi - Hopefully this is a straight-forward question. I need to fetch a file from an external source (vendor) using a url that they provided us. Secondly, the url and file change each run. Here is the scenario:
    #1.
    - our side (PI 7.11) calls their webservice A to tell them to generate a report, and a report handle id is passed back to us (this part works)
    - our side (PI 7.11) calls their webservice B with that report id to get a https url string (this part works). E.g. return url is https://pvab70barp.companyb.com/reports/ODbsPPSBIQxPs/u1/u1_1307128013471215.csv
    - our side (PI 7.11) then needs to go fetch the contents of that file... again, the file is over at their site
    #2.
    The next time we run this we would get an entirely different url string
    So to solve #1, it seems to me that the HTTP adapter can be used (can it be used though given the url is https?). I don't think FILE adapter can be used as I believe it needs the file to reside on the local file system.
    To solve #2, it appears some dynamic configuration of the url is needed. Is their an easy way?
    If anyone has thoughts on these then I would appreciate hearing back from you with your comments. I have not worked with either of these adapters yet.
    Thanks,
    Keith

    1) You can use http or https connection to connect remote server.   HTTPS is not an issue. You create RFC destination of type H and there provide login credentials such as client certificates. Use that destination name in the http receiver adapter to use https.   Looks like to read the file that is on the http server, you might want to use Java proxy to achieve this. Simple HTTPS communication would not read the file. Or request the client to share it in the network shared drive. so that we can use File adapter to pulll the file.
    2) Yes you can use dynamic configuration in the mapping for the dynamic HTTPS URL.

Maybe you are looking for

  • Is there any patch for migrating database server from oracle to sql server

    we have very large application build using oracle forms 6i (release 2) & reports 6i & Oracle Database as back-end server. Now we want to port our application on sql server. Is there any patch available , so that we don't have to change anything at ap

  • After updating to Yosemite,  headers and footers no longer visible.

    After updating to Yosemite, all of my headers and footers have moved to the back layer, hidden by images and graphics. How do I move them back to the front so they are on top of images and graphics? This has affected all of my old documents where hea

  • Adobe CS5 design premium student uploading to 2nd computer

    I am getting an error message after loading adobe cs5 design premium student edition to a 2nd computer "adobe illustrator has stopped working".  It appears to be loaded but stops working immediately.  Any solutions?

  • Watermark In LightRoom 5

    I go to export photos and when I go to the add watermark section it's grayed out, I can not select a watermark. How can i fix this? Thanks

  • Naming WebServers in Farm

    i need setup a farm with 2 web servers this servers has name like: webserver01 and webserver02 I will set a load balancer (appliance or software) for distribute requests among 2 servers my question is if i can set a alias in the DNS: sharepoint.domai