Thanks, Kevin! another question is i was seeking the formular of the compound, hence trying SOAP Client functions _getTypes() and _getFunctions() , to see if there is a function to do this. i was using the script below, but i'm not quite familiar with this. is there a hint on this? Thanks!
or some information on MSMS search client returned function names would help a lot!
<?php $client = new SoapClient("http://metlin.scripps.edu/soap/metlin-1.0.wsdl"); var_dump($client->__getTypes()); var_dump($client->__getFunctions()); ?>
seems not quite correct, would anyone take a look at it? Thanks!
i was trying to use php soap-client to do Spectrum Match as ducument page template wrote: http://metlin.scripps.edu/soap/ , but encounter some problem for the return webpage, the return page was bland, although the search for Metabolite Search works fine. besides, is this the right board to post this question? kindly move it to the right one if not. Thanks.
here are the steps: 1) use template php from document: http://metlin.scripps.edu/soap/ , save as php file in local htdocs directory.
// Search parameters. Can also use a class instead of an array to map "token", "mass", ... to their corresponding value // Can call the SoapClient functions _getTypes() and _getFunctions() to see the required types and structures for the WSDL $specparam = array("token"=>$token, "mass" => $specMasses, "intensity" => $intensity, "mode" => $mode, "collisionEnergy" => $ce, "toleranceMSMS" => $tolMS, "tolerancePrecursor" => $tolPrec, "precursorMass" => $prec);
// Call the SpectrumMatch function via the soap service try{ $client = new SoapClient("http://metlin.scripps.edu/soap/metlin-1.0.wsdl"); $return = $client->SpectrumMatch($specparam);
/* The SOAP return variable for the SpectrumMatch function is a struct containing a 2-D array * with the format: $return->SpectrumMatchResult[# of results][line info on each result]. */
2) browse from firefox, 127.0.0.1/name.php, but the example data could not return compound id and things related. the return page screenshot was attached below.
PS: I found a input data error in the template, $prec = 193.0731; is expeceted instead from $prec = 195.0877; for positive mode search in sample data: http://metlin.scripps.edu/spec_search.php
is there anyone could help on this? could reply this post or email liyanli@genomics.cn