adding xmlrpc support into yaws?

Gaspar Chilingarov nm@REDACTED
Fri Dec 9 10:14:04 CET 2005


Hi there!

I wrote a small module, which provides interface for handling xmlrpc calls in
yaws pages, like this:

<erl>
out(A) ->
    yaws_xmlrpc:handler(A#arg{state = #xmlhandler_state{}},
                        {?MODULE, handle_rpc}).

handle_rpc(State, {call, _ReqFunction, [_Value]}) ->
   {false, {response, [ "Hello xmlrpc world! :)" ]}}.
</erl>

so handler functoin interface is the same as xmlrpc module uses.

also you should have installed xmlrpc module, because it is used for call data
decoding/encoding.

-- 
Gaspar Chilingarov
System Administrator

t +37491 419763
w www.netter.am
e nm@REDACTED




More information about the erlang-questions mailing list