05-27-2008 9:45 AM
hi,
my question is about connecting to a web service.
lets say there is a web service and has a function .
How can i connect to that web service and run that function for getting the values.
thanks.
05-27-2008 10:03 AM
Hi Burc,
After u create a Web service, as u know one URL will be generated for that particular web service.
Now in ur abap program call the URL using the function module call browser.
Try this and get back to me incase of any queries.
Dont forget to reward points if found useful.
Thanks,
Satyesh
05-27-2008 10:06 AM
which version of R/3 you are on.
if you are on ECC6 (or was6.40 or above) you can use the standard webservice framework where you just pass the wsdl url to the tool and it will generate the proxy class for you, which you can use in your program to consume the webservice.
if you on a system between was6.10 to 6.40 you can use class cl_http_client to consume the webservice.
for more on this search for "consuming webservice abap" here in sdn , you will find couple of good blogs on this.
Raja