HTTP Adapter Settings (Receiver Channel)

Hi Everyone,
I need some help with setting up HTTP Receiver Channel.
What I am trying to do is download some files from a URL. e.g www.xyz.com/download.asp.
So I have set up a RFC destination to Remote server then we through a dummy message from the HTTP client to trigger the channel. It is all good and working. However the issue part is username/password has to be sent as application/x-www-form-urlencoded or multipart/form using POST method.
So it has to go something like this username=abc&password=123
And this is the part where I am stuck. I have read a bit about it and sap documentation suggests using prolog and epilog but I don't seem to find any example of it anywhere. If someone has done anything similar can they please help. Can't find any source relevant.
regards

Hi,
Yes I understood your steps and the problem (actually after posting reply i had some doubts in my mind too, so went on a SDN forum hunt)
After doing a bit of research work my finding are:
1. IT is difficult to use http adapter with this content type as the credentials given in http adapter is not used when you have application/x-www-form-urlencoded. The thread which helped me  to understand was this
Regarding Content type application/x-www-form-urlencoded in HTTP Adapter
2. There in the thread stefan is proposing java proxy for doing this type of connectivity so next search tool for me was google. Doing a bit of search i found this SUN link http://developers.sun.com/mobility/midp/ttips/HTTPPost/
3. So as a solution for you I would propose to use a receiver java proxy and write the code as mentioned in SUN.
Hope this may be of some help to you
Regards
Suraj

