SOAP API of spreadshirt.net

I just came across an old entry of the Exciting Ecommerce blog (German) which tells that Spreadshirt.net, one of Germany’s hottest Internet startups, has a SOAP interface. spreadshirt.net itself seems to be developed in PHP, and so I started my IDE and played a bit with it.

At the moment, it seems to be just a bit of a playground. Some lines of code are good enough to start:

<?php
$wsdl = 'http://www.spreadshirt.net/services.php?wsdl';

$client = new SoapClient($wsdl, array('exceptions' => 0, 'trace' => 1));

$session_token = $client->initialize_session(62466);

$s = microtime(true);
$articles = $client->get_articles($session_token, 62466);
$e = microtime(true);

$d = $e-$s;

print "Duration: $d<br />";
var_dump($articles);

But as I said, Spreadshirt needs some more work here – it takes roughly 40-60 seconds to get all the articles (about 300) of this shop. This is definitely too long for creating small applications like shopping widgets etc.

Avatar-Foto

Von Björn Schotte

Björn Schotte ist geschäftsführender Gesellschafter der Mayflower GmbH und Senior Consultant im Umfeld von Software- und Agilen Organisations-Themen. Er twittert unter @BjoernSchotte und ist auf Xing sowie LinkedIn erreichbar. Seine Vorträge finden sich bei Slideshare.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert