Herzlich willkommen im Archiv vom ABAKUS Online Marketing Forum
Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.
Code: Alles auswählen
POST /pdws/ProductDataV1.asmx HTTP/1.1
Host: webservices.affili.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://webservices.affili.net/pdws/getShopList"
<?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>
<getShopList xmlns="http://webservices.affili.net/pdws/">
<PartnerID>int</PartnerID>
<Password>string</Password>
</getShopList>
</soap:Body>
</soap:Envelope>
Code: Alles auswählen
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>
<getShopListResponse xmlns="http://webservices.affili.net/pdws/">
<getShopListResult>
<TotalProducts>int</TotalProducts>
<Items>
<Item>
<ID>int</ID>
<LastUpdate>string</LastUpdate>
<LogoURL>string</LogoURL>
<Products>int</Products>
<ProgramID>int</ProgramID>
<Title>string</Title>
</Item>
<Item>
<ID>int</ID>
<LastUpdate>string</LastUpdate>
<LogoURL>string</LogoURL>
<Products>int</Products>
<ProgramID>int</ProgramID>
<Title>string</Title>
</Item>
</Items>
</getShopListResult>
</getShopListResponse>
</soap:Body>
</soap:Envelope>
Code: Alles auswählen
require_once("SOAP/Client.php");
$WSDL_URL = "http://webservices.affili.net/pdws/ProductDataV1.asmx?WSDL";
$WSDL = new SOAP_WSDL($WSDL_URL);
$Client = $WSDL->getProxy();
$Result = $Client->getShopList($PartnerID, $Password);
if(PEAR::isError($Result)){
echo "<h2>Error</h2>";
echo $Result->getMessage();
}
else {
echo "Shops: ".$Result->TotalRecords."<br>";
foreach($Result->Items as $Item){
echo $Item->ProgramID." : ".$Item->Title."<br>";
}
}
Ich rufe die Daten ab und lege sie in der Datenbank ab.NetLook hat geschrieben:Wie kann ich denn alle XML Daten behalten, muss man die einzeln in einer Datei speichern oder gibt es da elegantere Wege?
Corlath hat geschrieben:Yep, live ohne caching sollte man nicht machen und mittlerweile sieht das auch affilinet arg kritisch.
Zudem sollte man mischen, schreiben andere Anbieter ja auch schon vor.