cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert a webservice made out of BAPI to java?

Former Member
0 Kudos

Hi All,

There is typical requirement in our project where in we have to convert all the webservices that we made out of the BAPI's into java webservice.

I understand that the wsdl file released is an XML file. But I don't understand like how to convert the existing wsdl file into a java webservice.

Let me know how can I acheive the result.Loking forward.

Regards

Dipendra

Accepted Solutions (0)

Answers (2)

Answers (2)

sridhar_k2
Active Contributor
0 Kudos

Hello Dipendra,

I am not very sure, what is your exact requirement. Correct me if i am wrong, you want to convert .wsdl(service) to java service.

Web Services are

- Reusable application components

- Connect existing software , in other terms it doesn't care about platform and service developed language

- Web services help solve the interoperability problem by giving different applications a way to link their data.

- Using Web services you can exchange data between different applications and different platforms out of System Firewall.

If your want define the Same ABAP Function Module Service to EJB/ JAVA Service you need to write all the business logic in JAVA. It creates same .wsdl for the service and you use the same in your Web Dynpro. Accessing in Web Dynpro is same for any kind of service.

If you want to access BAPI Service in JAVA instead of Web Dynpro, you need to create a Proxy (Deplyable / Standalone) and call this service in EJB. This is useful if you want to move your service accessing logic from Web Dynpro to some middle ware (EJB), this is useful.

Hope i might have explained clearly. Write me back, if you are not clear.

Regards,

Sridhar

Former Member
0 Kudos

What exactly are you trying to do .. do you want to consume the wsdl in java .or create a JAVA webservice with the same functionality as the BAPI. If it is the second one i think you have to re write the whole business logic that the BAPI contains in a EJB and create a webservice out of it.Correct me if i am wrong.

Former Member
0 Kudos

Hello Tummuru,

Glad to have your response. We have like more than 40 BAPI's and we need to search for a solution that can convert the ABAP web services into Java webservice without we redoing or recreating the webservice in java as you suggest. I am not sure like it is possible or not but I am sure about one thing that the project does'nt have that scope as of now.

Let me know if you have any suggestions.

Regards

Dipendra

Former Member
0 Kudos

If i am not wrong .. what i understood is that you want all the business logic to be in java rather than ABAP.As far as i know there is no way to convert that directly from the WSDL . .correct me if i am wrong.