I am now working on message change between JAVA and ABAP side. I know that java can call RFC via JCO or other methods. Now I'd like to call RFC from JAVA side via XI, Do you know the standard process of doing that, I have went through some documents listed in the forum, my idea is that I could do that in different ways:
1. import the RFC in IR and then define a web service in ID, then java side can use the WSDL to generate proxy.
2. import the RFC in IR and then I can generate java proxy
directly for java side.
Could anyone who has some experience give some advices on that? How should I do if I want to use the solution 1?
Thanks a lot
You can do the RFC look up in your User Defined Functions using the LookUp API provided by SAP.
So, you will be using the Java Stack ( UDF ) to perfrom an RFC call on the ABAP stack.
just take a look at this blog,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples... mapping lookups rfc api.pdf
Does this satisfy your requirement?
One more option:
Just add your code to the receiver side JAVA proxy.
Here you can either use the metadata of the RFC itself or create your own metadata and pass the value to JAVA proxy which in turn will map it to RFC before calling it.
This is beneficial if you already have the code done.