cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronous Interface

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

You dont need BPM for using with HTTP to RFC scenarios , or sync scenarios :

Hope htis might give u an idea:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3bf550d4-0201-0010-b2ae-856...

Vara

[PLEASE REWARD FOR POSTING]

Answers (3)

Answers (3)

Former Member
0 Kudos

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...

Former Member
0 Kudos

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

moorthy
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

bhavesh_kantilal
Active Contributor
0 Kudos

hi,

This thread has the HTTP test tools code,

/message/266750#266750 [original link is broken]

The payload will be sent as an XML exactly as you want and it will receive it also in XML format.

Regards,

Bhavesh

sridharreddy_kondam
Active Contributor
0 Kudos

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