cancel
Showing results for 
Search instead for 
Did you mean: 

Invoking a XI interface in MI on server side.

Former Member
0 Kudos

Hi,

I am a novice to MI. I have got a scenario where I need to invoke a XI interface once I sync my MI application. I have got the http URL and the XML msg which needs to be posted to this URL. I was wondering how I implement this on the server side.

I am not even sure whether I should stick to using the XI interface or create my own BAPI wrappers for the functionality I desire (this has been implemented using the XI interface).

Any kind of input on this will be helpful.

Thanks in advance.

Best Regards,

Nakul

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nakul,

first you need to decide the Sync Type. MI offers Generic Sync and SMart Sync.

Generic Sync e.g. is just some kind of a Remote function call. Say, the client puts the input parameters as key - value parameters in the Sync container and names the FM. The FM is executed and the result is again put as key - value pairs into the return container.

In the FM you can do whatever abap is able to (e.g. Call XI...)

Smart Sync is a BO oriented Sync Framework. Here you need to obey the requirments (BAPIs.)

Rgds THomas

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello All,

I want to invoke the XI interface from the MI Server. I would like to know how to post an XML msg from the server side. Is there any way I can write Java code to call this interface?

Regards,

Nakul

Message was edited by: Nakul Rajurkar

Former Member
0 Kudos

Hi Nakul!

If you want to update XML Message to XI from MI Server, i would rather take the approach of having a Custom BAPI/RFC(that posts the XML message to XI)called in my BAPI Wrapper used in the SyncBO.

Also pl refer to a similar response in one of my previous posts.

Thank You

Gisk

Former Member
0 Kudos

hello nakul,

unfortunately, the MI server is on the ABAP stack. the

java stack is only used for synchronization and adminstration

console. MI doesn't have any java server-side APIs that

would let you invoke services on the java stack. you can

create a proxy in ABAP stack that will consume a web service

available from your XI.

regards

jo

Former Member
0 Kudos

hello nakul,

which XI interface you want to invoke? and which component

will be invoking it i.e. from the MI client or the MI server?

if you are to invoke an XI service on the ABAP stack, e.g.

RFC call etc... you have to create your BAPI that will call

it from the MI server. from the MI client, you can either

use the generic way of invoking BAPIs thru the GenericSync

layer.

comsuming http services like Web services from the client

is also possible. however, MI doesn't have an API to do this

yet so you really have to engineer this by yourself and

include it into your client application. however, also take

note the MI is an offline solution framework...

regards

jo