cancel
Showing results for 
Search instead for 
Did you mean: 

Interface to Web Application

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

athavanraja
Active Contributor
0 Kudos

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

Former Member
0 Kudos

We had explored the option of using webservice but were told that WebAS 610 (version we are on currently) doesn't support it. May be xml is the other best option as you suggested. Thanks!