<?php $xmldata = <<<EOT <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <MOLECULES FORMAT="smi"> <MOLECULE>C1CCCCC1</MOLECULE> </MOLECULES> </soapenv:Body> </soapenv:Envelope> EOT; $wsdl = 'http://www.vcclab.org/web/services/ALOGPS?wsdl'; try{ $client = new SoapClient($wsdl); $result = $client->__doRequest($xmldata,$wsdl,'getAlogpsResults',1,0);//发送xml必须使用__doRequest print_r($result); }catch (SoapFault $e){ echo $e->getMessage(); }catch(Exception $e){ echo $e->getMessage(); }
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。