Siin näed erinevusi valitud versiooni ja hetkel kehtiva lehekülje vahel.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
et:xmlcore [2015/08/24 17:55] ott |
et:xmlcore [2015/08/24 18:20] ott |
||
---|---|---|---|
Rida 111: | Rida 111: | ||
<code php> | <code php> | ||
- | $xmldata = '<' . '?xml version="1.0" encoding="UTF-8"?><invoices></invoices>'; | + | $xmldata = <<<XML |
+ | <?xml version="1.0" encoding="UTF-8"?> | ||
+ | <invoice AppKey="1234567879012345678790" InvoiceNr="123" | ||
+ | InvoiceDate="2015-06-07" CustomerCode="CUST001"> | ||
+ | <lines> | ||
+ | <line ProductID="KILLERPRODUCT" Quantity="3" UnitPriceWoVAT="123.45"/> | ||
+ | <line ProductID="FREESAMPLE" Quantity="1" UnitPriceWoVAT="0.00"/> | ||
+ | </lines> | ||
+ | </invoice> | ||
+ | XML; | ||
$url = 'https://directo.gate.ee/xmlcore/this_is_the_worlds_greatest_company/xmlcore.asp'; | $url = 'https://directo.gate.ee/xmlcore/this_is_the_worlds_greatest_company/xmlcore.asp'; | ||