receive-rpc ( xml -- rpc ) (original) (raw)
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 ;
: receive-rpc ( xml -- rpc )
dup main>> dup "methodCall" =
[ drop parse-method ] [
"methodResponse" = [
dup first-child-tag main>> "fault" =
[ parse-fault ]
[ parse-rpc-response ] if
] [ "Bad main tag name" server-error ] if
] if ;