2008-01-14 16:42:21 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								USING:  help.syntax  help.markup  ;
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								IN:  xml-rpc  
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  send-rpc  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "rpc"  "an RPC data type"  } { "xml"  "an XML document"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "converts an RPC data type into an XML document which can be sent to another computer"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $see-also receive-rpc } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  receive-rpc  
						 
					
						
							
								
									
										
										
										
											2011-01-17 10:49:56 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "xml"  "an XML document"  } { "rpc"  "an RPC data type"  } }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $description "parses an XML document into an RPC data type, for further local processing"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $see-also send-rpc } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  <base64>  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "string"  "a string"  } { "base64"  "a base64 tuple"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "creates a base64 tuple using the data in the string. This marks the data for encoding in the base64 format"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $see-also base64 } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  base64  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $class-description "a piece of data marked for encoding as base64 in an XML-RPC message"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $see-also <base64> } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  <rpc-method>  
						 
					
						
							
								
									
										
										
										
											2008-12-16 02:12:36 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "name"  "a string"  } { "params"  "a sequence"  } { "rpc-method"  rpc-method } }
							 
						 
					
						
							
								
									
										
										
										
											2011-01-17 10:49:56 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $description "creates a tuple representing a method call which can be translated using send-rpc into an XML-RPC document"  }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $see-also rpc-method <rpc-response> <rpc-fault> } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  rpc-method  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $class-description "a tuple which is equivalent to an XML-RPC method send. Contains two fields, name and params"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $see-also <rpc-method> rpc-response rpc-fault } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  <rpc-response>  
						 
					
						
							
								
									
										
										
										
											2008-12-16 02:12:36 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "params"  "a sequence"  } { "rpc-response"  rpc-response } }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $description "creates a tuple representing a data response in XML-RPC"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $see-also rpc-response <rpc-method> <rpc-fault> } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  rpc-response  
						 
					
						
							
								
									
										
										
										
											2011-01-17 10:49:56 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $class-description "represents an XML-RPC method response, with a number of parameters holding data. Contains one field, params, a sequence"  }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $see-also <rpc-response> rpc-method rpc-fault } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  <rpc-fault>  
						 
					
						
							
								
									
										
										
										
											2008-12-16 02:12:36 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "code"  "an integer"  } { "string"  "a string"  } { "rpc-fault"  rpc-fault } }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $description "creates a tuple representing an exception in RPC, to be returned to the caller. The code is a number representing what type of error it is, and the string is a description"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $see-also rpc-fault <rpc-method> <rpc-response> } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  rpc-fault  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $class-description "represents an XML-RPC fault"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $see-also <rpc-fault> rpc-method rpc-response } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  post-rpc  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "rpc"  "an XML-RPC input tuple"  } { "url"  "a URL"  }
							 
						 
					
						
							
								
									
										
										
										
											2010-02-18 18:31:52 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    { "rpc'"  "an XML-RPC output tuple"  } }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $description "posts an XML-RPC document to the specified URL, receives the response and parses it as XML-RPC, returning the tuple"  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								ARTICLE: { "xml-rpc"  "intro"  } "XML-RPC" 
							 
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								"This is the XML-RPC library. XML-RPC is used instead of SOAP because it is far simpler and easier to use for most tasks. The library was implemented by Daniel Ehrenberg."  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								$nl
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"The most important words that this library implements are:"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    send-rpc
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    receive-rpc
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"data types in XML-RPC"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    base64
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    rpc-method
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    rpc-response
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    rpc-fault
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"the constructors for these are"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <base64>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <rpc-method>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <rpc-response>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <rpc-fault>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"other words include"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsections post-rpc } ;