Handbook
Glossary
receive-rpc ( xml -- rpc )
XML-RPC
Prev:
send-rpc ( rpc -- xml )
Next:
base64
Vocabulary
xml-rpc
Inputs
xml
an XML document
Outputs
rpc
an RPC data type
Word description
parses an XML document into an RPC data type, for further local processing
See also
send-rpc
Definition
USING:
accessors
kernel
xml.traversal
;
IN:
xml-rpc
:
receive-rpc
( xml -- rpc )
dup
main>>
dup
"methodCall"
=
[
drop
parse-method
<rpc-method>
]
[
"methodResponse"
=
[
dup
first-child-tag
main>>
"fault"
=
[
parse-fault
<rpc-fault>
]
[
parse-rpc-response
<rpc-response>
]
if
]
[
"Bad main tag name"
server-error
]
if
]
if
;