HTTP-- XI-- RFC-- HTTP

Hi XI gurus, I am new to SAP XI and am looking for an example of HTTP-XI-RFC-HTTP scenario.  Any help would be greatly appreciated.
Buster Hale

Hi Buster,
I understand from you question that you are looking for an Example of HTTP to RFC (Synchronous) using XI. One example could be:
Outbound Interface:
Post sales order number from HTTP client.
Inbound Interface:
     Call synchronous RFC BAPI_SALESORDER_GETSTATUS to retrieve status from R/3.
Destination:
Response XML can be displayed on the browser.
Let me know if it helps.
Cheers
sharmistha

Similar Messages

  • HTTP(s) - RFC - HTTP(s) scenario is not working synchronous.

    Dears,
    I have the following scenario.
    our PI system will receive an XML over HTTP(s) from outside company.
    and then our system will send a confirmation to that company.
    I already configured it with synchronous outbound Interface.
    Now, I can post xml to PI URL . and it reached  RFC but no response.
    I checked the SAP XI runtime workbench - adapter logs and i found :
    RfcAdapter received a asynchronous message. Trying to send tRFC for YISU_SAPI_BCONRQ with TID XI051MbW017j2emZuP2jN5nm.
    RfcAdapter received a asynchronous message. Trying to send tRFC for J2EE_GUEST with TID XI051MbW017j2emZuP2jN5nm.
    My interface is synchronous but in the logs showed asynchronous!!!!
    What is the problem????
    Thanks and Regards,

    http://****:50000/sap/xi/adapter_plain?namespace=urn%3ASALE_P&interface=SI_SALE_OB&service=CC_SALE&party=&agency=&scheme=&QOS=EO&sap-user=***&sap-password=***&sap-client=240&sap-language=EN
    just remove the QOS itself. By default it is BE
    http://***:50000/sap/xi/adapter_plain?namespace=urn%3ASALE_P&interface=SI_SALE_OB&service=CC_SALE&party=&agency=&scheme=&sap-user=*&sap-password=**&sap-client=240&sap-language=EN
    refer;
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/frameset.htm

  • Http to RFC [http adapter issue] - The system can not locate the resource.

    Hi,
    When I post the message with http client, I am getting the below error.
    Line 33: The system can not locate the resource specified.
    i.e --> xhttp.send (payload);
    It is a java script error.
    Result URL:
    http://xxx.xxx.xxx.xxx:8000/sap/xi/adapter_plain?namespace=http%3A//www.cisco.com/httptobapi&interface=MI_request_response_cisco&service=BS_HTTP_CISCO&party=&agency=&scheme=&QOS=BE&sap-user=xxxxX&sap-password=xxxx&sap-client=500&sap-language=EN
    Any idea what went wrong?
    Thanks
    Balaji

    hi,
    I have given all the details correct.
    Server Host,Port, Client, Sender Service, Interface and namespace and then payload.
    It looks like problem is with http client. It is not posting the data correctly.
    I tried on 2 different systems.
    On one system it gave a problem at line 33 which i mentioned at the first post.
    And second system gave line: 27 Permission denied.
    Line 27 :  xhttp.open ("POST", reqString, false);
    Payload:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_request_sales_cisco xmlns:ns0="http://www.cisco.com/httptobapi">
      <Customer_Number>1002</Customer_Number>
      <Sales_Organization>1000</Sales_Organization>
    </ns0:MT_request_sales_cisco>
    Thanks
    Balaji

  • Regarding http to rfc scenario

    Hello guys,
    Can any one help as how to complete a http to rfc scenario

    hi satish,
    Check these links too.
    FAQ's on http to rfc
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/httpToRFCSynchronousScenario-FAQs&
    Unable to view payload in HTTP to RFC Scenario
    /message/266750#266750 [original link is broken]
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    regards
    Ramesh P

  • I can not find the messages in sxmb_moni in http to rfc scenarion

    hi i'm using http client tool when i send the message its working fine i'm getting the response, but i can not find that message in sxmb_moni in http to rfc scenario
    can anyone help me

    Hi lnaki vila
    I'm using pi 7.0 version
    i can see the other scenarios like SOAP to RFC, SOAP to IDOC,FILEto IDOC
    in sender side i'm not using any communication channel and adapter engine i'm just using http client tool for testing purpose
    i'm getting the response that's fine because its a synchronous communication
    i checked sxmb_adm in that -->integration configuration LOGGING parameter of category RUNTIME is set to  ENGINE_TYPE and current value is HUB(Integration server)
    thanks in advance
    regards
    Satish

  • Logon Error Message ( HTTP to RFC )

    Hi all,
    While  I am practicing HTTP to RFC Scenario..
    When I  SEND data from test client ..It is asking for SAP Web Application Server (SID)
    User ID and Password..
    When I am giving my XI ID and Password ( and also i tried BASIS ID ,J2ee_admin, Even i assinged ROLE SAP_XI_APPL_SERV_USER ) it is giving Error like this
    -->Logon Error Message
    -->Error Code: ICF-LE-http-c:001-l:E-T:1-C:3-U:35-P:35-L:3
    -->HTTP 401 - Unauthorized  Your SAP Internet Communication Framework Team
    -->Call of URL http://serverhost:8000/sap/xi/adapter_plain terminated due to error in logon data
    -->Logon performed in system OPD. </li><li> Logon performed for client 001, user xiappluser, and language EN.
    -->HTTP 407 Proxy Authentication Required - The ISA Server requires authorization to fulfill the request. -->Access to the Web Proxy service is denied. (12209)<BR>Internet Security and Acceleration Server
    -->The gateway could not retrieve the requested page
    These errors I am getting..
    please guide me to complete this scenario.
    Thanks in advance,
    Ramesh.
    ( I am unable to search SDN ,due to some upgradation is going on )

    Hi Sreeramoju,
    1. HTTP-401 :
            If the Integration Server is accessed by means of an HTTP proxy server,the  credentials must match those that you made in transaction SICF in the Integration Engine. If you do not specify a user and password combination, or the combination is invalid, the system will terminate each attempt to access the Integration Engine with the message Transport Exception:  http-Error 401 – Unauthorized.
    The user must have the authorizations of group SAP_XI_APPL_SERV_USER on the Integration Server.
    If you want to use a different client or language to the default setting in the Integration Engine when logging on, you can also set the following parameters:
    &#9675;     XI.Client=<client-no>
    &#9675;     XI.Language=<language-id>
    2.HTTP 407: Proxy Authentication Required" in SAP XI J2EE AE: check the SAP note: 992690
        Make sure that you have specified the proper host and port values, in the text box that appears when you check the configure proxy check box(in receiver adapter).
    Looks like the webservice requires a proxy authentication.
    Select the check box "configure proxy user authentication"(in receiver adapter) and provide the correct username and password.
    *Pls: Reward points if helpful*
    Regards,
    Jyoti

  • Issue in HTTP to RFC scenario

    Hi Experts,
    i am working on HTTP to RFC scenario.From Http client i am sending data to integration engine.
    i am unable to see any messages in SXMB_MONI.Means data from HTTP client not reached Integration engine.
    why the data is not reaching integration engine?
    This scenario needs any configuration settings in XI or any changes in HTTP client??
    Plz suggest me in this issue?
    Regards,
    Bhuvan.

    Hi Experts,
    thanks for giving replies.
    The response i am geting in HTTP client:
    Result:  
    <!   DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>Error Report</title>
    <style>
    td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}
    A:link
    A:visited
    A:active
    </style>
    </head>
    <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
    <tr bgcolor="#FFFFFF">
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  404 &nbsp Not Found</b></font></td>
    </tr>
    <tr bgcolor="#3F73A3">
        <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>
        <td height="23"><img width=1 height=1 border=0 alt=""></td>
        <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/7.00 </b></font></td>
    </tr>
    <tr bgcolor="#9DCDFD">
        <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>
    </tr>
    </table>
    <br><br><br><br><br><br>
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
    <tr bgcolor="#FFFFFF">
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  The requested resource does not exist.</b></font></td>
    </tr>
    <tr bgcolor="#FFFFFF">
        <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>  Details:</b></font></td>
        <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre>  Go to <A HREF="/" target="_parent">main page</A> of this application!</pre></font></td>
    </tr>
    </body>
    </html>
    Regards,
    Bhuvan.

  • Error in scenario HTTP - XI - RFC SYN

    In the monitor this registering the following error
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: No response available.</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    So that this can happen
    Thank's

    Hi,
    1. Look into the Receiver RFC adapter and check its status.
    2. Check the RFC request Message. Is it valid? Try to execute the RFC with the same data and check if it works fine.
    Also refer into this blog and cross check the steps,
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    Regards
    Bhavesh

  • HTTP to RFC (Calling BAPI)

    Hi,
    I am working on creating a Purchase Order in SAP system by calling BAPI's from XI using RFC adapter.
    I defined the following in IR:
    1. Created data types for mapping with BAPI request and response.
    2. Created messsage types and assigned corresponding data types to the message types.
    3. Created one Message Interface (Outbound/Synchronous), Output message - request message type, Input message - response message type.
    4. Create request and response message mapping and one Inteface mapping (with request tab and response tab) properly assigned.
    Defined the following in ID:
    1. Created HTTP business system (no communication channel)
    2. Created communication channel for receiving system (SAP).
    3. Created receiving determination and interface determination, receiver agreement, no sender agreement.
    I sent XML message (required data to create purchase order) from HTTP client but I am getting the response as <b>Unable to determine name of mapping program</b>, my Interface Determination has proper Inbound Interface (ZBAPI_PO_CREATE) and Mapping program (PO_I_MAP). But Why am I getting the reposnse as I said above in my HTTP client?
    Appreciate your help,
    Thanks and Regards,
    Jagadish.

    Hi Jagadish,
    The error lies in Message Mapping .So please check it once again .You have mentioned your steps it seem there is problem in Message mapping..
    Please look at the following Steps..
    IR:
    1.Import Corresponding RFC(BAPI). No need to create Interface Objects( Data type, Message type,Message Interface ) for SAP( RFC ) system..
    2.Create Interface Objects For HTTP System.As you told it is synchronous.
    3.Perform Two Message Mappings
      (A).HTTP Request <--> RFC Req
      (B).RFC  Response<-->HTTP Res
    4.Perform one Interface Mapping which includes Request and Response Mappings ..
    5.Activate all objects..
    ID : what you have done is ok..
    URL: http://<hostname:port>/<path>?<query-string> Make sure your URL is correct or not for( sender HTTP )..
    I think it will hepl you , if it is solved please assign points . If you have any doubt you can call me...
    Thanks
    N.Prasad Babu
    iGATE Global Solutions Hyderabad : 98490 65377

  • HTTP to RFC scenario

    I have been trying to configure the XML to IDOC scenario given in the XI starter pack . Does anybody have the sample XML and XSD files mentioned in the scenario ?
    There are two messages in the XSD, purchase order request and purchase order response. It would be a great help if anybody could supply me these XSD and also the XML test documents involved in the workshop scenaro.
    Also could someone inform me what tool i can use to create custom XSD ?
    Thanks,
    Joe

    Thanks for your reply, Honey.
    I'll Try to explain my problem a little bit better :
    I have data coming in from a third party system , in XML (B2MML format). I need to create an XSD according to this incoming data , and then do data transformation in the message mapping level to put this data into a BAPI call, or maybe a proxy call.
    So as a beginning, i started with the starter pack scenario for HTTP to RFC . They have not provided the XSD in the PDF document that i have , so i was wondering if anybody would have the XML which i could then use.
    I have come across another problem here, which is how to put the XSD on the XI server. Whenever i try to import the XSD, the file-open browser points to the XI server to pick the file from, and i dont have access to that server. Any idea how i could get around this problem too ?
    Thanks ,
    Joe

  • HTTP to RFC synchronous scenario Issue

    Hi Folks,
        Currently I'm working on a HTTP to RFC synchronous scenario.  Everything went well till i triggered the message. While triggering the message i'M GETTING IS AS BELOW
    Result:
    http-Status:  500 Internal Server Error
    Payload:
    <SAP:Error>
    <SAP:Category>Application</SAP:Category>
    <SAP:Code>MAPPING.EXCEPTION_DURING_EXECUTE</SAP:Code>
    <SAP:P1>com/sap/xi/tf/_MM_Comcode_</SAP:P1>
    <SAP:P2>java.lang.NullPointerException</SAP:P2>
    <SAP:Stack>java.lang.NullPointerException thrown during application mapping com/sap/xi/tf/_MM_Comcode_: </SAP:Stack>
    </SAP:Error>
    I also tried executting the message testing tool to see the trace and the below result I got
      <?xml version="1.0" encoding="iso-8859-1" ?>
    - <Top>
      <First>BeginTrace</First>
      <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
      <Trace level="2" type="T">......attachment XI_Context not found</Trace>
      <Trace level="3" type="T">Mapping is determined</Trace>
      <Trace level="1" type="T">Interface Mapping http://www.http-rfc.com IM_Comdet</Trace>
      <Trace level="3" type="T">Object ID of Interface Mapping CA9DBC0BCB27311FBAA3C4CE387CEC3B</Trace>
      <Trace level="3" type="T">Version ID of Interface Mapping 226C2EB123A711DFC0F4FAEBC0A80020</Trace>
      <Trace level="3" type="T">Mapping Steps 1 JAVA com/sap/xi/tf/_MM_Comcode_</Trace>
      <Trace level="3" type="T">Dynamic Configuration Is Empty</Trace>
      <Trace level="2" type="T">Mode 3</Trace>
      <Trace level="3" type="T">Creating Java mapping com/sap/xi/tf/_MM_Comcode_.</Trace>
      <Trace level="2" type="T">Call method execute of the application Java mapping com.sap.xi.tf._MM_Comcode_</Trace>
      <Trace level="2" type="T">Java mapping com/sap/xi/tf/_MM_Comcode_ completed. (executeStep() of com.sap.xi.tf._MM_Comcode_</Trace>
      <Trace level="3" type="T">Dynamic Configuration Is Empty</Trace>
      <Trace level="1" type="E">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
      </Top>
    But still I'm not able resolve this issue kindly help.
    Regards,
      Santosh

    Looks like there is some mapping problems ,may be the RFC connection is not properly configured .Here is the link to configure the connection between ECC and PI :
    http://wiki.sdn.sap.com/wiki/display/XI/ConnectionSettingsbetweenECCandPIsystem
    May be there is no value retrieved from the ECC system so it is saying null value.
    For proper configuration check you can refer the following blog:
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    I am a beginner so not the full answer is there but may be this would help you.
    Regards
    Ravi Anand

  • Http to RFC

    Hi,
    I have done a simple http to RFC scenario.
    when i test the scenario, the message is sent but i am not able to see anything in sxmb_moni or message monitioring.
    Also, the RFC adapter is working fine.
    i could see the error message in the sxmb_moni earlier when there was an error in the rfc adapter.
    what can be the prob?

    Hi ,
    See this Also
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    HTTP 403 during cache refresh of the adapter framework - Refer SAP Note -751856
    Note :::804124
    Note :::807000
    Reward Points If Helpful
    Regards
    Khanna

  • Http to RFC or SOAP to RFC (synchronous)

    Hi,
    I need to connect PHP with RFC via XI/PI
    Request will be send from php developed web pages to R/3 (RFC) to get data back to web page.
    I think to resolve this scenario 1u2019ve two options
    1: SOAP to RFC (synchronous)
    2: HTTP to RFC (synchronous)
    Can you please suggest me the scenario?
    Thanks for you time
    Regards,
    Farrukh Ghani

    Hi Ghani,
    The two options you mentioned we can use,but it depends on how PHP web site going to  send data,if it is going to send webserive then use SOAP adapter,you are expecting response ,the RFC wil work as synchronous.
    If it is not  Web Service other option is HTTP,receiver would be RFC only.
    How to configure SOAP->XI>RFC or HTTP->XI-->RFC scenarios,simple search in sdn will give many blogs,search in sdn,
    if you unable to find right one let me know..
    Regards,
    Raj

  • Error occurs in HTTP to RFC

    HI,
    When doing the exercise in TBIT40, I meet with a problem in HTTP to RFC. It always returns me such error msg in the html client: <SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: java.lang.NullPointerException</SAP:AdditionalText></SAP:Error>
    I don't know what's the exact reason for that, however, I am sure the BAPI program is not called. Using SXMB_MONI, we can see the response message  (from Service: HEDCLNT001  Namespace: urn:sap-com:document:sap:rfc:functions    Interface: ZBAPI_PO_CREATE) with above error and no XML payload at all. There's no error in the request message. I suspect if the communication channel is not created correctly as the document doesn't give a clear description on creation steps.
    My question:
    1. Is there any method to test if the RFC could be called properly from XI side using the communication channel I created?
    2. What is the possible reason for the error I just met with?  Any available solution?
    Thanks & Best Rgds,
    Jerry

    The error segment in the response message: 
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: java.lang.NullPointerException</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Jerry

  • HTTP to RFC Interface Determination problem

    Hi experts,
    I am doing HTTP <-> RFC scenario mentioned in blog
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    almost everthing is done; but while configuring the interface determination, i am not able to see the inbound interface.
    your valuable help would be appreciated
    Regards
    Sumit Bhutani

    Hi Bhavesh,
    Thanks for your quick response; this problem has been resolved, but while testing my scenario using RWB i am getting this error.
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">CANNOT_READ_PAYLOAD</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Unable to read payload from the message object</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    Please suggest on this
    Thanks
    Sumit

Maybe you are looking for

  • 9i:Can Page number be obtained before the entire generation of report ?

    Dear all: Suppose there is a report, the report is printed on both side of paper The page no of report (current logical page no and total logical page no) reset at each customer, For each customer, i want to print a logo on the front side of the last

  • CRM 5.0 outbound queues to Mobile sales

    Hi all, We have upgraded from CRM 3.0 to CRM 5.0. I am looking at the outbound queues in SMQ1 that are bound to Mobile sales Sites and am not finding any data bundles other than the name of the Replication Object name in the LUW's of these queues. Bu

  • Java Class error in Reports 10 g

    Hi. I was trying the barcode report. After importing the classes , i written code in the before parameter trigger. In the trigger there is code like Barcode.BarcodeObject := Barcode.new(); While compiling it is showing an error in this place as "comp

  • Dynamically build onEnterframe function

    Hi I was wondering how to build dynamically onEnterframe functions. I want that my first onEnterframe() uses the values of the first time the for loop runs, the second onEnterframe uses the values build in the second time the for loop runs, the third

  • LR4: auto-assigned placenames not written to XMP on export?

    When pinning a photo to the map, and get the GPS coordinates into metadata. I also get information in the IPTC fields for ISO Country Code, Country and State/province, but they are marked in italics and with a grey-coloured typeface. I use DNG raw fi