Difference between revisions of "Service Entry Point"

From MidrangeWiki
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:WDSC]]
 
[[Category:WDSC]]
  
The following is a tip declaring how to debug CGI Pgms via WDSC's SEP (Service Entry Point) functionality.  After right clicking on the PGM to set a SEP, it will of course be added to the SEP view.  But running the program doesn't cause debugging to happen at this point.  The reason being is because the debug isn't running under your iSeries profile (e.g. JSMITH) and is instead running under QTMHHTP1.  Right click on the SEP in the SEP view that was just created and select Modify and change the user from JSMITH to QTMHHTP1.  Now run the CGI program again and it '''SHOULD''' bring up the iSeries Debugger in WDSC.
+
The following is a tip declaring how to debug CGI (or any other ILE) Pgms via WDSC's SEP (Service Entry Point) functionality.  After right clicking on the PGM to set a SEP, it will of course be added to the SEP view.  But running the program doesn't cause debugging to happen at this point.   
 +
 
 +
1. One possible reason being is because the debug isn't running under your iSeries profile (e.g. JSMITH) and is instead running under QTMHHTP1.  Right click on the SEP in the SEP view that was just created and select Modify and change the user from JSMITH to QTMHHTP1.  Now run the CGI program again and it '''SHOULD''' bring up the iSeries Debugger in WDSC. If it still does not, read items 2 and 3 below.
  
 
Here is a video tutorial: [http://rpg-xml.com/video/RXS_WDSC_WEBSRV_DEBUG_SEP/RXS_WDSC_WEBSRV_DEBUG_SEP.html]
 
Here is a video tutorial: [http://rpg-xml.com/video/RXS_WDSC_WEBSRV_DEBUG_SEP/RXS_WDSC_WEBSRV_DEBUG_SEP.html]
 +
 +
Although the above is absolutely correct, there is even an easier way to set the user profile right away: Instead of right clicking the program object, you can also right click the source. The difference is that you will see a prompt which allows you to modify the user profile (as well as program, module or procedure name, if they were different from the source member name you right clicked).
 +
 +
2. Another reason, why your debug session wouldn't start, could be if your user profile (i.e. the one you used in your iSeries connection - JSMITH here) neither has *ALLOBJ special authority nor *USE authortiy to the target *USRPRF object (QTMHHTP1 in this example)
 +
 +
3. Yet another reason, if you recompile your program, the SEP becomes invalid. But there is an easy solution: Select your SEP in the SEP view and click the "Refresh service entry points" button. Just don't forget about it.

Revision as of 02:41, 26 June 2007


The following is a tip declaring how to debug CGI (or any other ILE) Pgms via WDSC's SEP (Service Entry Point) functionality. After right clicking on the PGM to set a SEP, it will of course be added to the SEP view. But running the program doesn't cause debugging to happen at this point.

1. One possible reason being is because the debug isn't running under your iSeries profile (e.g. JSMITH) and is instead running under QTMHHTP1. Right click on the SEP in the SEP view that was just created and select Modify and change the user from JSMITH to QTMHHTP1. Now run the CGI program again and it SHOULD bring up the iSeries Debugger in WDSC. If it still does not, read items 2 and 3 below.

Here is a video tutorial: [1]

Although the above is absolutely correct, there is even an easier way to set the user profile right away: Instead of right clicking the program object, you can also right click the source. The difference is that you will see a prompt which allows you to modify the user profile (as well as program, module or procedure name, if they were different from the source member name you right clicked).

2. Another reason, why your debug session wouldn't start, could be if your user profile (i.e. the one you used in your iSeries connection - JSMITH here) neither has *ALLOBJ special authority nor *USE authortiy to the target *USRPRF object (QTMHHTP1 in this example)

3. Yet another reason, if you recompile your program, the SEP becomes invalid. But there is an easy solution: Select your SEP in the SEP view and click the "Refresh service entry points" button. Just don't forget about it.