Merhaba arkadaşlar Döviz bilgilerini Altınkaynak sitesinden çekiyordum. Bu ay siteyi ve kodları yenilemişler sitemde kullandığım kodlar aşağıda verdim.
En altta yeni altınkaynak data kodlarına göre kendi kodlarımı nasıl düzenlemem lazım ?

<?
$xml = simplexml_load_file('http://xml.altinkaynak.com.tr/altinkaynak.xml');
echo'
<table width="80%" border="0" cellspacing="1" cellpadding="1" class="doviz" align="right">
<tr>
<td><strong>'.$xml->DOVIZ[1]->ADI.'</strong></td>
<td>&nbsp;</td>
<td>'.$xml->DOVIZ[1]->SATIS.'</td>
</tr>
<tr>
<td><strong>'.$xml->DOVIZ[2]->ADI.'</strong></td>
<td>&nbsp;</td>
<td>'.$xml->DOVIZ[2]->SATIS.'</td>
</tr>
<tr>
<td><strong>'.$xml->DOVIZ[3]->ADI.'</strong></td>
<td>&nbsp;</td>
<td>'.$xml->DOVIZ[3]->SATIS.'</td>
</tr>
</table>
';
?>



Diğer Admin kısmında da böyle bir kod var buda aynı şekilde çalışmıyor. Bu konuda yardımlarınızı bekliyorum

$xml = simplexml_load_file('http://xml.altinkaynak.com.tr/altinkaynak.xml');
$dolar = $xml->DOVIZ[1]->SATIS;
$euro = $xml->DOVIZ[2]->SATIS;

settype($euro, "string");
settype($dolar, "string");

if($_POST['dolar']):
$dolar = $_POST['dolar'];
$euro = $_POST['euro'];
endif;





Altınkaynağın yeri bilgilerini düzenlemem gerekiyormuş yapamadım,

http://data.altinkaynak.com/DataService.asmx kısmında yer alan kodları ekliyorum.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /DataService.asmx HTTP/1.1 Host: data.altinkaynak.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://data.altinkaynak.com/GetMain" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthHeader xmlns="http://data.altinkaynak.com/"> <Username>AltinkaynakWebServis</Username> <Password>AltinkaynakWebServis</Password> </AuthHeader> </soap:Header> <soap:Body> <GetMain xmlns="http://data.altinkaynak.com/" /> </soap:Body> </soap:Envelope> HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetMainResponse xmlns="http://data.altinkaynak.com/"> <GetMainResult>string</GetMainResult> </GetMainResponse> </soap:Body> </soap:Envelope> SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /DataService.asmx HTTP/1.1 Host: data.altinkaynak.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <AuthHeader xmlns="http://data.altinkaynak.com/"> <Username>AltinkaynakWebServis</Username> <Password>AltinkaynakWebServis</Password> </AuthHeader> </soap12:Header> <soap12:Body> <GetMain xmlns="http://data.altinkaynak.com/" /> </soap12:Body> </soap12:Envelope> HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetMainResponse xmlns="http://data.altinkaynak.com/"> <GetMainResult>string</GetMainResult> </GetMainResponse> </soap12:Body> </soap12:Envelope>