Ok, I understood my mistake...
I was reading the data in a bulk like this:
my $res = $ua->request($request);
if ($res->is_success) {
print $res->content;
}
There is no more problem reading 1000 by 1000:
$ua->request($request,
sub{
my($data, $res) = @_;
if ($res->is_success) {
print $data, "\n";
}
},1000);
Regards
Julien
Julien Roux a écrit :
Dear Biomart team,
When trying to send a query to Biomart webservice (see below) via a
perl script (webExample.pl for example), I get the error "500 read
timeout".
I guess the query is taking too long... Do you have any idea how to
bypass this?
Thanks for your help
Julien
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Query>
<Query virtualSchemaName = "default" formatter = "TSV" header = "0"
uniqueRows = "1" count = "" datasetConfigVersion = "0.6" >
<Dataset name = "mmusculus_gene_ensembl" interface = "default" >
<Attribute name = "ensembl_gene_id" />
<Attribute name = "embl" />
<Attribute name = "mgi_id" />
<Attribute name = "mgi_symbol" />
</Dataset>
</Query>
--
Julien Roux, PhD student
http://bioinfo.unil.ch/
Department of Ecology and Evolution
Biophore, University of Lausanne, 1015 Lausanne, Switzerland
tel: +41 21 692 4221 fax: +41 21 692 4165