Testing http to RFC

Hi all,
I have created an RFC with FileId as import parameter and FileContent as Export parameter. I am doing Http to RFC scenario. I am sending fileid as request thru http adapter, I shd get filecontent as response.I have defined all the objects in XI. how do i enter the data for RFC for fileid and filecontent fields so that i could test the scenario.
Regards,
Varun

Hi Varun
Send data through HTTP client, It will ask for server ,Http port ,Message interface and Namespace
That you would be having,
then send the data through Http client and keep Quality of service As Best effort so that it wait for response from RFC and you will see the file content in Http client only, There is provison for that  (Hope you have done all the Neccessary configuration in ID ).
If you want to test your RFC only then that can be done in ABAP Satck also.
Thanks
Sunil Singh

Similar Messages

  • Testing of HTTP and RFC adapters

    Hi SAP guru,
    Can u please help me in knowing that how we can test HTTP and RFC adapters in any scenarios.
    Thanks & Regards
    Vijaya

    hi,
    Testing RFC connection
    http://www.riyaz.net/blog/index.php/2008/02/06/understanding-the-rfc-adapter/
    You can test if HTTP adapter is working fine or not as mentioned below.
    1. test the adapter_plain service in TCODE SICF
    adapter_plain service can be found under /default_host/sap/xi/adapter_plain
    or
    2. TCODE : SMICM and then Shift + F1 and you can see the status of the HTTP server
    Regards
    joel

  • Cannot create HTTP client Exception in Http -- XI -- RFC scenario

    Hi,
    We are testing Http --> XI --> RFC scenario
    While testing this scenario from RWB we are getting following error message in the SXMB_MONI logs:
      <?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>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_CREATE_FAILED</SAP:Code>
      <SAP:P1>1</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Cannot create HTTP client (exception 1)</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    Following is the info from the Trace:
      <Trace level="1" type="System_Error">cl_http_client exc = argument_not_found</Trace>
    We have tried following things:
    1. In SICF we made sure the /default_host/sap/xi/adapter_plain is active
    2. Applied SAP Note: 716739
    Any response will be greatly appreciated.
    Thanks,
    Paresh

    Hi UDO,
    Thanks for your reply. The error was gone when I tested again this morning. I am guessing it must be the SAP Note 716739 that we applied and might not have refreshed the cache.
    I am still intereseted in confirming what exacly fixed this issue.
    As per your suggestion, I looked at the left Nav bar and the error was at the "Call Adapter" step. Even in the log message it says the same. The reciever/interface determination and mapping were successfull. I could successfully test the scenario in the integration directory.
    Here is what the 716739 Note said:
    Symptom
    If you call the Integration Server from a sending Integration Engine (proxy), the following error message occurs:
    Category = XIServer
    Area = INTERNAL
    Id = CLIENT_CREATE_FAILED.
    In transaction SXMB_ADM, you used the Configure Integration Engine function to enter a URL of the type http://<host>:<port>/sap/xi/engine?type=entry instead of a URL of the type dest://<name>.
    Other terms
    SICF, SXMB_MONI, SXMB_ADM, XI
    Reason and Prerequisites
    You have configured the communication route from the sending proxy (Integration Engine) to the Integration Server using the URL of the type
    http://<host>:<port>/sap/xi/engine?type=entry and have saved the logon data on the Integration Server in the Service
    /sap/xi/engine (transaction SICF).
    A program error has occurred: the communication log is not correctly set when the HTTP client is set up.
    Solution
    The problem is eliminated with SAP_BASIS Support Package 2. To eliminate the problem, you can use an URL of the type dest://<name>, where <name>  refers to the name of a HTTP destination that you have maintained with transaction SM59.
    Now, I was not using the proxies but Http post to XI. Do you guys also think this might have fixed my issue?
    Thanks,
    Paresh

  • ICM_HTTP_CONNECTION_FAILED error while testing HTTP RFC in ECC 6 IDES

    Hi Experts,
    I have ECC 6.0 IDES system - new installation. I have created client 100 which is a copy of client 000. Being an IDES system, client 800 is automatically created.
    While trying to connect this system to PI 7.1, I have created one HTTP RFC (H) in client 100 giving the details of PI system which is working perfectly fine. I have maintained the SLD details as well. But on testing the same RFC on client 800, its giving me the error as ICM_HTTP_CONNECTION_FAILED. I have created the user in PI which is maintained as well.
    Even If I create a new HTTP RFC connection in client 800, its giving the same error again. User in 100 & 800 is same and both having maximum authorizations. Any opinions on why I am getting the above said error in Client 800?
    Thanks & Regards,
    Naresh.

    Hi,
    SMICM Trace file gives the following log when I am testing the HTTP Connection SAP_PID from SM59 of XYZ Client 100:
    [Thr 896] IcmConnConnect: direct connect to <fully qualified hostname of PI system:50000>
    [Thr 896] NiHsLGetNodeAddr: found hostname '<fully qualified hostname of PI system>' in cache
    [Thr 896] NiIGetNodeAddr: hostname '<fully qualified hostname of PI system>' = addr xx.yy.zzz.lmn
    [Thr 896] NiIGetServNo: servicename '50000' = port C3.50/50000
    And when I am testing the same connection from SM59 of XYZ Client 800, getting the following log:
    [Thr 4928] NiHsLGetNodeAddr: hostname 'proxy' not found by operating system
    [Thr 4928] *** WARNING => Connection request from (55/18633/1) to host: proxy, service: 8080 failed (NIEHOST_UNKNOWN)
    RM-T55, U18633, 800 ADMINISTRATOR, 19:18:49, M1, W2, SM59, 3/2 [icxxconn.c 2341]
    I tried to take the restart of the system but still giving the same error.
    Any suggestion???
    Br,
    Naresh.

  • 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

  • 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

  • Testing HTTP Receiver adapter.

    Hi Everyone,
    Would anyone Please provide the sample details required for testing the HTTP Receiver adapter to check its fuctionality and the required output.
    Any Help would be appreciated.
    Regards,
    Varun

    Hi Varun,
    Check this for HTTP Adapter ..
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping
    HTTP to RFC - A Starter Kit
    regards
    Kishore

  • 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

  • HTTP to RFC Mapping error:com.sap.aii.utilxi.misc.api.BaseRuntimeException:

    hi all,
              I am doin a http to rfc scenario.In moni it is showing a mapping error in the request mapping and showing this error.In IR my mapping is working fine but in payload runtime i found the error is because it is showing <?xml version="1.0" encoding="UTF-8" ?> twice.Below is the payload message
    <i><?xml version="1.0" encoding="UTF-8" ?>
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Lspm_Request_SampledueGrid_MT xmlns:ns0="http://satyam.com/xi/LSPM">
      <KUNNR>100000</KUNNR>
      <FROM_DATE>15.11.2006</FROM_DATE>
      <TO_DATE>10.12.2006</TO_DATE>
    - <EQUIPMENTID>
    - <item>
      <EQUIPID>wb</EQUIPID>
      </item>
      </EQUIPMENTID>
    + <LOCATIONID>
    - <item>
      <LOCID>1</LOCID>
      </item>
      </LOCATIONID>
    - <OILID>
    - <item>
      <OILID>BP260</OILID>
      </item>
      BP260
      </OILID>
      </ns0:Lspm_Request_SampledueGrid_MT></i>
    I tested using view source code and removing the extra ]<?xml version="1.0" encoding="UTF-8" ?> in IR and it is working fine.
    Now my problem is how to rectify this error can anyone help me out please??
    thanks,
    Nisheeta

    hi,
         I tried to post the XML in the http page without the header and now it it showing a new error
    Result:
    <SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Name or password is incorrect (repeat logon)</SAP:AdditionalText></SAP:Error>
    http://cgnsap27:8000/sap/xi/adapter_plain?namespace=http%3A//satyam.com/xi/LSPM&interface=Lspm_SampledueGrid_Syn_MI&service=SATYAM_LSPM_BS&party=&agency=&scheme=&QOS=BE&sap-user=shailesh&sap-password=shailesh&sap-client=100&sap-language=EN
    wat does this mean??
    nisheeta

  • SIMPLE HTTP to RFC scenario.

    Hello Guru's,
           I want to perform simple HTTP to RFC scenario. Can any one tell me the steps for this scenario. Explain me with your example but is should be understandable for the beginners.( please don't ask my requirement ).
    If possible give me the link of blogs for this scenario.
    Thanks in advance.

    Hi,
    Refer these links:
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    XI http-adapter; http-post test tool?
    /thread/26215 [original link is broken]
    Regards,
    Nithiyanandam

  • HTTP to RFC scenario (Message not coming to PI)

    Hi PI Gurus,
    I got one HTTP to RFC scenario. Its working fine in production. where as it is not working in QA sys.
    Messages are not coming to PI (SXMB_MONI). Is anything is missed in SICF or SMICM.
    Thanks,
    Krishna

    Hi,
    How you are testing the interface.........if you are sending the message from HTTP client web page then check the error message in same web page.
    for reference check below link.
    http://www.****************/Tutorials/XI/HTTP/RFC.htm
    HTTP client code.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    Regards,
    Phani

Maybe you are looking for