cancel
Showing results for 
Search instead for 
Did you mean: 

How to call webservice from Java application

Former Member
0 Kudos

Hi XI gurus

Pls let me know how to call a webservice from Java application.

I wanted to build synchronous interface from Java Application to SAP using SAP XI

For example, i need to create Material master from Java application and the return message from SAP, should be seen in Java application

Regards

MD

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

JAVA-XI-SAP

Sender : Soap Adapter

receiver : IDOC/RFC/ABAp Proxy

Step1: Create aWebservice in ID in XI ( define Webservice ),and Wsdl will be generated.

Step 2 : JAva application uses same Wsdl file to send the data to xi.

Step 3: Configure Communication channels

Regards,

Jayasimha Jangam

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Madhan

you have to develop your interface according to the SAP interface ( BAPI for material creation) . BAPI has a request and response , create ur java calling interface with similar request and response structures. In XI you can expose this SAP interface as a webservice. Your java interface can call this webservice using the WSDL from XI.

Former Member
0 Kudos

hi,

Define the webservice in the ID and you can give the same wsdl file to java application people attaching in mail or give the url.Once they trigger the wsdl from their side, the data starts flowing thro xi.It should be webservice to rfc/proxy scenario.

Idoc on R/3 side is preferred for async scenario..not here wen you are willing to catch the response back in java application.

If the java application fails to consume the wsdl, we can still go for java proxy to rfc/proxy scenario.

Thanks,

Durga.

aashish_sinha
Active Contributor
0 Kudos

Hi,

Have a look into this blog will help you.

Regards

Aashish Sinha

Former Member
0 Kudos

this link will be helpful:

Former Member
0 Kudos

Hi,

If your JAVA Application is Web based application, you can expose it as Webservice.

JAVA People will pick the data from Dbase using their application and will send the data to XI by using our XI Details like Message Interface and Data type structure and all.

So we can Use SOAP Adapter or HTTP in XI..

If you use HTTP for sending the data to XI means there is no need of Adapter also. why because HTTP sits on ABAP Stack and can directly communicate with the XI Integration Server Directly

If you are dealing with the Webservice and SAP Applications means check this

REgards

Seshagiri