Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Passing data to webservice ?

Former Member
0 Kudos

hello,

There is a webservice which takes particulars of customer details and validates now I need pass the customer details from an excel sheet to the input fields in the webservice.

can any one help on this

thanks in advance.

5 REPLIES 5

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

Assuming you set up a web service consumer in SAP if not

http://wiki.scn.sap.com/wiki/display/ABAPConn/How+to+configure+a+Service+Consumer

Upload excel into internal table

http://wiki.scn.sap.com/wiki/display/ABAP/ABAP+code+snippet+to+upload+Excel+file+into+an+internal+ta...

loop on the table

for each line call the web service

add to the final table the result from the web service

             

regards.      

0 Kudos

Hi,

can you tell how to call  the web service

0 Kudos

Eltan already gave you the answer tot hat in the link:

http://wiki.scn.sap.com/wiki/display/ABAPConn/How+to+configure+a+Service+Consumer

Did you check that, because that describes everything you need to know ?

It tells you how to create a service consumer in ABAP and that is what you need to do.

0 Kudos

Hi,

The steps involved(on a high level) are as follows

1. Create a Consumer or  Client Proxy in SE80 using the WSDL URL provided. This will generate a class with the methods and attributes based on the WSDL.

2. Create a logical port for the client proxy created in step 1 using the transaction SOAMANAGER with the same WSDL(Provide User ID and Password, if any). Please note that this step will open a webpage. Also you may need to edit the host file if needed.

3. Use the method(s) of the class generated in the Step 1 with the valid parameters in your program.

Hope this helps.

Regards,

Sagar

0 Kudos

Hi,

May I add a very nice tool for testing of web services:

http://www.soapui.org/

Also: http://en.wikipedia.org/wiki/Web_service

regards.