Similar Messages

  • Configure plain http adapter for receiving message from an external system

    Hi,
    we use Pi/700.
    Now I have an external system and I have to use HTTP (plain) to send messages to XI (via plain http adapter).
    I have no experiences with HTTP!
    In the external system I can only configure "URL, Username, Password" for sending messages - that's all!
    What do I have to configure in XI (communication channel, abap-stack, java-stack,...)?
    I don't know the URL of my XI-system. Is there an transaction code to get this information?
    Why do I need a Username/Pasword?
    For testing I can use a "http-post test tool" I found here in this forum.
    Thank you all for any help!
    Regards
    Wolfgang

    Hi Hummel,
    In Exteranl System u have to use these values
    name="myhost"      value="xiserver"
    name="myport"      value="8000"
    name="mysystem"    value="XY_BSservice"
    name="myinterface" value="Order_out"
    name="mynamespace" value="urn:xi:hcl:powebapp"
    name="myqos"       value="BE"
    name="myclient"    value="300"
    name="myuser"      value="XYZCLNT"
    name="mypass"      value="xiuser"
    Here My system is the Business service created in Integration directory of XI, Interface is the one created in Integration Repository (This is Outbaound from external sys to XI)
    In XI U have to create
    Data Types : 1) Source Structure data type(from extenal sys)
                 2) Target structure (where u want to send from XI)
    Message Types : 2 with above DT's
    Message Interface: 1) Outbound, Async (Order_out)
                       2) Inbound , Async (for the target sys)
    Then Message mapping and Interface mapping as usual..
    And in ID u have to create 2 services one is XY_BSservice for sending system and the other is for receiving system...
    For sending system no communication channel required...
    Hope u will get idea from the above..
    Need any further u r welcome..
    Regards
    Sridhar

  • HTTP adapter as receiver to POST name-value pairs - How to?

    Hi,
    Scenario: HTTP Sender <> XI <> HTTP receiver (Sync throughout; no BPM)
    In this scenario, a HTTP channel is configured to the target URL to post data.
    The message mapping results in a XML. HTTP posts the same XML to the target URL.
    However,the target URL expects data Posted as name-value pairs.
    eg. eid=45678&zip=11011&ename=Tom%20Lee
    How can we configure HTTP adapter channel to post XML data as
    name-value pairs (as in standard HTTP Form Post)?
    Any pointers?
    thanx,
    Pops

    Hi Udo,
    I currently have a solution (simpler than having a BP), but do not expect it to be the right way of doing.
    I am using Java Mapping to convert the XML structure into Name-Value pair. So the output of Mapping is a string like how HTTP post is expected. So the interface mapping having multiple mappings - firstly, the original Message mapping, and then the Java mapping to do the conversion. So, with a small extension, the solution is still kept simple.
    However, I thought the POST requirement to HTTP URLs would be a common requirement, and expected the HTTP adapter doing this conversion. So, I am still looking for a straight solution (without any custom extensions).
    Any one else faced this situation?
    Can't this be handled by HTTP Adapter?
    -- Pops V

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

  • JMS Adapter Fail - Receiver channel. Details: Receive timed out

    Its an IDOC to JMS scenario. IDOC gets processed through the pipeline in XI successfully, can see the checkered flag.
    However in Adapter monitoring, JMS adapter is in red.
    The error text against the Communication Channel is "Receiver channel. Details: Receive timed out".
    I am trying to connect to the JMS queue provided by a third party on port 1100 ( as configured in JMS adapter).My initial analysis is to check if the port is open on the third party's firewall( Need to get the response back from them yet).
    However i would like to know, if there is something else that i should look into?

    Following are the error messages in RWB audit log for the message sent.
    Exception caught by adapter framework: The JMS channel with channel ID 3f307d6854683859b39f978a43e88872 is errornous. Details:Receive timed out
    Error Delivery of the message to the application using connection AFW failed, due to: The JMS channel with channel ID 3f307d6854683859b39f978a43e88872 is errornous. Details:Receive timed out.
    what might be the problem?

  • File- XI- J2EE application(HTTP adapter as Receiver)

    Hi all!
    My question is What else to be given in ID i.e., in my outbound communication channel: I have given the following:
    Adapter Type:  HTTP
                 Receiver
    Transport Protocol: HTTP1.0
    Message Protocol:XI payload in HTTP body
    Adapter Engine:Integration server
    Addressing Type: URL Address
    Targer Host: localhost(My J2EE application resides here)
    Service number:7001
    Path:/InvokeJ2EE/SendName
    Authentication Type:
    Username:xiappluser
    password:xxxxx
    Lonon language: EN
    Content type: text/xml
    XML code: UTF-8
    I have tried many blogs, but i didn't get get correct response!

    HI
    GOOD
    GO THROUGH THIS LINKS
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping%3Fpage%3Dlast%26x-maxdepth%3D0
    http://www.sun.com/third-party/global/sap/collateral/SunSAPWP_final.pdf
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm
    THANKS
    MRUTYUN

  • Receiver HTTP Adapter Dynamic Query String

    Hello,
    I am using HTTP Adapter on receiver side.
    My URL is  <b>http://server:port/abc/def?xyz=123&luw=345</b>
    When I am using Adapter specific attributes.
    If I check apply Parameters and pass
    Parameter 1 as xyz and Parameter 2 as luw and pass their values through dynamic configuration will they get appended to the dynamic querystring
    http://server:port/abc/def at the end and I get back the complete URL.
    Can this be achieved? I am stuck on this.
    Regards,

    Srihari,
    The best way to debug this and check what is happening would be to use the TCP gateway tool as shown in this blog by Stefan Grube.
    /people/stefan.grube/blog/2007/03/29/troubleshooting-soap-http-and-mail-adapter-scenarios-with-tcpgateway
    Send the request to the TCP gateway and forward it from there to the correspionding target.
    You will be able to see the URL being passed including the Query String parameters.
    Regards
    Bhavesh

  • SSL in HTTP adapter

    Hi All,
    Would I be able to use an HTTP adapter for HTTPS connection. As currently i am unable to see any SSL feature in HTTP adapter in Comm Channel.
    Please guide me with info and links as to how would I be able to enable it. I am using PI7.1
    Thanks,
    Kevin

    Hi,
    you could define the SSL settings in the RFC connection that is referenced from the Adapter (select HTTP Destination
    as Addressing Type).
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/frameset.htm
    Regards
    Patrick

  • HTTP ADAPTER SETUP

    Hi friends,
    What address should i give to partner so that partner can send me message on XI system.I m having Xi system and partner is having BC system. And if I am not wrong,I have to use Http adapter for receiving message..
    help me in setting up http adapter.
    Thanks,
    Brij...

    HI Brajesh
    Do the following.
    !. Create DT for source and target
    2. Create MT for the DT above
    3. Create Message interface. for the source message create Outbound Sync or Async as per requirement and for target message create Inbound message interface type Sync or Async
    Here if you expect a response then use Sync else Async
    4. Create MM for the MT created above
    5. Create IM for the Message Interfaces created above.
    IR is complete
    Go to ID
    1. Create sender service (business system or service)
    2. Create Receiver service
    3. Create a Congi scenario.
    you can use the config wizard also.
    Create a Sender HTTP channel and receiver as per requirement
    DO SA, RA, ID, RD
    Now give the URL for the sender HTTP posting.
    use the parameters for the outbound interface, namespace in the URL as discussed above
    Thanks
    Gaurav

  • SAP PI 7.1 HTTP Adapter

    In my scenario, SAP PI 7.1. needs to talk to a 3rd party EDI system via web services. SAP PI is using HTTP adapter to exchange XML messages for both inbound and outbound with the EDI system. Questions:
    1. If SAPI PI sends for example 100 (different) messages to the EDI system every day, will PI make 100 web service calls to the EDI system to send each individual message?
    2. Please explain how PI will use the HTTP URL to send the messages to the EDI system. Any document/blogs to explain how HTTP adapter works for exchanging messages with third party systems (web service capable)? Did not find anything good one in SDN.
    3. Any disadvantage of using HTTP adapter, e.g. for high volume scenarios?

    > 1. If SAPI PI sends for example 100 (different) messages to the EDI system every day, will PI make 100 web service calls to the EDI system to send each individual message?
    Yes, it will use 100 cals to process 100 individual messages.
    >
    > 2. Please explain how PI will use the HTTP URL to send the messages to the EDI system. Any document/blogs to explain how HTTP adapter works for exchanging messages with third party systems (web service capable)? Did not find anything good one in SDN.
    >
    When you use HTTP adapter in receiver side, you will specify address of the target system in URL format, that means data will be send it to specific UIRL adress.
    > 3. Any disadvantage of using HTTP adapter, e.g. for high volume scenarios?
    i prefer using SOAP adapter for web service cals..HTTP adapter give good perfomance.
    Regards,
    Raj

  • 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

  • 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

  • Please anyone explain me about HTTP adapter

    Can anyone explain about HTTP Adapter (sender,receiver) End to End implementation with screen shots?

    HI
    HTTP Adapter
    The HTTP Adapter allows connection between the Integration Server and application systems. External systems connect to the Integration Server using the native HTTP interface (HTTP payload without SOAP envelope) which is converted to XI protocol (SOAP with header enhancements). The HTTP Adapter allows synchronous and asynchronous message functionality
    http://help.sap.com/saphelp_erp2005/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    http://www.erpgenie.com/netweaver/xi/adapters/index.htm
    Differences between adapters
    You can use the HTTP adapter. Refer to following SDN TV demo of the HHTP adapter for details steps involved into it.
    https://media.sdn.sap.com/SDNTV/main.asp?mediaId=107
    HTTPS using XMLSPY
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
    The HTTPS configuration data of the Adapter Engines has to be configured in the SLD.
    More Information in the "SAP Security Guide XI"
    http://help.sap.com/saphelp_nw04/helpdata/de/f7/c2953fc405330ee10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/2de3be0382df45a398d3f9fb86a36a/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/65/6a563cef658a06e10000000a11405a/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/2de3be0382df45a398d3f9fb86a36a
    cheers
    Edited by: vemuganti naga phalguna on Jul 24, 2008 12:16 PM

  • How to send the payload to a jsp using receiver Http adapter?

    Hi experts,
    I have this scenario from Legacy to XI to external app server.I have a test jsp to execute that functionality .Its a jsp which has 1 textarea named "test" and when I click on the submit buton I get a response back.This way I am able to test this independently.Now from XI when I am executing my scenario I am getting status code '1250' and message as ' http request(test) is null'.Now in the scenario in http adapter I just provide the target host : ip of server ,
    service number : port no ,
    path: the container or the request handler. But this scenario fails and gives me the above erroneous response.Now Basically I am not able to get how to send the value to the textarea "test"? please provide help as soon as possible.Do we have to put the name of the jsp in the "path" in http adapter and use prolog as test=.I tried this but it doesnt work.
    Is there any way to check the URL that it forms after appending the querystring in the url ...?
    So please provide help on this or suggest a solution to [email protected] as soon as possible.....
    Thanx in advance.
    Akshata

    hey Shekhar,
    thanx for that prompt reply but I have configured the communication channel in the same manner as suggested by u.
    actually I have this jsp page http://xx.xx.xx.xx:8080/abcdef/try/efg.jsp where there is a textarea "test" which has to be filled and there is a submit button.When I test this http client i.e the above jsp page independently then it goes to handler
    http://xx.xx.xx.xx:8080/abcdef/trial/    And it gives a proper response message after clicking on the submit button.
    now I want to carry out the same using receiver http adapter. I need to pass the value for this inputfield names "test" on that jsp . so right now I have configyured the adapter as
    addressing type: url
    target host : xx.xx.xx.xx
    service no:8080
    path : here I have given the path of handler i.e /abcdef/trial I tried giving the jsp page also but logically I guess it should be the handler.
    content type: text/xml; charset=iso-8859-1
    xml code: UTF-8
    Mask special characters (URL escaping) checked.
    now since the name of the inputfield is "test" in the prolog I gave test=
    But it doesnt work I get this error "http request parameter [test] is null" in the response message  which I guess suggests that it is not able to send the value for the field"test" to that handler.Please suggest how to send this and tell me if there are any other configurations that I have to do in the receiver communication channel.
    Thanx ,
    Akshata

  • Unable to clone File Adapter receiver channel for parallel processing

    Hi Experts,
    I am using variable substitution for File - RFC - File with out BPM scenario(using request response, oneway bean).
    While i placed the file in the sender FTP folder, the file didnt get picked up, but in communication channel monitoring, i am getting error ' Unable to clone File Adapter receiver channel for parallel processing'.
    Can anybody provide me suggestions to solve this error.
    Note : without variable substitution , the interface is working good.
    Is it due to, i am trying the source structure field in response file adapter?

    Hi,
    In your CC, do you use some additional paramaters ?
    like these one of point 47/48 of [Oss note 821267 - FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter|https://service.sap.com/sap/support/notes/821267]
    Maybe there is conflict with a parallel connexion and the bean used to do asynch-synch bridge...
    Mickael

Maybe you are looking for

  • Remove "time" from Month view on Published Calendar

    I am trying to remove the time from published calendars when in the "Month" view. The time is not showing on ical on the computer... but shows up on the published calendar. This is taking up tooooo much room on the calendar. Thank you for any assista

  • SELECT INTO ( variable ) STATEMENTS NOT WORKING FOR SYBASE TABLE AS VIEW

    Dear Experts, We have connected our 9i db with Sybase db using Hs connectivity. and then we have create the view in oracle db for SYBASE_TABLE as SYBASE_TABLE_VIEW. ALL THE INSERT, UPDATE AND DELETE COMMANDS ARE WORKING BUT THE select Into (variable)

  • I need a excel document to be used on a mac.

    I need a excel document to be used on a mac.  I cannot unlock or use the document.  Is there a way to do this? THANK YOU!

  • Error creating Web Service proxy

    Hello. I'm using JDeveloper 11.1.1.4.0 on Windows 7 for creating a Web Service Proxy on a service deployed on localhost. In the wizard everything runs fine but once I choose finish I receive the following error: java.lang.ClassCastException: oracle.j

  • JSR 82 for the 2.5.2 wireless toolkit

    Can someone please confirm if the implementation for JSR 82 is included in the Sun Java Wireless Toolkit 2.5.2 for CLDC?