2
0

UsingProxyDSP.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Using xmlrpc_cpp_proxy.dsp
  2. While not included in the main xmlrpc.dsw file, this
  3. xmlrpc_cpp_proxy.dsp, if added as a project to the xmlrpc solution,
  4. will build bin\xmlrpc_cpp_proxy.exe and xmlrpc_cpp_proxyD.exe, for
  5. testing using the default WinINET transport.
  6. After you have loaded the xmlrpc_cpp_proxy.dsp, which adds an
  7. xmlrpc_cpp_proxy project, it is necessary to ADD a dependance on
  8. the xmlrpc library, to complete the link.
  9. To do this in say MSVC8, select the xmlrpc_cpp_proxy project, and right
  10. mouse click, and in the context menu, select 'Project Dependancies...'.
  11. And in the Project Dependancies dialog, check the xmlrpc proejct,
  12. then [Ok] ...
  13. To test your xmlrpc_cpp_proxy[D].exe -
  14. 1. In a console start the server, like -
  15. bin/xmlrpc_sample_add_serverD 8080
  16. Note, since this server opens a socket, you may have to enable it on some
  17. anti-virus software that detects the socket being established, and
  18. 'Unblock' it in the Windows Security Alert system dialog that appears.
  19. You can later remove this program from the Firewall exceptions, through
  20. Control Panel -> Windows Firewall, selecting the 'Exceptions' tab, where
  21. you can also disable this 'blocking' notification, but not recommended.
  22. The server should start, and report -
  23. Running XML-RPC server...
  24. 2. In another console run the cpp proxy client, with say -
  25. bin>xmlrpc_cpp_proxyD http://localhost:8080/RPC2 null null
  26. The client should connect to the server, and output a 'null' header,
  27. and implementation file. If this functions, for a bigger example, try -
  28. bin>xmlrpc_cpp_proxyD http://localhost:8080/RPC2 system systemProxy
  29. and you should see a better example of a class header, and the
  30. implementation code ...
  31. 20 December, 2007
  32. EOF