getIsolate

Description: Returns isolate record.

Arguments

Sample Perl code

#!/usr/bin/perl
#Written by Keith Jolley

use SOAP::Lite;
use strict;
use warnings;

#####Sample arguments#########
my $database = 'neisseria';
my $id = 100;
##############################

my $soap = SOAP::Lite
    -> uri('http://pubmlst.org/MLST')
    -> proxy('http://pubmlst.org/cgi-bin/mlstdbnet/mlstFetch.pl');
my $soapResponse = $soap->getIsolate($database,$id);
unless ($soapResponse->fault){
    for my $soapData ($soapResponse->dataof('//field')) {
	print $soapData->value->{'name'} . ": " .
	    $soapData->value->{'value'} . "\n";
    }
} else {
    print join ', ',$soapResponse->faultcode,$soapResponse->faultstring;
}

Sample Java code

package org.pubmlst.mlstSOAP;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;

import java.util.Vector;

public class GetIsolate {

    public static void main(String[] args) {
	//Sample arguments////////////////
	String database = "neisseria";
	int id = 100;
	//////////////////////////////////
	try {
	    String endpoint = "http://pubmlst.org/cgi-bin/mlstdbnet/mlstFetch.pl";
	    Service service = new Service();
	    Call call = (Call) service.createCall();
	    call.setTargetEndpointAddress(new java.net.URL(endpoint));
	    call.setOperationName(new QName("http://pubmlst.org/MLST/",
					    "getIsolate"));
	    call.addParameter("database",org.apache.axis.Constants.XSD_STRING,
			      javax.xml.rpc.ParameterMode.IN);
	    call.addParameter("id",org.apache.axis.Constants.XSD_INT,
			      javax.xml.rpc.ParameterMode.IN);
	    call.setReturnType(org.apache.axis.Constants.SOAP_VECTOR);
	    Vector ret = (Vector) call.invoke(new Object[] { database,id });
	    for (int i=0; i<ret.size(); i++){
		Vector field = (Vector)ret.get(i);
		System.out.println(field.get(0) + ": " +
				   field.get(1));
	    }
	} catch (Exception e) {
	    System.err.println(e.toString());
	}
    }
}

Output

id: 100
strain: 638
ST: 11
country: USA
year: 1994
disease: invasive (unspecified/other)
epidemiology: sporadic case
species: Neisseria meningitidis
serogroup: C
MLEE_designation: ET-37 Complex
ET_no: 24
reference1: 11136752
sender: 10
curator: 2
date_entered: 2001-03-02
datestamp: 2001-03-02
abcZ: 2
adk_: 3
aroE: 4
fumC: 3
gdh_: 8
pdhC: 4
pgm_: 6
clonal_complex: ST-11 complex/ET-37 complex

Navigation

- PubMLST+ PubMLST
MLST Home
Search / site map
Download data
Databases
News
- Software+ Software
Web tools
Software
- Recently updated+ Recently updated
A. baumannii (Oxford)
A. baumannii (Pasteur)
Arcobacter
B. cepacia
B. hampsonii
B. hyodysenteriae
B. intermedia
B. licheniformis
B. pilosicoli
Bordetella
Brachyspira
C. albicans
C. difficile
C. jejuni
C. krusei
C. tropicalis
Chlamydiales
Cronobacter
E. faecium
H. influenzae
H. parasuis
Leptospira#2
Leptospira#3
M. plutonius
Neisseria
P. acnes
P. aeruginosa
P. multocida (RIRDC)
P. multocida (multi)
S. agalactiae
S. gallolyticus
S. maltophilia
S. pneumoniae
S. pseudintermedius
S. uberis
V. cholerae
V. parahaemolyticus
V. vulnificus
Wolbachia
- Mirrors+ Mirrors
About our mirrors Primary | DK1 | NO1 | UK2 | UK3 | UK4 | US1 | US2
- Developers+ Developers
SOAP API