Hello! I have a question about using the Entrez Utility Web Service to retrieve records in genbank XML format.
I’m using C# to access the eFetchSeq service at http://eutils.ncbi.nlm.nih.gov/soap/v2.0/efetch_seq.wsdl like so:
eFetchSeq.eUtilsServiceSoapClient serv = new eFetchSeq.eUtilsServiceSoapClient(); eFetchSeq.eFetchRequest req = new eFetchSeq.eFetchRequest(); req.db = "nuccore"; req.id = "HV982480.1"; eFetchSeq.eFetchResult res = serv.run_eFetch(req);
…which is giving me the eFetchResult. However, I would like to dump the entire record and all its fields directly as an xml file in the genbank .gb format. Is there a way to do this from an eFetchResult? Or is there a different service I should use to retrieve my results in that format?
Thanks for your help.