Is it possible to use HTTP adapter?

Hi All,
interface will be trigged by ECC to run once a day. The purpose of this interface is to update ECC exchange rates with the exchange rates file provided by the Central Bank of Brazil.
The file is available in the web site: http://www. XXXX and  its name changes depending on the date.
The format is YYYYMMDD.csv. Example: 20100419.csv
The scenario will be Abap proxy <-> PI <-> website (Http / soapu2026 whatever) (Syncronous as the date must be sent to build the correct filename).
My main question is: how can I pick up this csv file from the website? Is it possible to use HTTP adapter?
Thanks,
Satya Kumar

Hi ,
i am not sure about this,i wolukd prefer developing JAVA Proxy or File Adapter . try this code it read the data from website, try in you stand alone application,it is able to read or not.
you will face two problems,you have to convert CSC file to XML it is not possible in HTTP Adapter,
import java.lang.*;
import java.util.*;
import java.net.*;
import java.io.*;
class URL2AC
        public static void main(String args[]) {
       try {        
          URL url = new URL("http://www.XXXXXXX.com/raj.txt");
          URLConnection uc = url.openConnection();
          BufferedReader in = new BufferedReader(new InputStreamReader(uc.getInputStream()));
          while (in.readLine()!=null)
               System.out.println(in.readLine());
       catch(Exception e) {
          e.printStackTrace();
Regards,
Raj

Similar Messages

  • Using HTTP adapter with no namespaces

    Hi,
    Is there anyway to use HTTP adapter when the provider does not accept the namespaces. The HTTP binding wizard requires a targetnamespace to be defined in the request and response xsds that we have to use.
    Thanks & Regards
    Siva

    Bernd we are trying to do the same thing only with the soap adapter.  I'm convinced that no one really knows how to do it.  We can't even find an SAP CONSULTANT that has done it .. at any cost!
    If you hear anything good .. please let me know - my email is [email protected]
    I think the nightmare is coming in because when SAP bought the j2ee ( application server ) they never really have integrated it so it's very confusing if the settings need to be done on the ABAP side or the J2EE side via visual administrator.  In addition most Basis guys are only experienced in the ABAP side and not the J2EE.

  • [CS3 JS SDK] Possible to Use HTTP URLs for Links?

    I am attempting to use JavaScript to implement a connector from CS3 (InDesign/InCopy in my case) to our content management system. Our CMS provides an HTTP-based API. By using the HttpConnection object (from the Bridge code, see posts on "httpwebaccess library") I can access our repository using HTTP URLs and, for example, get an InDesign document or INX file (and the UI support in CS3 scripting makes it possible for me to build all the UI components I need without having to write a true plugin).
    However, what I *can't* seem to do is create Link objects that use a URL, rather than a File, to access resources.
    My goal is to be able to store in our repository InDesign documents that use URLs to other resources in the repository for links (e.g., to graphics and InCopy articles).
    However, as far as I can tell from the scripting documentation and my own experiments, the URL property on Link is read-only in JavaScript (even though the scripting API HTML indicates it's a read/write property) and Link instances can only be constructed using File objects.
    My question: have I missed some trick in the scripting API (or elsewhere) that would allow me to create links that use URLs instead of files (and having done so would InDesign resolve those URLs?)? Our repository does support WebDAV, so that might be an option, but it would depend on mounting WebDAV services in consistent places on client machines, which is dicey at best, given the weak nature of the WebDAV clients on both Windows and OS X).
    Or are my only options to either copy linked resources to the client's local file system (or a shared network drive) or implement a plugin that implements my desired behavior for links?
    And if the answer is a plugin, will that even work?
    This is in the context of CS3. Has the Link mechanism changed at all in CS4 such that I could do what I want in CS4 where I cannot in CS3?
    Thanks,
    Eliot

    Hi,
    It is not possible to use HTTP URLS in CS3. You will have to create a plug-in to use Custom Data Links.
    I think it is possible to use HTTP URLs in CS4 as per the User Guide.
    Regards,
    Anderson

  • Can I get a response back when I use HTTP adapter

    Hi ,
    I am doing a integration between SAP and ThirdParty Product using PI 7.1.
    The scenario is ThirdParty -> PI -> SAP ,using HTTP adapter between ThirdParty and PI , and IDoc adapter between SAP and PI.
    So,its a HTTP sender and IDoc receiver.
    So I was just curious to know if the IDoc posting failed in SAP ,can I send a response from SAP to Thirdparty regarding the failure along with some error message.
    Thanks for your responses.
    Venu

    Hi,
         It may lead to some timeout problems if you design your scenario as synchronous i.e sending response back to HTTP..
    as SAP may take time to process idoc and need to provide response back to PI ..by that time the connection may become invalid and thirdparty may receive response as timeout error...
    As anyway PI has the option of Alert managements..you can trigger the error mail to the third party recipients for letting them the status...
    HTH
    Rajesh

  • XI message with Attachment using Http Adapter

    Hi ,
    We are using XI/PI 7.0 with Sp09 and Sender Application is SRM and Receiver is Ariba MarketPlace.
    We are trying to Send PO with Attachments like Word, PDF etc from SRM to Ariba using Https adapter and from SRM we are using ABAP Proxy. When I did the testing with out any special config, I was able to send the attachments (I can see word doc as part of the payload-attachment) to XI from SRM but this attachment is not going through https adapter from XI to Ariba?
    I have read some posts on this but I could not find the answer for my situation. One of the solution is that we can use SOAP adapter but we don't want to use Soap for some reasons.
    Please give your thoughts.
    Thanks in Advance.
    -Laxman

    > Thanks for your replies, I am little confused, based
    > on your references http can't support attachments.
    That is true.
    > Also sap help link says Http adapter doesn't support
    > attachments and XI adapter also doesn't support.
    That is not true. XI adapter (in fact we do not talk of an adapter) supports attachments.
    > It means Proxy also shouldn't support because proxy is
    > nothing but XI adapter.
    This is true, ABAP or Java Proxy are like XI adapter. Therefore it supports attachments.
    > But When I send PO with attachments from SRM using
    > Proxy connection I was able to pass through XI. So
    > how proxy was able to send the attachments and this
    > is contradicts to the help documentation.
    The online help is wrong.
    > We don't want to use SOAP because we are already
    > using https adapter and this scenario is in
    > production also if we go with SOAP then we have to
    > re-import the digital certificate in Java Engine for
    > SSL. Attachments are the new enhancement only.  
    I do not see another solution besides using SOAP adapter in so-called non-SOAP mode. Yes you have to reimport the certificates to J2EE stack.
    Regards
    Stefan

  • 3rd party to sap using HTTP adapter

    Hi Folks,
        I'm sending some IDOC to sap from the 3rd party. I have to use HTTP adapter as sender and IDOC as receiver adapter.
    Can you please suggest me how to configure teh sender side. As I know there will be no such configuration for the sender adapter as it is HTTP then how the HTTP adapter will get the data sent by the 3rd party and how it will pass it on to the idoc adapter ?
    Regards....

    If you like to have more details about the http url
    then refer the below link
    http://help.sap.com/saphelp_nw70/helpdata/en/c9/775b3b82646c3ae10000000a114084/frameset.htm
    Rajesh

  • Scheduling of message using HTTP Adapter.

    Hi All,
    The scenario is SAP ECC to SAP PI to SAP MII, and we are using HTTP adapter on the receiver side.
    The requirement is that, the messages should be sent to MII in the order in which ECC sends it to PI.
    Can anyone please help me on how this can be achieved.
    Thanks and Regards,
    NehaSingh

    Hi Neha,
    If it is IDOC to HTTP scenario and you use EOIO also you will face a big problem.
    It will not work. I have faced the same problem.
    Suppose at a same time ECC genaretes 100 IDOC then then in intregration engine it may not reach at same sequecnce as IDOC no.
    You can go with IDOC packageing in this case in ECC.
    In ECC send the IDOCs as packages.
    Also in PI create one Sender IDOC channel with package size.
    then before your actual mappinng create a simple mapping program to sort the IDOC based on IDOC number. Then do the actual mapping.
    Dont forget to create an Unbounded IDOC structure as source side in Mapping,
    Edited by: Debashish on Jul 1, 2011 2:29 PM

  • Is it possible to use HTTPS in HTTP recv adapter using Address type as URL

    Hi All,
    If some one who has tried HTTPS communication using HTTP receiver adapter using URL address as Address type can you please guide me what are the steps need to be done.
    Address type is a parameter in HTTP adapter setup .
    Regards,
    Reddy

    Use the below code to get the reference of EntityManagerImpl and get the reference of Session from EntityManagerImpl and then you can call the Stored Procedure.
    private EntityManagerImpl emImpl;
    emImpl = (EntityManagerImpl)Persistence. createEntityManagerFactory("TFDModel").createEntityManager();
    Session session= emImpl.getActiveSession();
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("CONVERT_FEET_TO_METERs");
    call.addNamedInOutputArgumentValue(
    "LENGTH", // procedure parameter name
    new Integer(100), // in argument value
    "LENGTH", // out argument field name
    Integer.class // Java type corresponding to type returned by procedure
    ValueReadQuery query = new ValueReadQuery();
    query.setCall(call);
    Integer metricLength = (Integer) session.executeQuery(query);
    Regards,
    Vinay

  • Building arguments of URL when using HTTP Adapter

    I am using the HTTP adapter in one of my interfaces and need to call an url that has arguments. For e.g.
    http://dpw6716.roseville.mycompany.com:8058/accelis/servlet/publish?type=create&ItemId=1018&Name=Harshad&Desc=FromXI
    In the above URL the <b>ItemID</b> and the <b>Description</b> are dynamic. Is it possible to build such dynamic urls and used in the http adapter configuration? if so how? Can context objects be used here for the dynamic part?
    Thanks,
    Harshad

    Hi Harshad,
    it is possible to build up dynamic URLs, but the way is quite complex. You have to configure a XI-mandant as "Application System" to use it as allocator. Your message will be received there in an inbound-proxy (ABAP), where you have to implement a dynamic WAS-Request (class CL_HTTP_CLIENT).
    Regards Udo

  • FCC using HTTP Adapter

    Hi Gurus,
    I am using the HTTP sender adapter in my scenario. it HTTP to IDoc scenario. The source system will send flat file I need to Map the same to the target Idoc Structure.
    is it possible to use the FCC in this case ? if not then please suggest me how to handle this
    Thanks in advance
    Viny

    Easy way, create HTTP to File (NFS) and File to Idoc. There is no standard way possible.
    Regards,
    Prateek

  • Req/Reply message using HTTP adapter

    I am using a HTTP Adapter to receive a request message from a client application and sending a response back to the client. The response is being sent by the adapter is XML with a HTML wrapper. However, the client application can't accept HTML; we have to send pure XML.
    Is there any easy way to change this in adapter.ini? Can we do something using ReceiverCustomizer? or we have to do something in the TransportServlet?
    -----------------------------------------Current Response message-------------------------
    <html><head><title>TransportServlet </title></head>
    <body><h1>TransportServlet</h1>
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
    <ns1:response userId=""
    xmlns:ns1="http://quikpayasp.com/namespace/activity">
    <account type="StanfordCardPlan">
    <currentBalance></currentBalance>
    <accountActivityDate></accountActivityDate>
    </account>
    </ns1:response>
    </body></html>
    --------------------Expected----------------------------------------------
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
    <ns1:response userId=""
    xmlns:ns1="http://quikpayasp.com/namespace/activity">
    <account type="StanfordCardPlan">
    <currentBalance></currentBalance>
    <accountActivityDate></accountActivityDate>
    </account>
    </ns1:response>
    Appreciate your response.

    Try using D3L mode.
    babu

  • Want to send information in Header dynamically using HTTP adapter using post method

    Hi ,
    I have a requirement to send below information in http Adapter header dynamically using post method. which will be authenticated by third party system.
    Authorization : WSSE realm="SDP", profile="UsernameToken", type="AppKey" X-WSSE : UsernameToken Username="XXXX", PasswordDigest="Qd0QnQn0eaAHpOiuk/0QhV+Bzdc=", Nonce="eUZZZXpSczFycXJCNVhCWU1mS3ZScldOYg==", Created="2013-09-05T02:12:21Z"
    I have followed below link to create UDF
    http://scn.sap.com/thread/3241568
    As if now my third party system is not available while sending request I am getting 504 gateway error. is there any approach I can validate my request is working fine?
    Regards,

    Hi Abhay,
    Correct me if I'm wrong but I think WSSE requires a SOAP Envelope. If that is the case, there are two approaches: the first one is to use SOAP Axis and the second one is just to build SOAP Envelope via Java mapping.
    You also need to test it successfully externally, capture the request and replicate it in XI.
    Hope this helps,
    Mark

  • Error on Send Port configured using HTTP adapter

    Hi All,
    For Load balancing purpose we have created new host and host instance and changed send handler for send port configured using 
    plain HTTP adapter.
    We are getting below error after change:
    A password is mandatory if UserName is specified
    Parameter name: Password
    Please advice.
    Thanks
    Pooja Jagtap Software Engineer KPIT Cummins

    Have you updated the password for your Host instance . Try restarting your host instance once .
    Thanks
    Abhishek

  • Logon Problem in to third party HTTP Server using HTTP Adapter

    Hi All,
    I am trying to use a receiver HTTP Adapter to communicate to third party asp based Webserver.
    The Server expects the content type as application/x-www-form-urlencoded.
    So, in the HTTP receiver communication channel I gave content type as application/x-www-form-urlencoded. The Problem is that now we are getting logon error message from the application though we use the correct user and password provided by them.
    They have given us a HTTP test tool which is perfectly working with the user ad password used in PI HTTP Adapter receiver channel.
    kindly share your thoughts on this issue.
    Thanks in advance.
    Regards,
    Sudharshan N A

    Satish,
    I have used Non-SAP logon only..
    I doubt that the problem may be due to some encoding issue.. since the webserver expects a different Content type (application/x-www-form-urlencoded).
    I donno if my doubt is logical
    thanks.
    Regards,
    Sudharshan N A

  • Consume webservice using HTTP adapter

    Hi PI Experts,
    Can we consume a webservice using a HTTP adapter?
    If yes can anyone share some knowledge, how to do so?
    Thanks & REgards,
    Krishna

    Hi Krishna,
    I think this can be done using FLEX.(not sure).
    Ref:  http://wiki.sdn.sap.com/wiki/display/EmTech/ConsumingABAPWebServicesusing+Flex
    Thanks,

Maybe you are looking for

  • How can you create a disk to install i-tunes

    A friend of mine cannot download itunes on to her labtop for work because of certain restrictions on the computer. They told her she would be able to install the program from a disk. Nonetheless, I have not firgured where or how to accomplish this. I

  • Authorisation check in ABAP Query..

    Hi Gurus   Can we put Authorization check in ABAP Query ? Your help is appreciated. Regards, Gajanan

  • Add new iCloud email to Apple ID

    My Apple ID is based on my AT&T email address.  I created and added an iCloud e-mail address as an alternate email address to my Apple ID. Because of some issues, I need to create a new iCloud e-mail address and use it as the alternate email address.

  • Cannot erase the middle name field in contacts?

    I cannot erase the Middle Name Field in Contacts, is this a bug or is there a trick?

  • Start up screen with TC / TM

    When i turn on my macbook the first thing that happens is a new box appears with 'connecting to back up server', the screen then goes into the TM mode and offers me the back ups going back in time. This is pretty annoying as when I boot up this isn't