on 09-20-2005 1:29 PM
Hi All,
I need to call a jsp application from CRM passing some data and get back the results in a table. Can you tell me what is the best way to do this - webservice or RFC ? We don't have ITS but I was told we can do this using WebAS. We are on WebAs 610. I am not sure whether we can create a webservice in 610 ?
If I use a RFC function module then do I need a Jco for connecting to the Jsp application ?
Any help is greatly appreciated.
Thanks,
Chandrika
you could simply use cl_http_client class to call the url (url of the jsp page) and get the result back.
check out sample programs
RSHTTP*
you dont need ITS for this.
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Raja!
I looked into the samples but couldn't follow as to how I can get a structure back from the jsp application. I could only see that there is a function 'HTTP_GET' (program RSHTTP20) which returns response and response_headers which is a table of string 120. In my case I would be sending a delivery number to this jsp application which will send back all the packaging data (carton number, product number qty etc back)
I don't have any expertise in the java world, So, would you please let me know the steps I need to get connected to this application such as :
Any RFC destination (SM59) entry required ?
Any host or service paramters that need to be passed ?
I greatly appreciate all your help!
Regards,
Chandrika
whatever is returned by the JSP page will be in the response table. you have to parse that.
so you could ask the developer who developed the JSP page to return the data in for example xml format or give you a webservice.
check out the following weblog to understad how CL_HTTP_CLIENT is used
/people/brian.mckellar/blog/2004/06/25/bsp-programming-rss-httpclient-xml-xslt
/people/durairaj.athavanraja/blog/2005/07/12/send-sms-to-india-from-abap
/people/sap.user72/blog/2004/11/04/bof-teched-munich-04--rss-http-and-bsp
Regards
Raja
check out this weblog on SDN way of saying thanks
/people/mark.finnern/blog/2004/08/10/spread-the-love
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.