Skip to Content
avatar image
Former Member

Synchronous Interface

Hi,

Does synchronous interface means I have to use BPM.Is it possible I can do without a BPM..

eg..HTTP -> RFC

i submit a form and expect a result from rfc

Kindly let me know your comments on how to go about such a scenario.

THnks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 20, 2006 at 04:41 PM

    Hi,

    a purely synchronous scenario can be done without the usage of BPM. BPM is only needed if you have to bridge between synchronous and asynchronous.

    Regards

    Christine

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 20, 2006 at 06:14 PM

    I guess I found http -> rfc synchronous can be done without using bpm.

    But my problem is what is the url that the submit(form post) will be pointing to.will it be one i use to retrive the integration builder(sxmb_ifr) and the same port...or will be something else for the http client to capture it...(SICF stuffs)

    This is what I got from help.sap.com.

    http://<hostname:port>/<path>?<query-string>

    what should be the path...and query-string i guess i can pass what ever is required for the sender service etc...

    but for the payload what is the parameter name i should pass.i am planning to having now as a text box and enter the payload xml in it.

    when the rfc returns the values it would be xml format i guess i need to map it to an html document.....how do i do that...just transformation would still give me xml file again..

    Hope I am clear...

    NEED YOUR EXPERT COMMENTS...

    THnks

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Chinna,

      When u submit the form u should pass the following one

      function SendData() {

      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 + '&sap-client=' + document.myform.myclient.value +'&sap-user=' + document.myform.myuser.value +'&sap-password=' + document.myform.mypass.value +'&sap- language=E';

      AND finally

      <input type="hidden" name="myhost" value="xiserver">

      <input type="hidden" name="myport" value="8000">

      <input type="hidden" name="mysystem" value="PurchaseOrder_BSservice">

      <input type="hidden" name="myinterface" value="PurchaseOrder_out">

      <input type="hidden" name="mynamespace" value="urn:xi:hcl:powebapp">

      <input type="hidden" name="myqos" value="BE">

      <input type="hidden" name="myclient" value="300">

      <input type="hidden" name="myuser" value="XYZ">

      <input type="hidden" name="mypass" value="abxde">

      <input type="button" value="SUBMIT" onclick="return SendData()">

      Hope this can help u ...as i have used this for Http --XI --RFC

      Check this once and try by installing Tomcat server or other tool...

      If any queries do reply...

      Regards,

      Sridhar

  • avatar image
    Former Member
    Jun 21, 2006 at 03:46 PM

    when I submit to the url(xi url) with the plain_adapter as the path it is going for HTTP rc 500 internal server error....

    I am not using the code given in the course material since it is javascript submit which call my local page itself ( i have created a html in the desktop).

    NEED SOMEMORE INPUTS TO CRACK THIS.

    THNks

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi ,

      Is it because of URL somewhere-Also make sure that XI Service is up and running (Both J2EE and ABAP stack)

      Refer this SAP note-804124

      Regards,

      Moorthy

  • avatar image
    Former Member
    Jun 21, 2006 at 09:31 PM

    Hi,

    Using the test code for html it worked fine.

    2 things.

    one The messages are not shown in the monitor(sxmb_monitor).only if it fails due to some reason it shows up.

    two, i tried to create a simple html page submitting to the url with the ?+all the name,value pair.but it would not work reason is i don't know how to pass the payload.the payload i pasted it in the textarea and the name of the textarea is payload.

    in the monitor i am seeing in the main document....

    payload=%3C%3Fxmlversion%3D%221.0%22encoding%3D%22UTF-8%22%3F%3E%0D%0A%3Cns0%3AMT_FORMxmlns%3Ans0%3D%22http%3A%2F%2FZPROTOTYPE%22%3E%0D%0A++%3CVALUE%3E10%3C%2FVALUE%3E%0D%0A%3C%2Fns0%3AMT_FORM%3E

    I need the xml i put in the text area...

    Add comment
    10|10000 characters needed characters exceeded