xml - PHP Soap Client -
hi,
i have xml i'm trying make parameter soap client
<?xml version="1.0" encoding="utf-8" ?> <requestgenerateinvoice xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns="xml"> <type>enadd</type> <invoice> <invoicenumber>5</invoicenumber> <invoiceidtxt>101</invoiceidtxt> <accountidtxt>1001</accountidtxt> <invoicedate>2011-02-21t15:04:42.8500736+02:00</invoicedate> <code>1</code> <details>some details</details> <quantity>1</quantity> <amount>10</amount> <amountdue>20</amountdue> <fromdate>2011-02-21t15:04:42.8490735+02:00</fromdate> <todate>2011-02-21t15:04:42.8530738+02:00</todate> <months>7</months> <isprinted>false</isprinted> <paid>0</paid> <cardnumber>101</cardnumber> <prevaccbalance>100</prevaccbalance> <realusageamount>80</realusageamount> <locationid>0</locationid> <batchnumber>1</batchnumber> <batchtext>some text</batchtext> </invoice> <requestlocationid>0</requestlocationid> <requestdatetime>0001-01-01t00:00:00</requestdatetime> </requestgenerateinvoice>
so far script is:
$client = new soapclient("https://some.?wsdl"); $client->makeinvoice(array('type'=>'enadd', 'invoice'=> array('invoicenumber' => '101', 'invoiceidtxt' => '101', 'accountidtxt' => '2',......), 'requestlocationid'=>'2', 'requestdatetime'=>'0001-01-01t00:00:00'));
but i'm keep getting no response server
try using soapclient->_getlastrequest() , soapclient->_getlastresponse() see what's going on under hood. note need switch feature on in soapclient
constructor:
$client = soapclient("some.wsdl", array('trace' => 1));
Comments
Post a Comment