Changeset 15255 in project


Ignore:
Timestamp:
07/25/09 17:08:09 (10 years ago)
Author:
sjamaan
Message:

Add more examples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/xml-rpc

    r15253 r15255  
    6767Constructs an SXML representation of a method call to the procedure
    6868{{method-name}} with an arguments list of {{args}}.
     69
     70<examples>
     71<example>
     72<init>
     73(use xml-rpc-client)
     74</init>
     75<expr>
     76(xml-rpc-methodcall 'scheme.makeList '(1 2 3 "testing"))
     77</expr>
     78<result>
     79(methodCall
     80  (methodName "scheme.makeList")
     81  (params
     82    (param (value (i4 "1")))
     83    (param (value (i4 "2")))
     84    (param (value (i4 "3")))
     85    (param (value (string "testing")))))
     86</result>
     87</example>
     88</examples>
    6989
    7090<procedure>(xml-rpc-response->values response-sxml)</procedure>
     
    126146  `(*TOP*
    127147     (*PI* xml "version=\"1.0\"")
    128      (methodCall
    129      (methodName "scheme.makeList")
    130        (params
    131          (param (value (int "1")))
    132          (param (value (int "2")))
    133          (param (value (int "3"))))))
     148     (methodCall  ; (xml-rpc-methodcall 'scheme.makeList '(1 2 3))
     149       (methodName "scheme.makeList")
     150         (params
     151           (param (value (int "1")))
     152           (param (value (int "2")))
     153           (param (value (int "3"))))))
    134154  `((scheme.makeList . ,list)))
    135155</expr>
Note: See TracChangeset for help on using the changeset viewer.