getAlleleSequencesURL
Description: Returns URL of a tab-delimited list of allelic profile definitions.
Arguments
- database (string)
- locus (string
Sample Perl code
#!/usr/bin/perl #Written by Keith Jolley use SOAP::Lite; use strict; use warnings; #####Sample arguments######### my $database = 'neisseria'; my $locus = 'abcZ'; ############################## my $soap = SOAP::Lite -> uri('http://pubmlst.org/MLST') -> proxy('http://pubmlst.org/cgi-bin/mlstdbnet/mlstFetch.pl'); my $soapResponse = $soap->getAlleleSequencesURL($database,$locus); unless ($soapResponse->fault){ print $soapResponse->result()."\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; public class GetAlleleSequencesURL { public static void main(String[] args) { //Sample arguments//////////////// String database = "neisseria"; String locus = "abcZ"; ////////////////////////////////// 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/", "getAlleleSequencesURL")); String ret = (String) call.invoke(new Object[] { database,locus }); System.out.println(ret); } catch (Exception e) { System.err.println(e.toString()); } } }