cancel
Showing results for 
Search instead for 
Did you mean: 

How to invoke a BAPI Webservice from Java Programming

Former Member
0 Kudos

Hi Experts,

I have a webservice(wdsl file) which i imported into a web service project and created a ear file and deployed.

Now i want to call this webservice from Java programming.

How do i achieve this.

Any help to this is highly appreciated.

Thanks in advance,

Venkat

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Venkat,

You can create standalone web services clients. Only you need is tools available in market. You can download them for free. like Apache Axis. Sun java Web Services Developer Pack.

You would be requiring WSDL file for the Web Services.

Once you have got that file, using these tools you can generate stubs.

Then you can write simple java program which would communicate to that stub and stub would automatically call the web service and return you response.

Stub would contain 8-10 java files . It contains the code to convert your simple input to XML/SOAP and send to Web Service , get back result and provide it you again by parsing XML.

If you also use WebDypro to create UI and caal Web Service.

There are lot of ways to do it.

Regards,

Piyush

Former Member
0 Kudos

Piyush,

Thanks for the note. i have a wsdl file and i can download those tools.. could you also send me some docs which explains the steps in detail ? i mean any PDF document or any thread which explains them in detail.

Thanks a lot for your help in advance.

Venkat

Former Member
0 Kudos

Hi Venkatesan,

You can use Webdynpro for Java for accessing the Webservice model.

But if you want to invoke the webservice from java programming Please check this [Thread|;

Hope this helps you.

Thanks & Regards

Veerabhadram