2011 Mar 26 9:08 AM
Hi experts ,
Iu2019m facing One Problem In Web service
First I have 2 doubtsu2026
1) In SE38 call the browser using CALL_BROWSER
EX: per example I call www.todaymonth.com (NA) after calling this, open a new browser in Internet Explorer.
Iu2019m giving the month then the browser path shows like this
Ex: www.todaymonth.com?Val=March
How to retrieve the value March from browser path
Give me Suggestions For this.
2) And Other solution for call the browser and do operations and retrieve tha path (or)
How to get the value from browser field data.
2011 Mar 27 9:54 PM
Hi Sandeep,
I have a doubt what you want to achieve.
1) CALL_BROWSER just opens/starts the default web browser external program, you can't interact (and get any result) with what is displayed in the browser
2) If you really want to have control over the browser, you must use the SAP HTML viewer control, class CL_GUI_HTML_VIEWER, which allows to read the web address at any time by pressing an external button for example (for more information, see SAP control example programs in DWDM transaction (especially RSDEMO_HTML_VIEWER))
3) to parse a URI, you may use CL_SD_URL_HELPER class for example
4) to decode the Query string (Val=March) of the URI, you may use CL_HTTP_UTILITY=>STRING_TO_FIELDS. Another solution is to simply use ABAP statement and SPLIT AT '=' (and SPLIT ... AT '&' if there are several parameters)
5) If you want to call ("consume") a so-called web service, then you must get its definition (WSDL), create a client proxy at SAP side, and call it (for more information, see http://help.sap.com/saphelp_nw70/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm)
6) If you want to read a web page, then you can use class CL_HTTP_CLIENT (for more information, see http://help.sap.com/saphelp_nw70/helpdata/en/1f/93163f9959a808e10000000a114084/frameset.htm)
Best Regards
Sandra
Hi experts ,
Iu2019m facing One Problem In Web service
First I have 2 doubtsu2026
1) In SE38 call the browser using CALL_BROWSER
EX: per example I call www.todaymonth.com (NA) after calling this, open a new browser in Internet Explorer.
Iu2019m giving the month then the browser path shows like this
Ex: www.todaymonth.com?Val=March
How to retrieve the value March from browser path
Give me Suggestions For this.
2) And Other solution for call the browser and do operations and retrieve tha path (or)
How to get the value from browser field data.
2011 Mar 27 9:54 PM
Hi Sandeep,
I have a doubt what you want to achieve.
1) CALL_BROWSER just opens/starts the default web browser external program, you can't interact (and get any result) with what is displayed in the browser
2) If you really want to have control over the browser, you must use the SAP HTML viewer control, class CL_GUI_HTML_VIEWER, which allows to read the web address at any time by pressing an external button for example (for more information, see SAP control example programs in DWDM transaction (especially RSDEMO_HTML_VIEWER))
3) to parse a URI, you may use CL_SD_URL_HELPER class for example
4) to decode the Query string (Val=March) of the URI, you may use CL_HTTP_UTILITY=>STRING_TO_FIELDS. Another solution is to simply use ABAP statement and SPLIT AT '=' (and SPLIT ... AT '&' if there are several parameters)
5) If you want to call ("consume") a so-called web service, then you must get its definition (WSDL), create a client proxy at SAP side, and call it (for more information, see http://help.sap.com/saphelp_nw70/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm)
6) If you want to read a web page, then you can use class CL_HTTP_CLIENT (for more information, see http://help.sap.com/saphelp_nw70/helpdata/en/1f/93163f9959a808e10000000a114084/frameset.htm)
Best Regards
Sandra
2011 Mar 28 7:10 AM
Hi Sandra
Thanks For Feed Back.
In SAP , How To Control The Web service, Per Example Call Web Service , Get Data From Web Service And Close Web Pages. Is It possible .
Can i give Me any Sample Code or Idea.
Thanks ,
Sandeep.
2011 Mar 28 10:20 AM
Hi Sandeep,
I already answered and gave you a link. Read it. There are lots of documentation about what is a web service, how to create the proxy, how to consume it. Search them and read them.
Then, please, ask a more precise question.
Sandra
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |