home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 February / PCWorld_2003-02_cd.bin / Komunik / sambar / sambar53b3.exe / sysadmin / control / soap / register.asp < prev    next >
Encoding:
Text File  |  2002-10-29  |  2.3 KB  |  69 lines

  1. <HTML>
  2. <HEAD><TITLE>Sambar Server SOAP Control Panel</TITLE>
  3. <% 
  4. #include "../header.asp"
  5. #include "../menu.asp"
  6. area = "register";
  7. #include "submenu.asp"
  8. %>
  9. <BR>
  10. <B>Registering soap interop services...</B>
  11. <BLOCKQUOTE><PRE><CODE>
  12. /*
  13. ** Register SOAP Services
  14. */
  15. soapRegister("echoNull", SOAP_AUTH_ALL, "echoNull.c",
  16.     "Echo a NULL value.");
  17. soapRegister("echoString", SOAP_AUTH_ALL, "echoString.c", 
  18.     "Echo a string.");
  19. soapRegister("echoStringArray", SOAP_AUTH_ALL, "echoStringArray.c",
  20.     "Echo a string array.");
  21. soapRegister("echoInteger", SOAP_AUTH_ALL, "echoInteger.c", 
  22.     "Echo an integer.");
  23. soapRegister("echoIntegerArray", SOAP_AUTH_ALL, "echoIntegerArray.c",
  24.     "Echo an integer array.");
  25. soapRegister("echoFloat", SOAP_AUTH_ALL, "echoFloat.c", 
  26.     "Echo a floating point number.");
  27. soapRegister("echoFloatArray", SOAP_AUTH_ALL, "echoFloatArray.c",
  28.     "Echo an array of floating point numbers.");
  29.  
  30. </CODE></PRE></BLOCKQUOTE>
  31. <%
  32. /*
  33. ** Register SOAP Services
  34. */
  35. soapRegister("echoNull", SOAP_AUTH_ALL, "echoNull.c",
  36.     "Echo a NULL value.");
  37. soapRegister("echoString", SOAP_AUTH_ALL, "echoString.c", 
  38.     "Echo a string.");
  39. soapRegister("echoStringArray", SOAP_AUTH_ALL, "echoStringArray.c",
  40.     "Echo a string array.");
  41. soapRegister("echoInteger", SOAP_AUTH_ALL, "echoInteger.c", 
  42.     "Echo an integer.");
  43. soapRegister("echoIntegerArray", SOAP_AUTH_ALL, "echoIntegerArray.c",
  44.     "Echo an integer array.");
  45. soapRegister("echoFloat", SOAP_AUTH_ALL, "echoFloat.c", 
  46.     "Echo a floating point number.");
  47. soapRegister("echoFloatArray", SOAP_AUTH_ALL, "echoFloatArray.c",
  48.     "Echo an array of floating point numbers.");
  49. %>
  50. <B>Done registering services...</B>
  51. <P>
  52. <B>Notes...</B>
  53. <UL>
  54. <LI> SOAP services can be registered via the authentication properties: 
  55. <B>SOAP_AUTH_ALL</B> | <B>SOAP_AUTH_USER</B> | <B>SOAP_AUTH_ADMIN</B></LI>
  56. <LI>The <I>path</I> to the file must be specified as either a complete,
  57. file-system path, or the file is assumed to be relative to the <I>syssoap</I>
  58. directory.
  59. </UL>
  60. <P>
  61. <I>Hint!</I> To register services "automatically" when the server starts
  62. up, you can place the above calls in the <I>config/globals.c</I> file.
  63. The CScript ASP engine loads and executes the <I>config/globals.c</I>
  64. file at startup of the server. 
  65. <%
  66. #include "../footer.asp"
  67. %>
  68. </BODY></HTML>
  69.