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