Using method.metallopdb from the XML-RPC service


<?php
error_reporting
(1);
require_once 
"XML/RPC.php";
require_once 
"slides/mdb/scripts/xmlrpc_util.php";
require_once 
"slides/mdb/scripts/mdb_tests.cfg";

$c=new XML_RPC_Client(XMLRPC_URIMDB_SERVER_NAMEMDB_SERVER_PORT);

$metal = new XML_RPC_Value('zn');
$mode = new XML_RPC_Value('random');
$count = new XML_RPC_Value(5$GLOBALS['XML_RPC_Int']);
$format = new XML_RPC_Value('array');
$method 'method.metallopdb';
$fmt "<h3>Parameters: metal='%s', mode='%s', count=%d, format='%s'</h3>";
printf($fmt$metal->scalarval(), $mode->scalarval(), 
   
$count->scalarval(), $format->scalarval());

$msg = new XML_RPC_Message($method, array($metal$mode$count$format));
$r $c->send($msg);
$v $r->value();
if (!
$r->faultCode()) {
 echo 
toTable2(XML_RPC_decode($v));
} else {
 echo 
"<pre>\n";
 echo 
"ERROR: ".$r->faultCode()." -- ".$r->faultString();
 echo 
"</pre>\n";
}
?>

Output

Parameters: metal='zn', mode='random', count=5, format='array'

ROW: 1
metal zn
source_id 1i4p
revision_date 2001/09/19
deposition_date 2001/02/22
expdata x-ray diffraction
r_value 0.21
resolution 2
authors d.kumaran,s.swaminathan
description Header: [toxin 22-feb-01 1i4p] Title: [crystal structure of staphylococcal enterotoxin c2 at 100k crystallized at ph 5.5] Compound: [mol_id: 1; molecule: enterotoxin type c-2; chain: a] Source: [mol_id: 1; organism_scientific: staphylococcus aureus; organism_common: bacteria] Keywords: [superantigen, zinc binding, immune system]
ROW: 2
metal zn
source_id 1jk9
revision_date 2001/09/05
deposition_date 2001/07/11
expdata x-ray diffraction
r_value 0.22
resolution 2.9
authors a.l.lamb,a.s.torres,t.v.o'halloran,a.c.rosenzweig
description Header: [oxidoreductase 11-jul-01 1jk9] Title: [heterodimer between h48f-ysod1 and yccs] Compound: [mol_id: 1; molecule: superoxide dismutase; chain: a, c; synonym: sod1; ec: 1.15.1.1; engineered: yes; mutation: yes; mol_id: 2; molecule: copper chaperone for superoxide dismutase; chain: b, d; synonym: ccs; engineered: yes] Source: [mol_id: 1; organism_scientific: saccharomyces cerevisiae; organism_common: yeast; expression_system: escherichia coli; expression_system_common: bacteria; expression_system_strain: bl21(de3); expression_system_vector_type: plasmid; expression_system_plasmid: pet3d; mol_id: 2; organism_scientific: saccharomyces cerevisiae; organism_common: yeast; expression_system: escherichia coli; expression_system_common: bacteria; expression_system_strain: bl21(de3); expression_system_vector_type: plasmid; expression_system_plasmid: pet11d] Keywords: [heterodimer, metallochaperone, chaperone, copper, amyotrophic lateral sclerosis, lou gehrig's disease]
ROW: 3
metal zn
source_id 1jr9
revision_date 2002/08/13
deposition_date 2001/08/13
expdata x-ray diffraction
r_value 0.22
resolution 2.8
authors j.liao,m.y.liu,t.chang,m.li,j.legall,l.l.gui,j.p.zhang, t.jiang,d.c.liang,w.r.chang
description Header: [oxidoreductase 13-aug-01 1jr9] Title: [crystal structure of manganese superoxide dismutases from bacillus halodenitrificans] Compound: [mol_id: 1; molecule: manganese superoxide dismutase; chain: a; fragment: green protein; ec: 1.15.1.1] Source: [mol_id: 1; organism_scientific: bacillus halodenitrificans; organism_common: bacteria; other_details: cytoplasm] Keywords: [oxidoreductase]
ROW: 4
metal zn
source_id 1mey
revision_date 1997/03/12
deposition_date 1996/09/27
expdata x-ray diffraction
r_value 0.22
resolution 2.2
authors c.a.kim,j.m.berg
description Header: [complex (zinc finger/dna) 27-sep-96 1mey] Title: [crystal structure of a designed zinc finger protein bound to dna] Compound: [mol_id: 1; molecule: dna; chain: a, b, d, e; engineered: yes; mol_id: 2; molecule: consensus zinc finger protein; chain: c, f, g; engineered: yes] Source: [mol_id: 1; synthetic: yes; mol_id: 2; synthetic: consensus sequence, non-biological source; expression_system: t7 rna polymerase in escherichia coli; expression_system_strain: bl21 (de3)] Keywords: [protein-dna interaction, protein design, crystal structure, complex (zinc finger/dna)]
ROW: 5
metal zn
source_id 1rmd
revision_date 1997/07/23
deposition_date 1997/01/10
expdata x-ray diffraction
r_value 0.21
resolution 2.1
authors s.f.bellon,k.k.rodgers,d.g.schatz,j.e.coleman,t.a.steitz
description Header: [dna-binding protein 10-jan-97 1rmd] Title: [rag1 dimerization domain] Compound: [mol_id: 1; molecule: rag1; chain: null; fragment: zinc-binding dimerization domain; synonym: v(d)j recombination activating protein 1; engineered: yes] Source: [mol_id: 1; organism_scientific: mus musculus; organism_common: mouse; expression_system: escherichia coli; expression_system_cell_line: bl21] Keywords: [v(d)j recombination, antibody, mad, ring finger, zinc binuclear cluster, zinc finger, dna-binding protein]