To configure HTTP adapter as sender?

Hi all,
I have read that HTTP Adapter could be configured as senderor receiver but i am not able to do the same.
Please help me out.
Thanks,
Divya

Below is an HTML used for testing purposes.  Copy-n-paste the code to a file and name it something like httpXiTest.html.  Execute the html file by double-clicking it and see the effect.  Use it as an example for what you wish to do.
==================================================
<html>
<head>
<title>Send XML Data to XI System</title>
<script language="javascript">
<!--
function SendData() {
  var mypath = document.myform.filename.value;
     var myescns = escape(document.myform.mynamespace.value);
     var mycall = 'http://'
     + document.myform.myhost.value  + ':'
     + document.myform.myport.value + '/sap/xi/adapter_plain?bs='
     + document.myform.mysystem.value + '&namespace='
     + myescns + '&interface='
     + document.myform.myinterface.value + '&qos='
     + document.myform.myqos.value;
     var xmlstream;
     if (document.myform.selectXML[0].checked == true) {
          xmlstream = new ActiveXObject("ADODB.Stream");
          xmlstream.Mode = 3;                          // 1=read  3=read/write
          xmlstream.Open();
          xmlstream.Type = 1;                          // 1=adTypeBinary  2=adTypeText
          xmlstream.LoadFromFile(mypath);
     else {
          xmlstream = document.myform.xmltext.value;
     var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
     xmlhttp.Open("POST",mycall,false);
     //xmlhttp.setRequestHeader("Content-Length",xmlstream.Size);
     xmlhttp.setRequestHeader("Content-Type","text/xml");
     if (document.myform.selectXML[0].checked == true) {
       xmlhttp.send(xmlstream.Read(xmlstream.Size));
     else {
       xmlhttp.send(xmlstream);
     XICall.innerText = mycall;
     XIAnswer.innerHTML = xmlhttp.responseText;
function getFile() {
  var mypath = document.myform.filename.value;
     var ForReading  = 1;
     objFSO          = new ActiveXObject("Scripting.FileSystemObject");
     objTextFile     = objFSO.OpenTextFile(mypath, ForReading);
     var filearray   = "";
     for(var n=0;!objTextFile.AtEndOfStream;n++) {
          sRead = objTextFile.ReadLine();
          filearray += sRead + "\n";
     objTextFile.Close();
     document.myform.xmltext.value = filearray;
function setHost(n) {
     switch(n) {
          case 1:
               document.myform.myhost.value = "myxiserver.company.com";
               document.myform.myport.value = "8000";
               break;
          default:
               document.myform.myhost.value = "";
               document.myform.myport.value = "";
function setNamespace(n) {
     switch(n) {
          case 1:
               document.myform.mynamespace.value = "urn:sap-com:document:sap:rfc:functions";
               break;
          case 2:
               document.myform.mynamespace.value = "urn:sap-com:document:sap:idoc:messages";
               break;
          default:
               document.myform.mynamespace.value = "";
//-->
</script>
</head>
<body>
<form name="myform">
<p>XI adapter parameters: </p>
<p>
<table border=0>
<tr><td>hostname:</td><td>
<input type="text" name="myhost" size=50 maxlength=100
value=""><br/></td></tr>
<tr><td></td>
<td>
<input type="radio" name="selectHost" value="" onClick="setHost(1)">Example
<input type="radio" name="selectHost" value="" onClick="setHost(9)" checked>Other
</td></tr>
<tr><td>port:</td><td>
<input type="text" name="myport" size=50 maxlength=100
value=""><br/></td></tr>
<tr><td>sender service:</td><td>
<input type="text" name="mysystem" size=50 maxlength=100
value=""><br/></td></tr>
<tr><td>sender interface:</td><td>
<input type="text" name="myinterface" size=50 maxlength=100
value=""><br/></td></tr>
<tr><td>sender namespace:</td><td>
<input type="text" name="mynamespace" size=50 maxlength=100
value=""></td>
</tr>
<tr><td></td>
<td>
<input type="radio" name="selectNamespace" value="" onClick="setNamespace(1)">RFC
<input type="radio" name="selectNamespace" value="" onClick="setNamespace(2)">IDoc
<input type="radio" name="selectNamespace" value="" onClick="setNamespace(3)" checked>Other
</td></tr>
<tr><td>quality of service (EO/BE):</td><td>
<select name="myqos">
<option value="BE">Best Effort</option>
<option value="EO" selected>Exactly Once</option>
</select>
<br/></td></tr></table>
<p></p>
<input type="button" value="Send XML File" onclick="return SendData()">
<p>XML Text:
<table>
     <tr>
          <td><input type="radio" name="selectXML" value="1">from File</td>
          <td><input type="radio" name="selectXML" value="2" checked>from Text</td>
     </tr>
     <tr valign="top">
          <td>
               Path to XML file: (e.g. C:\temp\test.xml)
               <br><input type="file" name="filename" size=30 maxlength=80 value="" onChange="return getFile()">
          </td>
          <td>
               Text for XML:
               <br><textarea name="xmltext" cols="50" rows="20" wrap="off">
               </textarea>
          </td>
     </tr>
</table>
<p>XI call:</p>
<div id=XICall></div>
<p>Answer:</p>
<div id=XIAnswer></div>
</form>
</body>
</html>

Similar Messages

  • Settings  if  http adapter is sender side?

    Hi ALL,
    my doubt is if http adapter is sender side how to make settings to before configuring a scenario, because we don't have sender comm. channel, sender agreement.

    Hi-
    Check this help
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm
    Also check this thread
    How to send XML file into XI using sender HTTP adapter

  • How to pass the SIN using a plain http adapter in sender side.

    Hi all,
       How to pass the SIN(System Identification Number) using a plain http adapter in sender side.
    Regards,
    Venu.

    You can set it in a specific HTTP header (as explained here : http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm) ...
    Rgds
    Chris

  • Can i use combination peoplesoft system  and http adapter on sender side

    hai
    can i use combination peoplesoft system  and http adapter on sender side
    is their any modifications i have to do on module tab
    can any body tell me how to post data to http adapter
    is there any application gui is there to post data

    Hi
    can i use combination peoplesoft system and http adapter on sender side
    >>>Can you explain further what this means.. You can use HTTP adapter on the sender side.
    is their any modifications i have to do on module tab
    >>> No module processor allowed for HTTP adapter.
    can any body tell me how to post data to http adapter
    is there any application gui is there to post data
    >>> Check this document. It gives you information on how to build HTTP based web GUI.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    Thanks
    Satish

  • Http adapter at sender side for synchronous interface

    Hi SapAll.
    here for one synchronous interface we using http adapter at sender side.
    i just want to know on how i can get the sender ip adress or url through which they sending the data.
    will be waiting for best asnwer.
    regards.
    Varma

    Http adapter at sender side for synchronous interface
    i cont see any messages in xi producction.
    Is LOGGING_SYNC enabled for your production box....also is the problem just about the visibility of the messages or is your scenario itself not getting executed?
    At least the sender application might have received some error response if posting message to XI was a failure....also if possible check the message monitoring in RWB if you feel an error has occured.
    Regards,
    Abhishek.

  • HTTP Adapter - Problem sending message to XI.

    Hi,
      We have configured a scenario in IR and ID for the HTTP -> XI -> RFC message flow. We have created all the configuration objects (Receiver determination, receiver agreement, interface determination) in ID except the Sender Agreement (There is no Sender HTTP Adapter). So to trigger this interface we are sending the message to the following URL using a client HTML page.
    http://IPAddr:8000/sap/xi/adapter_plain?namespace=http://sap.com/xi/XI/TestPOC/r3&interface=MI_File_RFC_WeyPOC&service=SourceBS_XI&QOS=BE&sap-user=J2EE_GUEST&sap-password=JGUEST&sap-client=001&sap-language=EN
    After submitting the contents in HTML page, it is asking us SAP Web Application Server user id and password. Which user id shall we give here. We have tried giving the J2EE_ADMINISTRATOR user id and it's password but it gives "the requested resource does not exist" error messgage.
    How to resolve this problem ?
    Thanks and Regards,
    Lalit.

    Hi Lalit,
    try the xiappluser or a copy of it, like Sudhir said.
    But there is something else...
    You must code special characters such as forward slash (/), hyphen , period (.), or colon ( with escape characters (for example, %2F for /, %2D for -, %2E for .,and %3A for :).
    ( http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm )
    Yours,
    Thomas

  • Transaction code used to configure HTTP Adapter?.

    What transaction code we use to configure HTTP adaptor?.
    SMICM
    Is this correct?.

    Ash,
    Yes. Please see this weblog for some more help:
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    Just go this url and click the first one for HTTP adapter presentation:
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=http%20adapter&cat=sdn_all#
    Also check this threads:
    in SMICM-->How to Activate HTTP Services
    SMICM services
    ---Satish

  • Configuring Mail Adapter as sender

    Hello,
    I'd like to ask for some help with configuration of SAP XI mail adapter as sender. I made a communication chanel with mail adapter type and specified transport protocol POP3, URL (pop3://localhost), user, password and poll interval. The problem is that XI doesn't trigger the
    process, in other words it doesn't connect to my email server to receive the mail. What could be wrong? To test the environment, I made a test case withmail adapter as a receiver - and it works ok - it sends mail via my email server - so SMTP is working fine.
    Thank you,
    Igor

    > I'd like to ask for some help with configuration of
    > SAP XI mail adapter as sender. I made a communication
    > chanel with mail adapter type and specified transport
    > protocol POP3, URL (pop3://localhost), user, password
    > and poll interval.
    The correct URL is: pop://localhost
    Which Mail-Server do you use?
    Regards
    Stefan

  • ERD not determined while using plain http adapter as Sender

    Hi All,
    ERD is not determined while using Plain Http Adpter as Sender.Is there any way to determine ERD table by using Http adapteras Sender?
    Regards,
    Rajesh

    Are you doing synchronous scenario???
    if yes should have leaving the value for the Software Component Version empty for Receiver determination .
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    /people/jin.shin/blog/2007/12/11/sap-netweaver-process-integration-enhanced-receiver-determination-for-synchronous-scenarios

  • Do Http Adapter has sender CC

    Hi Experts,
         I am in a confusion that :- I think i am asking you a small question, please correct me if i am wrong
    1. Do IDOC Adapter has both Sender / Receiver IDOC ( my assumption is it has only receiver Adapter )
    when i searched SDN, i am getting both sender and receiver Adapter, but as far as now i used only receiver Adapter.
    2. Do HTTP Adapter has both Sender / Receiver IDOC ( my assumption is it has only receiver Adapter )
    when i searched SDN, i am getting both sender and receiver Adapter, but as far as now i used only receiver Adapter.
    Please help me, with clear explanation.
    Nissi

    >
    NissiRaj wrote:
    > 1. Do IDOC Adapter has both Sender / Receiver IDOC ( my assumption is it has only receiver Adapter )
    > Nissi
    We have IDoc Adapter for sender / receiver side, When we are working on ABAP Stack systems like Integration between ECC System to PI System, we do not need to use IDoc Sender side.
    But when we are using 3rd party system (JAVA Based some systems using IDoc) for integration with PI & sender communication is using IDoc, at that time we will use sender side IDoc Communication Channel.
    >
    NissiRaj wrote:
    > 2. Do HTTP Adapter has both Sender / Receiver IDOC ( my assumption is it has only receiver Adapter )
    > Nissi
    Same thing is for HTTP Adapter for proxies from ECC System to PI System, we do not need sender HTTP Communication Channel Setting.
    But for 3rd party systems using HTTP Communication, we need sender side HTTP Communication Channel.

  • Configuration FTP Adapter XML - Sender

    Hello:
    I need to configure dynamically the IP, directory and file name of the FTP through a Sender file/FTP adapter; in other words, I need to set those parameters in the XML message. The IP address, directory and file name of the FTP are obtained in the first message and match with another, which is sent to the adapter (communication channel) to get the data of a file.
    I would appreciate your help.
    Thanks a lot!

    Hi Julio,
    Configuring dynamically the parameters for FTP sender adapter is not possible, due to two reasons,
    1. FTP sender is a pull adapter, so you cannot set parameter (in runtime) and fetch the data.
    2. FTP sender is a async adapter
    Try to have a soap sender with AXIS framework (thought i have never tried, but this looks promising).
    Regards
    Suraj

  • Why v r not configuring IDoc & HTTP adapters on sender side

    Hi Gurus,
    Y v r nt configuring the Idoc and HTTP adapter on sender side.
    But on d receiver side v r configuring. Why?
    IDoc and HTTP Adapters are built on ABAP stack.That's y v r nt configuring on d sender side.It is the same thing also on d receiver side also.But y v r configuring on reciever side.
    Could u guide me.

    Hi Kumar,
    Check this thread for your query
    Adapters
    IDOC adapter resides on Integration server, so Integration engine takes care of the conversion format from IDOC to XML
    but in but XML to IDOC is done by Receiver IDOC adapter
    Sachin
    Edited by: Sachin Dhingra on Jan 10, 2008 4:03 PM

  • Reg:http adapter-sender side

    which http client tool is used to send the request if we are using http adapter on sender side?

    Hi Chandra,
    HTTP: Hyper Text Transfer Protocol is a stateless prtocol to send a request and get a response back on that. For your query is there any specific client used?
    Ans: No, you can use any client means the ip address of the system from which you are making request called client and to which you are making request called server. http is nothing but some set of rules to exchange data between two systems.
    One more thing to mention is "some jave code is written for http and that is register on W3C" so that different server can connect to each other using it.
    See the link below:
    http://www.w3.org/Protocols/
    Please always Rewards if helpful.
    BR,
    Alok
    Edited by: Alok Sharma on Mar 18, 2008 12:49 PM

  • Interconnect HTTP Adapter Send / Response

    Hi,
    I'm setting up an Interconnect HTTP adapter to send XML data to an outside partner. Based upon my XML I get a response XML file from that partner. The XML I'm sending is a list of requests. The response XML is either a list of verifications and/or errors. I really need that response. I'd like to take that response and put it back on the Hub queue to be handled in our system.
    From what I see in the log the send is successful. The response XML from the partner is printed correctly in the log.
    I looked at the documentation for the http.reqreply mode. However, that appears to be used only for a receiver to send a reply back to a sender. I really want the opposite - I want my sender to send back the response.
    This is my first time using the HTTP adapter. I readily admit I may be missing something.
    I appreciate any help!
    Thanks!

    Hi,
    The Integration Interconnect forum can better assist you with this question. Please repost your question to that forum.
    Thanks,
    Eng

  • Using extra attributes in plain Http Adapter

    Hi All,
    I am using a Plain HTTP Adapter to send messages to XI. This is working fine but i'm facing a problem with HTTP variables.
    I need to send a flag as an http variable that identifies the message as a new message or not. It's important for me that this variable is reachable in the Receiver Determination so i can create a routing rule based on that. I've read this help from sap (<a href="http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm">Configuring the Sender Plain HTTP Adapter</a>), but i couldn't find a place to set the "Adapter-Specific Message Attributes".
    Thanks a lot for any help.
    Regards,
    Leonardo Tayt-son

    In your Sender HTTP Adapter, check out for "Adapter-Specific Message Attributes" section (usually, it's the last section). Mark the "Use Adapter-Specific Message Attributes" checkbox. Then, mark "Apply URL Parameters" checkbox and enter a name for Parameter 1 (for example, New).
    Then, your incoming http URL shoud be something like http://<application_hostname>?New=true .
    And in your receiver determination, go to condition editor for each Business System, and enter expression editor for left expression. Check "Context Object" and select "URLParamOne" parameter from "http://sap.com/xi/XI/System/HTTP" namespace. For the right expression, use the value you want.
    Them you can use your condition like
    If (URLParamOne = true) send to BS 1
    If (URLParamOne = false) send to BS 2
    Regards,
    Henrique.

Maybe you are looking for