XML

Onze XML bestanden bevatten veel data om uw eigen it-systemen te vullen of te onderhouden. Zo kunt u Artikel gegevens, categorie overzichten, PDF en XML facturen en nog veer meer opvragen. LET OP: u kunt geen orders plaatsen via XML hiervoor moeten we u doorverwijzen naar onze SOAP koppeling

In de url staat LOGIN en WACHTWOORD, dit dient u te vervangen met de logingegevens die u ook gebruikt om in te loggen op de New Aspect Webshop.

Change Log XML[bewerken]

We doen onze uiterste best om regelmatig de webservice uit te breiden of bugs eruit te halen waar nodig. Indien dit effect heeft op de werking van de webservice zal een nieuwe versie gelanceerd worden. In de Change Log XML houden we een overzicht bij van de wijzigingen.

Beschikbare XML’s[bewerken]

CSV

De eenvoudigste koppeling die we aanbieden is opgebouwd in een [CSV=http://nl.wikipedia.org/wiki/Kommagescheiden_bestand] bestand. Al onze CSV bestanden zijn gescheiden door middel van een PIPE |.

In de url staat LOGIN en WACHTWOORD, dit dient u te vervangen met de logingegevens die u ook gebruikt om in te loggen op de New Aspect Webshop.

Artikelen CSV[bewerken]

Wij bieden u de mogelijkheid om ons volledig artikel bestand van meer dan 12.500 artikelen te kunnen aanbieden via uw webportaal.

Gebruik de volgende URL: https://LOGIN:WACHTWOORD@webservices.newaspect.nl/csv/artikelen/
.
.

GetCategories

Vraag alle categorieen op en de bijbehorende artikelen.

Input en Output[bewerken]

Input[bewerken]

Field Value

Output[bewerken]

Field Value
ArrayOfCategories
catID xsd:int
parentCatID xsd:int
title xsd:string
defaultFiltersKeys array
ArrayOfImages
ArrayOfImage
Image
filename xsd:string
resolution xsd:string
lastModified xsd:datetime
ArrayOfCategoryArticles
articleCode xsd:int

Voorbeelden[bewerken]

PHP[bewerken]

Request[bewerken]

ini_set("soap.wsdl_cache_enabled", 0);
 
class UsernameToken
{
    public $Username;
    public $Password;
 
    public function __construct( $username, $password )
    {
        $this->Username = $username;
        $this->Password = $password;
    }
}
 
$ns = 'http://schemas.xmlsoap.org/ws/2002/07/utility/';   
$ut = new UsernameToken( 'USERNAME', 'PASSWORD' );
$soapHeaders[] = new SoapHeader( $ns, 'UsernameToken', $ut );
 
// Maak een nieuwe instantie van de SoapClient
$client = new SoapClient( 'http://webservices.newaspect.nl/soap/VERSIE/newaspectwebservice.wsdl', array( 'trace' => 1, 'encoding' => 'utf-8', 'exceptions' => 0 ) );
$client->__setSoapHeaders( $soapHeaders );
 
echo '<pre>';
 
try
{
    $Categories = $client->getCategories( );
    print_r( $Categories );
}
catch ( SoapFault $e )
{
    echo 'Er is een foutmelding opgetreden: ' . $e->getMessage();
    $d = new DOMDocument();
    $d->formatOutput = true;
    $d->loadXML( $client->__getLastRequest() );
    highlight_string( $d->saveXML() );
 
    $d->loadXML( $client->__getLastResponse() );
    highlight_string( $d->saveXML() );
}
 
echo '</pre>';

Response[bewerken]

stdClass Object
(
[GetCategoriesResult] => Array
(
[0] => stdClass Object
(
[catID] => 1023
[parentCatID] => 0
[title] => Laders & Accessoires
[defaultFiltersKeys] => Type
[images] => stdClass Object
(
[imageName] => 1023_10.jpg
[files] => Array
(
[0] => stdClass Object
(
[filename] => https://static.newaspect.nl/media/categorieen/85x85/1023_10.jpg
[resolution] => 85x85
[lastModified] => 2012-09-05T11:54:08
)
 
[1] => stdClass Object
(
[filename] => https://static.newaspect.nl/media/categorieen/105x105/1023_10.jpg
[resolution] => 105x105
[lastModified] => 2012-09-05T11:54:08
)
 
[2] => stdClass Object
(
[filename] => https://static.newaspect.nl/media/categorieen/125x125/1023_10.jpg
[resolution] => 125x125
[lastModified] => 2012-09-05T11:54:08
)
 
)
 
)
 
[articleCodes] => Array
(
[0] => 12058
[1] => 12105
[2] => 11340
[3] => 11341
[4] => 11389
[5] => 11390
[6] => 11490
[7] => 11491
[8] => 11493
[9] => 11511
[10] => 11513
[11] => 11514
[12] => 11515
[13] => 11601
[14] => 11740
[15] => 11752
[16] => 11755
[17] => 11761
[18] => 11771
[19] => 11773
[20] => 11774
[21] => 11781
[22] => 12202
[23] => 12226
[24] => 12352
[25] => 12353
[26] => 12357
[27] => 12362
[28] => 12513
[29] => 12514
[30] => 12670
[31] => 12765
[32] => 12820
[33] => 12826
[34] => 12830
[35] => 12832
[36] => 12836
[37] => 12869
[38] => 12901
[39] => 12966
[40] => 30019
[41] => 13032
[42] => 13042
[43] => 30023
[44] => 13092
[45] => 13111
[46] => 13152
[47] => 13388
[48] => 13393
[49] => 30054
[50] => 30069
[51] => 30081
[52] => 13463
[53] => 13481
[54] => 13511
[55] => 13512
[56] => 13546
[57] => 13600
[58] => 13601
[59] => 13682
[60] => 13685
[61] => 13709
[62] => 13729
[63] => 13762
[64] => 30084
[65] => 14105
[66] => 14205
[67] => 14208
[68] => 14291
[69] => 14293
[70] => 15410
[71] => 15429
[72] => 15512
[73] => 15737
[74] => 15744
[75] => 15962
[76] => 16292
[77] => 16385
[78] => 16494
[79] => 17537
[80] => 17627
[81] => 17871
[82] => 17965
[83] => 18458
[84] => 18569
[85] => 18570
[86] => 18724
[87] => 18725
[88] => 18820
[89] => 18901
[90] => 18902
[91] => 18903
[92] => 19281
[93] => 19428
[94] => 19370
[95] => 19371
[96] => 40030
[97] => 19581
[98] => 30244
[99] => 30245
[100] => 30309
[101] => 30310
[102] => 30311
[103] => 30315
[104] => 30506
[105] => 30508
[106] => 30509
[107] => 30519
[108] => 30521
[109] => 30548
[110] => 30549
[111] => 30550
[112] => 30552
[113] => 30553
[114] => 35246
[115] => 35347
[116] => 35500
[117] => 35787
[118] => 31213
[119] => 31246
[120] => 31298
[121] => 31299
[122] => 31495
[123] => 31496
[124] => 31497
[125] => 34511
[126] => 34512
[127] => 34517
[128] => 31527
[129] => 31669
[130] => 31695
[131] => 31704
[132] => 31705
[133] => 32019
[134] => 32021
[135] => 32261
[136] => 32744
[137] => 32792
[138] => 20495
[139] => 20496
[140] => 20497
[141] => 20498
[142] => 20499
[143] => 20501
[144] => 32947
[145] => 32996
[146] => 33560
[147] => 33638
[148] => 33832
[149] => 33833
[150] => 34206
[151] => 34582
[152] => 34804
[153] => 36170
[154] => 36185
[155] => 36427
[156] => 36491
[157] => 36500
[158] => 36507
[159] => 36509
[160] => 36532
[161] => 36617
[162] => 36618
[163] => 36731
[164] => 36993
[165] => 36995
[166] => 36996
[167] => 36997
[168] => 37008
[169] => 37009
[170] => 37010
[171] => 37011
[172] => 37012
[173] => 37013
[174] => 37014
[175] => 37112
[176] => 37113
[177] => 37177
[178] => 20729
[179] => 20730
[180] => 37205
[181] => 37215
[182] => 37253
[183] => 37254
[184] => 37811
[185] => 37964
[186] => 37982
[187] => 37995
[188] => 38113
[189] => 38114
[190] => 38227
[191] => 38277
[192] => 38278
[193] => 38279
[194] => 38297
[195] => 38298
[196] => 38419
[197] => 38420
[198] => 38489
[199] => 21227
[200] => 21228
[201] => 21229
[202] => 21230
[203] => 21231
[204] => 21232
[205] => 21233
[206] => 21234
[207] => 21235
[208] => 21236
[209] => 21237
[210] => 21238
[211] => 39012
[212] => 39019
[213] => 39021
[214] => 39024
[215] => 39025
[216] => 39222
[217] => 39223
[218] => 39224
[219] => 39225
[220] => 39238
[221] => 39309
[222] => 39310
[223] => 39736
[224] => 40144
[225] => 40145
[226] => 40146
[227] => 40437
[228] => 40482
[229] => 21503
[230] => 40693
[231] => 40749
[232] => 41153
)
 
)
 
[1] => stdClass Object
(
[catID] => 1024
[parentCatID] => 0
[title] => Data Producten
[defaultFiltersKeys] => Type
[images] => stdClass Object
(
[imageName] => 1024_10.jpg
[files] => Array
(
[0] => stdClass Object
(
[filename] => https://static.newaspect.nl/media/categorieen/85x85/1024_10.jpg
[resolution] => 85x85
[lastModified] => 2012-09-05T11:54:11
)
 
[1] => stdClass Object
(
[filename] => https://static.newaspect.nl/media/categorieen/105x105/1024_10.jpg
[resolution] => 105x105
[lastModified] => 2012-09-05T11:54:11
)
 
[2] => stdClass Object
(
[filename] => https://static.newaspect.nl/media/categorieen/125x125/1024_10.jpg
[resolution] => 125x125
[lastModified] => 2012-09-05T11:54:11
)
 
)
 
)
 
[articleCodes] => Array
(
[0] => 11061
[1] => 12192
[2] => 11397
[3] => 11482
[4] => 11486
[5] => 11504
[6] => 12142
[7] => 11573
[8] => 12199
[9] => 12210
[10] => 12326
[11] => 12461
[12] => 12472
[13] => 12692
[14] => 12909
[15] => 30009
[16] => 30021
[17] => 13320
[18] => 30035
[19] => 13413
[20] => 13414
[21] => 13440
[22] => 13510
[23] => 14685
[24] => 15496
[25] => 15945
[26] => 15978
[27] => 16446
[28] => 17641
[29] => 18247
[30] => 19435
[31] => 19592
[32] => 30258
[33] => 30319
[34] => 30498
[35] => 30499
[36] => 30500
[37] => 30501
[38] => 30517
[39] => 35393
[40] => 31208
[41] => 31252
[42] => 31253
[43] => 31464
[44] => 34516
[45] => 31867
[46] => 31874
[47] => 32448
[48] => 32450
[49] => 32452
[50] => 32457
[51] => 32498
[52] => 32785
[53] => 34012
[54] => 33288
[55] => 33642
[56] => 33665
[57] => 33666
[58] => 33681
[59] => 33788
[60] => 34210
[61] => 34223
[62] => 34754
[63] => 34763
[64] => 34764
[65] => 34795
[66] => 36224
[67] => 36459
[68] => 36529
[69] => 36530
[70] => 36735
[71] => 36813
[72] => 36817
[73] => 36818
[74] => 37849
[75] => 38259
[76] => 38260
[77] => 38491
[78] => 21211
[79] => 21212
[80] => 21213
[81] => 21214
[82] => 38995
[83] => 38831
[84] => 38886
[85] => 39013
[86] => 39015
[87] => 39016
[88] => 39017
[89] => 39307
[90] => 39308
[91] => 39383
[92] => 21295
[93] => 21296
[94] => 40094
[95] => 40489
[96] => 40559
[97] => 40560
[98] => 40561
[99] => 40562
[100] => 41434
)
 
)
 
[2] => stdClass Object
(
[catID] => 1026
[parentCatID] => 0
[title] => Spare Parts
[images] => stdClass Object
(
[imageName] => 1026_10.jpg
[files] => Array
(
[0] => stdClass Object
(
[filename] => https://static.newaspect.nl/media/categorieen/85x85/1026_10.jpg
[resolution] => 85x85
[lastModified] => 2012-09-05T11:54:10
)
 
[1] => stdClass Object
(
[filename] => https://static.newaspect.nl/media/categorieen/105x105/1026_10.jpg
[resolution] => 105x105
[lastModified] => 2012-09-05T11:54:10
)
 
[2] => stdClass Object
(
[filename] => https://static.newaspect.nl/media/categorieen/125x125/1026_10.jpg
[resolution] => 125x125
[lastModified] => 2012-09-05T11:54:10
)
 
)
 
)
 
[articleCodes] => Array
(
[0] => 12115
[1] => 12116
[2] => 11111
[3] => 11150
[4] => 11160
[5] => 11871
[6] => 11174
[7] => 11175
[8] => 11176
[9] => 11177
[10] => 11178
[11] => 11181
[12] => 11182
[13] => 11184
[14] => 11186
[15] => 11187
[16] => 11188
[17] => 11189
[18] => 11190
[19] => 11191
[20] => 11192
[21] => 11198
[22] => 11199
[23] => 11201
[24] => 11203
[25] => 11205
[26] => 11206
[27] => 11862
[28] => 11208
[29] => 11816
[30] => 11818
[31] => 11819
[32] => 11820
[33] => 11823
[34] => 11824
[35] => 11825
[36] => 11827
[37] => 11216
[38] => 11828
[39] => 11221
[40] => 11226
[41] => 11237
[42] => 11248
[43] => 11253
[44] => 11831
[45] => 11269
[46] => 11271
[47] => 11274
[48] => 11837
[49] => 11275
[50] => 11276
[51] => 11277
[52] => 11278
[53] => 11281
[54] => 11282
[55] => 11286
[56] => 11288
[57] => 11289
[58] => 11838
[59] => 11293
[60] => 11295
[61] => 11296
[62] => 11297
[63] => 11299
[64] => 11301
[65] => 11407
[66] => 11852
[67] => 11853
[68] => 11856
[69] => 11855
[70] => 12068
[71] => 12182
[72] => 11850
[73] => 11851
[74] => 12080
[75] => 11615
[76] => 12248
[77] => 12268
[78] => 12285
[79] => 12290
[80] => 12295
[81] => 12296
[82] => 12300
[83] => 12303
[84] => 12308
[85] => 12311
[86] => 12343
[87] => 12394
[88] => 12395
[89] => 12401
[90] => 12405
[91] => 12408
[92] => 12416
[93] => 12442
[94] => 12443
[95] => 12444
[96] => 12445
[97] => 12447
[98] => 12522
[99] => 12573
[100] => 12576
[101] => 12577
[102] => 12616
[103] => 12617
[104] => 12652
[105] => 12673
[106] => 12674
[107] => 12675
[108] => 12676
[109] => 12684
[110] => 12685
[111] => 12726
[112] => 12729
[113] => 12732
[114] => 12733
[115] => 12734
[116] => 12745
[117] => 12746
[118] => 12767
[119] => 12774
[120] => 12780
[121] => 12782
[122] => 12783
[123] => 12785
[124] => 12786
[125] => 12787
[126] => 12789
[127] => 12790
[128] => 12810
[129] => 12816
[130] => 12840
[131] => 12842
[132] => 12843
[133] => 12852
[134] => 12866
[135] => 12892
[136] => 12894
[137] => 12899
[138] => 12900
[139] => 12903
[140] => 12904
[141] => 12914
[142] => 12922
[143] => 12926
[144] => 12938
[145] => 12944
[146] => 12945
[147] => 12946
[148] => 12952
[149] => 12968
[150] => 12975
[151] => 12986
[152] => 13006
[153] => 13008
[154] => 13009
[155] => 13010
[156] => 13011
[157] => 13122
[158] => 13128
[159] => 13039
[160] => 13044
[161] => 13055
[162] => 13058
[163] => 13067
[164] => 13075
[165] => <

GetStockList

Vraag voorraad van alle beschikbare artikelen op.

Input en Output[bewerken]

Input[bewerken]

Field Value

Output[bewerken]

Field Value
ArrayOfStockListArticles
articleCode xsd:int
stock xsd:int
expectedOrders ArrayOfExpectedOrders
ArrayOfExpectedOrders
expectedDate xsd:date
expectedAmount xsd:int
reservedAmount xsd:int
freeAmount xsd:int

Voorbeelden[bewerken]

PHP[bewerken]

Request[bewerken]

<?php
ini_set("soap.wsdl_cache_enabled", 0);
 
class usernameToken
{
    public $username;
    public $password;
 
    public function __construct( $username, $password )
    {
        $this->username = $username;
        $this->password = $password;
    }
}
 
$ns = 'http://schemas.xmlsoap.org/ws/2002/07/utility/';   
$ut = new usernameToken( 'LOGIN', 'WACHTWOORD' );
$soapHeaders[] = new SoapHeader( $ns, 'usernameToken', $ut );
 
// Maak een nieuwe instantie van de SoapClient
$client = new SoapClient( 'https://webservices.newaspect.nl/soap/1.31/newaspectwebservice1-31.wsdl', array( 'trace' => 1, 'encoding' => 'utf-8', 'exceptions' => 0 ) );
$client->__setSoapHeaders( $soapHeaders );
 
echo '<pre>';
 
try
{
    $ArticleStockList = $client->getStockList( );
    print_r( $ArticleStockList );   
}
catch ( SoapFault $e )
{
    echo 'Er is een foutmelding opgetreden: ' . $e->getMessage();
    $d = new DOMDocument();
    $d->formatOutput = true;
    $d->loadXML( $client->__getLastRequest() );
    highlight_string( $d->saveXML() );
 
    $d->loadXML( $client->__getLastResponse() );
    highlight_string( $d->saveXML() );
}
 
echo '</pre>';

Response[bewerken]

Array
(
    [0] => stdClass Object
        (
            [articleCode] => 11000
            [stock] => 65
        )
 
    [1] => stdClass Object
        (
            [articleCode] => 11001
            [stock] => 32
            [expectedOrders] => Array
                (
                    [0] => stdClass Object
                        (
                            [expectedDate] => 
                            [expectedAmount] => 50
                            [reservedAmount] => 0
                            [freeAmount] => 50
                        )
 
                )
 
        )
 
    [2] => stdClass Object
        (
            [articleCode] => 11002
            [stock] => 125
        )
 
    [3] => stdClass Object
        (
            [articleCode] => 11011
            [stock] => 49
        )
)

SOAP – Webservice

Onze SOAPWebservice biedt eigenlijk alle mogelijkheden die u ook in onze webshop kunt vinden. Zo kunt u Artikel gegevens, categorie overzichten, orders plaatsen, PDF en XML facturen en nog veer meer opvragen en hiermee een volledige koppeling realiseren.

In de url staat LOGIN en WACHTWOORD, dit dient u te vervangen met de logingegevens die u ook gebruikt om in te loggen op de New Aspect Webshop.

Change Log[bewerken]

We doen onze uiterste best om regelmatig de webservice uit te breiden of bugs eruit te halen waar nodig. Indien dit effect heeft op de werking van de webservice zal een nieuwe versie gelanceerd worden. In de Change Log houden we een overzicht bij van de wijzigingen.

WSDL laatste Release[bewerken]

Voorbeeld URL: https://webservices.newaspect.nl/soap/VERSIE/newaspectwebservice.wsdl

DOCUMENTATION ON WIKI: https://webservices.newaspect.nl/soap/1.2/newaspectwebservice.wsdl

LAST STABLE VERSION: https://webservices.newaspect.nl/soap/1.31/newaspectwebservice1-31.wsdl (UPDATE WIKI SOON)

Beschikbare Calls[bewerken]

PHP voorbeeld opvragen Voorraad[bewerken]

<?php
ini_set("soap.wsdl_cache_enabled", 0);
 
class usernameToken
{
    public $username;
    public $password;
 
    public function __construct( $username, $password )
    {
        $this->username = $username;
        $this->password = $password;
    }
}
 
$ns = 'http://schemas.xmlsoap.org/ws/2002/07/utility/';   
$ut = new usernameToken( 'LOGIN', 'WACHTWOORD' );
$soapHeaders[] = new SoapHeader( $ns, 'usernameToken', $ut );
 
// Maak een nieuwe instantie van de SoapClient
$client = new SoapClient( 'https://webservices.newaspect.nl/soap/1.31/newaspectwebservice1-31.wsdl', array( 'trace' => 1, 'encoding' => 'utf-8', 'exceptions' => 0 ) );
$client->__setSoapHeaders( $soapHeaders );
 
echo '<pre>';
 
try
{
    $ArticleStock = $client->getArticleStock( (int)31674 );
    print_r( $ArticleStock );   
}
catch ( SoapFault $e )
{
    echo 'Er is een foutmelding opgetreden: ' . $e->getMessage();
    $d = new DOMDocument();
    $d->formatOutput = true;
    $d->loadXML( $client->__getLastRequest() );
    highlight_string( $d->saveXML() );
 
    $d->loadXML( $client->__getLastResponse() );
    highlight_string( $d->saveXML() );
}
 
echo '</pre>';
?>

GetArticle

Vraag alle details van een artikel op.

Input en Output[bewerken]

Input[bewerken]

Field Value
articleCode xsd:int

Output[bewerken]

Field Value
articleCode xsd:int
title xsd:string
brand xsd:string
brandID xsd:int
type xsd:string
model xsd:string
description xsd:string
keywords xsd:string
price xsd:decimal
priceWithoutDiscount xsd:decimal
recommendPrice xsd:decimal
package xsd:string
EAN xsd:string
ArrayOfArticleSpecs
key xsd:string
value xsd:string
ArrayOfImages
ArrayOfImage
Image
filename xsd:string
resolution xsd:string
lastModified xsd:datetime
ArrayOfYoutube
youtubeID xsd:string
ArrayOfArticleCategories
catID xsd:int
ArrayOfArticleRelatedArticles
articleCode xsd:int
ArrayOfArticleCompatibleDevices
catID xsd:int

Voorbeelden[bewerken]

PHP[bewerken]

Request[bewerken]

ini_set("soap.wsdl_cache_enabled", 0);
 
class usernameToken
{
    public $username;
    public $password;
 
    public function __construct( $username, $password )
    {
        $this->username = $username;
        $this->password = $password;
    }
}
 
$ns = 'http://schemas.xmlsoap.org/ws/2002/07/utility/';   
$ut = new usernameToken( 'USERNAME', 'PASSWORD' );
$soapHeaders[] = new SoapHeader( $ns, 'usernameToken', $ut );
 
 
// Maak een nieuwe instantie van de SoapClient
$client = new SoapClient( 'http://webservices.newaspect.nl/soap/VERSIE/newaspectwebservice.wsdl', array( 'trace' => 1, 'encoding' => 'utf-8', 'exceptions' => 0 ) );
$client->__setSoapHeaders( $soapHeaders );
 
echo '<pre>';
 
try
{
    $parameters = new stdClass();
    $parameters->articleCode = 30553;
 
    $Article = $client->getArticle( $parameters );
 
    print_r( $Article ); 
}
catch ( SoapFault $e )
{
    echo 'Er is een foutmelding opgetreden: ' . $e->getMessage();
    $d = new DOMDocument();
    $d->formatOutput = true;
    $d->loadXML( $client->__getLastRequest() );
    highlight_string( $d->saveXML() );
 
    $d->loadXML( $client->__getLastResponse() );
    highlight_string( $d->saveXML() );
}
 
echo '</pre>';

Response[bewerken]

stdClass Object
(
[GetArticleResult] => stdClass Object
(
[articleCode] => 30553
[title] => Xccess USB Tiny autolader Black
[brand] => Xccess
[brandID] => 3110
[type] => XPT-TULB-UNI
[model] => USB Tiny
[description] =>
Nu kunt u de accu van uw toestel snel en efficiënt opladen waar u ook bent.
 
 
[keywords] =>
[price] => 2.99
[priceWithoutDiscount] => 2.99
[recommendPrice] => 12.99
[package] => Bulk
[EAN] => 8718256007200
[rating] => 79
[specifications] => Array
(
[0] => stdClass Object
(
[key] => mAh
[value] => 1000
)
 
[1] => stdClass Object
(
[key] => Type
[value] => Auto USB
)
 
)
 
[images] => stdClass Object
(
[imageName] => 30553_10.jpg
[files] => Array
(
[0] => stdClass Object
(
[filename] => http://static.newaspect.nl/media/artikelen/125x125/30553_10.jpg
[resolution] => 125x125
[lastModified] => 2014-04-09T11:45:50
)
 
[1] => stdClass Object
(
[filename] => http://static.newaspect.nl/media/artikelen/640x640/30553_10.jpg
[resolution] => 640x640
[lastModified] => 2014-04-09T11:45:50
)
 
[2] => stdClass Object
(
[filename] => http://static.newaspect.nl/media/artikelen/800x600/30553_10.jpg
[resolution] => 800x600
[lastModified] => 2014-04-09T11:45:50
)
 
[3] => stdClass Object
(
[filename] => http://static.newaspect.nl/media/artikelen/1024x768/30553_10.jpg
[resolution] => 1024x768
[lastModified] => 2014-04-09T11:45:50
)
 
)
 
)
 
[categories] => stdClass Object
(
[catID] => 1023
)
 
[relatedArticles] => Array
(
[0] => stdClass Object
(
[articleCode] => 16446
)
 
[1] => stdClass Object
(
[articleCode] => 18247
)
 
)
 
[compatibleDevices] => Array
(
[0] => stdClass Object
(
[devID] => 3203
)
 
[1] => stdClass Object
(
[devID] => 3299
)
 
[2] => stdClass Object
(
[devID] => 3191
)
 
[3] => stdClass Object
(
[devID] => 3229
)
 
[4] => stdClass Object
(
[devID] => 3388
)
 
[5] => stdClass Object
(
[devID] => 3467
)
 
[6] => stdClass Object
(
[devID] => 3275
)
 
[7] => stdClass Object
(
[devID] => 3209
)
 
[8] => stdClass Object
(
[devID] => 3323
)
 
[9] => stdClass Object
(
[devID] => 3389
)
 
[10] => stdClass Object
(
[devID] => 3390
)
 
[11] => stdClass Object
(
[devID] => 3460
)
 
[12] => stdClass Object
(
[devID] => 2550
)
 
[13] => stdClass Object
(
[devID] => 595
)
 
[14] => stdClass Object
(
[devID] => 596
)
 
[15] => stdClass Object
(
[devID] => 597
)
 
[16] => stdClass Object
(
[devID] => 598
)
 
[17] => stdClass Object
(
[devID] => 599
)
 
[18] => stdClass Object
(
[devID] => 600
)
 
[19] => stdClass Object
(
[devID] => 601
)
 
[20] => stdClass Object
(
[devID] => 602
)
 
[21] => stdClass Object
(
[devID] => 603
)
 
[22] => stdClass Object
(
[devID] => 605
)
 
[23] => stdClass Object
(
[devID] => 606
)
 
[24] => stdClass Object
(
[devID] => 607
)
 
[25] => stdClass Object
(
[devID] => 608
)
 
[26] => stdClass Object
(
[devID] => 609
)
 
[27] => stdClass Object
(
[devID] => 610
)
 
[28] => stdClass Object
(
[devID] => 611
)
 
[29] => stdClass Object
(
[devID] => 612
)
 
[30] => stdClass Object
(
[devID] => 613
)
 
[31] => stdClass Object
(
[devID] => 1262
)
 
[32] => stdClass Object
(
[devID] => 604
)
 
[33] => stdClass Object
(
[devID] => 614
)
 
[34] => stdClass Object
(
[devID] => 615
)
 
[35] => stdClass Object
(
[devID] => 1406
)
 
[36] => stdClass Object
(
[devID] => 1263
)
 
[37] => stdClass Object
(
[devID] => 1264
)
 
[38] => stdClass Object
(
[devID] => 616
)
 
[39] => stdClass Object
(
[devID] => 1265
)
 
[40] => stdClass Object
(
[devID] => 1266
)
 
[41] => stdClass Object
(
[devID] => 617
)
 
[42] => stdClass Object
(
[devID] => 618
)
 
[43] => stdClass Object
(
[devID] => 619
)
 
[44] => stdClass Object
(
[devID] => 620
)
 
[45] => stdClass Object
(
[devID] => 621
)
 
[46] => stdClass Object
(
[devID] => 1267
)
 
[47] => stdClass Object
(
[devID] => 1268
)
 
[48] => stdClass Object
(
[devID] => 624
)
 
[49] => stdClass Object
(
[devID] => 622
)
 
[50] => stdClass Object
(
[devID] => 2264
)
 
[51] => stdClass Object
(
[devID] => 3472
)
 
[52] => stdClass Object
(
[devID] => 3443
)
 
[53] => stdClass Object
(
[devID] => 3272
)
 
[54] => stdClass Object
(
[devID] => 3315
)
 
[55] => stdClass Object
(
[devID] => 3253
)
 
[56] => stdClass Object
(
[devID] => 3316
)
 
[57] => stdClass Object
(
[devID] => 3273
)
 
[58] => stdClass Object
(
[devID] => 3476
)
 
[59] => stdClass Object
(
[devID] => 3391
)
 
[60] => stdClass Object
(
[devID] => 3402
)
 
[61] => stdClass Object
(
[devID] => 3403
)
 
[62] => stdClass Object
(
[devID] => 3404
)
 
[63] => stdClass Object
(
[devID] => 3394
)
 
[64] => stdClass Object
(
[devID] => 3393
)
 
[65] => stdClass Object
(
[devID] => 3392
)
 
[66] => stdClass Object
(
[devID] => 3285
)
 
[67] => stdClass Object
(
[devID] => 3254
)
 
[68] => stdClass Object
(
[devID] => 3271
)
 
[69] => stdClass Object
(
[devID] => 3284
)
 
[70] => stdClass Object
(
[devID] => 2647
)
 
[71] => stdClass Object
(
[devID] => 2262
)
 
[72] => stdClass Object
(
[devID] => 2250
)
 
[73] => stdClass Object
(
[devID] => 2251
)
 
[74] => stdClass Object
(
[devID] => 2252
)
 
[75] => stdClass Object
(
[devID] => 2253
)
 
[76] => stdClass Object
(
[devID] => 2254
)
 
[77] => stdClass Object
(
[devID] => 2256
)
 
[78] => stdClass Object
(
[devID] => 2255
)
 
[79] => stdClass Object
(
[devID] => 623
)
 
[80] => stdClass Object
(
[devID] => 2257
)
 
[81] => stdClass Object
(
[devID] => 2263
)
 
[82] => stdClass Object
(
[devID] => 2258
)
 
[83] => stdClass Object
(
[devID] => 2259
)
 
[84] => stdClass Object
(
[devID] => 2260
)
 
[85] => stdClass Object
(
[devID] => 2261
)
 
[86] => stdClass Object
(
[devID] => 2660
)
 
[87] => stdClass Object
(
[devID] => 2912
)
 
[88] => stdClass Object
(
[devID] => 3146
)
 
[89] => stdClass Object
(
[devID] => 3295
)
 
[90] => stdClass Object
(
[devID] => 3481
)
 
[91] => stdClass Object
(
[devID] => 3147
)
 
[92] => stdClass Object
(
[devID] => 3296
)
 
[93] => stdClass Object
(
[devID] => 3482
)
 
[94] => stdClass Object
(
[devID] => 1688
)
 
[95] => stdClass Object
(
[devID] => 1977
)
 
[96] => stdClass Object
(
[devID] => 2352
)
 
[97] => stdClass Object
(
[devID] => 2667
)
 
[98] => stdClass Object
(
[devID] => 2992
)
 
[99] => stdClass Object
(
[devID] => 3118
)
 
[100] => stdClass Object
(
[devID] => 3261
)
 
[101] => stdClass Object
(
[devID] => 3278
)
 
[102] => stdClass Object
(
[devID] => 3433
)
 
[103] => stdClass Object
(
[devID] => 3434
)
 
[104] => stdClass Object
(
[devID] => 495
)
 
[105] => stdClass Object
(
[devID] => 489
)
 
[106] => stdClass Object
(
[devID] => 490
)
 
[107] => stdClass Object
(
[devID] => 491
)
 
[108] => stdClass Object
(
[devID] => 492
)
 
[109] => stdClass Object
(
[devID] => 493
)
 
[110] => stdClass Object
(
[devID] => 1749
)
 
[111] => stdClass Object
(
[devID] => 2297
)
 
[112] => stdClass Object
(
[devID] => 2707
)
 
[113] => stdClass Object
(
[devID] => 2752
)
 
[114] => stdClass Object
(
[devID] => 3145
)
 
[115] => stdClass Object
(
[devID] => 494
)
 
[116] => stdClass Object
(
[devID] => 3072
)
 
[117] => stdClass Object
(
[devID] => 3003
)
 
[118] => stdClass Object
(
[devID] => 2557
)
 
[119] => stdClass Object
(
[devID] => 2560
)
 
[120] => stdClass Object
(
[devID] => 2555
)
 
[121] => stdClass Object
(
[devID] => 2554
)
 
[122] => stdClass Object
(
[devID] => 2548
)
 
[123] => stdClass Object
(
[devID] => 2559
)
 
[124] => stdClass Object
(
[devID] => 2556
)
 
[125] => stdClass Object
(
[devID] => 3202
)
 
[126] => stdClass Object
(
[devID] => 3324
)
 
[127] => stdClass Object
(
[devID] => 3322
)
 
[128] => stdClass Object
(
[devID] => 3116
)
 
[129] => stdClass Object
(
[devID] => 3255
)
 
[130] => stdClass Object
(
[devID] => 2320
)
 
[131] => stdClass Object
(
[devID] => 3449
)
 
[132] => stdClass Object
(
[devID] => 3320
)
 
[133] => stdClass Object
(
[devID] => 3265
)
 
[134] => stdClass Object
(
[devID] => 2293
)
 
[135] => stdClass Object
(
[devID] => 2296
)
 
[136] => stdClass Object
(
[devID] => 2295
)
 
[137] => stdClass Object
(
[devID] => 2294
)
 
[138] => stdClass Object
(
[devID] => 2321
)
 
[139] => stdClass Object
(
[devID] => 3199
)
 
[140] => stdClass Object
(
[devID] => 3200
)
 
[141] => stdClass Object
(
[devID] => 3355
)
 
[142] => stdClass Object
(
[devID] => 3201
)
 
[143] => stdClass Object
(
[devID] => 626
)
 
[144] => stdClass Object
(
[devID] => 627
)
 
[145] => stdClass Object
(
[devID] => 628
)
 
[146] => stdClass Object
(
[devID] => 629
)
 
[147] => stdClass Object
(
[devID] => 630
)
 
[148] => stdClass Object
(
[devID] => 631
)
 
[149] => stdClass Object
(
[devID] => 632
)
 
[150] => stdClass Object
(
[devID] => 633
)
 
[151] => stdClass Object
(
[devID] => 634
)
 
[152] => stdClass Object
(
[devID] => 635
)
 
[153] => stdClass Object
(
[devID] => 636
)
 
[154] => stdClass Object
(
[devID] => 637
)
 
[155] => stdClass Object
(
[devID] => 638
)
 
[156] => stdClass Object
(
[devID] => 639
)
 
[157] => stdClass Object
(
[devID] => 640
)
 
[158] => stdClass Object
(
[devID] => 641
)
 
[159] => stdClass Object
(
[devID] => 642
)
 
[160] => stdClass Object
(
[devID] => 643
)
 
[161] => stdClass Object
(
[devID] => 644
)
 
[162] => stdClass Object
(
[devID] => 645
)
 
[163] => stdClass Object
(
[devID] => 646
)
 
[164] => stdClass Object
(
[devID] => 650
)
 
[165] => stdClass Object
(
[devID] => 647
)
 
[166] => stdClass Object
(
[devID] => 648
)
 
[167] => stdClass Object
(
[devID] => 555
)
 
[168] => stdClass Object
(
[devID] => 556
)
 
[169] => stdClass Object
(
[devID] => 557
)
 
[170] => stdClass Object
(
[devID] => 558
)
 
[171] => stdClass Object
(
[devID] => 559
)
 
[172] => stdClass Object
(
[devID] => 560
)
 
[173] => stdClass Object
(
[devID] => 561
)
 
[174] => stdClass Object
(
[devID] => 562
)
 
[175] => stdClass Object
(
[devID] => 563
)
 
[176] => stdClass Object
(
[devID] => 564
)
 
[177] => stdClass Object
(
[devID] => 565
)
 
[178] => stdClass Object
(
[devID] => 566
)
 
[179] => stdClass Object
(
[devID] => 567
)
 
[180] => stdClass Object
(
[devID] => 568
)
 
[181] => stdClass Object
(
[devID] => 569
)
 
[182] => stdClass Object
(
[devID] => 570
)
 
[183] => stdClass Object
(
[devID] => 571
)
 
[184] => stdClass Object
(
[devID] => 572
)
 
[185] => stdClass Object
(
[devID] => 573
)
 
[186] => stdClass Object
(
[devID] => 574
)
 
[187] => stdClass Object
(
[devID] => 575
)
 
[188] => stdClass Object
(
[devID] => 576
)
 
[189] => stdClass Object
(
[devID] => 577
)
 
[190] => stdClass Object
(
[devID] => 578
)
 
[191] => stdClass Object
(
[devID] => 579
)
 
[192] => stdClass Object
(
[devID] => 580
)
 
[193] => stdClass Object
(
[devID] => 581
)
 
[194] => stdClass Object
(
[devID] => 582
)
 
[195] => stdClass Object
(
[devID] => 583
)
 
[196] => stdClass Object
(
[devID] => 584
)
 
[197] => stdClass Object
(
[devID] => 585
)
 
[198] => stdClass Object
(
[devID] => 593
)
 
[199] => stdClass Object
(
[devID] => 2084
)
 
[200] => stdClass Object
(
[devID] => 1751
)
 
[201] => stdClass Object
(
[devID] => 1927
)
 
[202] => stdClass Object
(
[devID] => 2083
)
 
[203] => stdClass Object
(
[devID] => 1269
)
 
[204] => stdClass Object
(
[devID] => 1750
)
 
[205] => stdClass Object
(
[devID] => 1752
)
 
[206] => stdClass Object
(
[devID] => 2486
)
 
[207] => stdClass Object
(
[devID] => 586
)
 
[208] => stdClass Object
(
[devID] => 587
)
 
[209] => stdClass Object
(
[devID] => 588
)
 
[210] => stdClass Object
(
[devID] => 589
)
 
[211] => stdClass Object
(
[devID] => 590
)
 
[212] => stdClass Object
(
[devID] => 591
)
 
[213] => stdClass Object
(
[devID] => 592
)
 
[214] => stdClass Object
(
[devID] => 1270
)
 
[215] => stdClass Object
(
[devID] => 1271
)
 
[216] => stdClass Object
(
[devID] => 1094
)
 
[217] => stdClass Object
(
[devID] => 2146
)
 
[218] => stdClass Object
(
[devID] => 1982
)
 
[219] => stdClass Object
(
[devID] => 2905
)
 
[220] => stdClass Object
(
[devID] => 2703
)
 
[221] => stdClass Object
(
[devID] => 3090
)
 
[222] => stdClass Object
(
[devID] => 2751
)
 
[223] => stdClass Object
(
[devID] => 3121
)
 
[224] => stdClass Object
(
[devID] => 2991
)
 
[225] => stdClass Object
(
[devID] => 2995
)
 
[226] => stdClass Object
(
[devID] => 2082
)
 
[227] => stdClass Object
(
[devID] => 2539
)
 
[228] => stdClass Object
(
[devID] => 2189
)
 
[229] => stdClass Object
(
[devID] => 2584
)
 
[230] => stdClass Object
(
[devID] => 2485
)
 
[231] => stdClass Object
(
[devID] => 2540
)
 
[232] => stdClass Object
(
[devID] => 3305
)
 
[233] => stdClass Object
(
[devID] => 2822
)
 
[234] => stdClass Object
(
[devID] => 3029
)
 
[235] => stdClass Object
(
[devID] => 2809
)
 
[236] => stdClass Object
(
[devID] => 2990
)
 
[237] => stdClass Object
(
[devID] => 2989
)
 
[238] => stdClass Object
(
[devID] => 2950
)
 
[239] => stdClass Object
(
[devID] => 2988
)
 
[240] => stdClass Object
(
[devID] => 3471
)
 
[241] => stdClass Object
(
[devID] => 2913
)
 
[242] => stdClass Object
(
[devID] => 3028

Change Log XML

  • 2014-04-10: toegevoegd element tracktraceURL packingslip
  • 2014-04-10: toegevoegd element youtubeIds article
  • 2014-04-10: toegevoegd element rating article
  • 2014-04-10: toegevoegd element rating device
  • 2014-04-10: toegevoegd element rating devices
  • 2014-04-10: toegevoegd element rating brands
  • 2014-04-10: toegevoegd element defaultFiltersKeys categories
  • 2014-04-10: toegevoegd element lastModified articlestock
  • 2014-04-10: toegevoegd element lastModified stocklist
  • 2013-11-18: nieuwe xml order
  • 2013-11-18: nieuwe xml orders
  • 2013-11-18: nieuwe xml backorders
  • 2013-11-18: nieuwe xml invoices
  • 2013-11-18: nieuwe xml brands
  • 2013-11-18: nieuwe xml device
  • 2013-11-18: nieuwe xml devices
  • 2013-11-18: nieuwe xml categories
  • 2013-11-18: nieuwe xml article
  • 2013-11-18: nieuwe xml stocklist
  • 2013-11-18: nieuwe xml packingslip
  • 2013-11-18: nieuwe xml articlestock
  • 2013-05-18: nieuwe xml ublinvoice

Change Log

Versie 1.2[bewerken]

  • 2014-02-03: nieuw getPackingSlip EAN toegevoegd
  • 2014-01-17: nieuw getArticle ArrayOfYoutube toegevoegd, Youtube filmpjes gekoppeld aan onze artikelen staan nu ook in de webservice
  • 2014-01-17: bug getArticle ArticleCompatibleDevices opgelost, niet alle Devices werden weergegeven
  • 2014-01-17: bug getStockList Er bleken artikelen te ontbreken, deze artikelen staan nu wel in de lijst
  • 2014-01-14: bugs/verbeteringen in WSDL aangepakt
  • 2014-01-13: bug getOrder Veld orderDateTime was altijd leeg, veld is vanaf nu gevuld.
  • 2013-11-20: aanpassing in WSDL, Order en ArrayOfOrderRow waren meerdere keren gedefinieerd als type. In SetOrder zijn deze types aangepast naar Order2 en ArrayOfOrderRows2
  • 2013-11-18: nieuw getOrder
  • 2013-11-18: nieuw getOrders
  • 2013-11-18: nieuw getBackorders
  • 2013-11-18: nieuw getInvoices
  • 2013-11-18: nieuw getBrands
  • 2013-11-18: nieuw getDevice
  • 2013-11-18: nieuw getDevices
  • 2013-11-18: nieuw getCategories
  • 2013-11-18: nieuw getArticle
  • 2013-10-14: diverse fouten uit WSDL gehaald en/of verbeteringen aangebracht
  • 2013-09-17: aanpassing getArticleStock: expectedOrders array wordt alleen weergegeven indien er ook te verwachten orders zijn
  • 2013-09-17: nieuw getStockList

Versie 1.1[bewerken]

  • 2013-09-15: WSDL: paar typefouten in element namen en types aangepast
  • 2013-09-13: aanpassing setOrder: setOrderResponse aangepast naar getOrderResponse
  • 2013-09-01: nieuw getPackingSlip
  • 2013-09-01: nieuw getArticleStock
  • 2013-09-01: nieuw setOrder

GetPackingSlip

Vraag alle details van een pakbon op.

Input en Output[bewerken]

Input[bewerken]

Field Value
packingSlipId xsd:int

Output[bewerken]

Field Value
packingSlipId xsd:int
sendDate xsd:date
tracktrace xsd:string
packingSlipRows ArrayOfPackingSlipRows
ArrayOfPackingSlipRows
articleCode xsd:int
EAN xsd:string
amount xsd:int
price xsd:decimal

Voorbeelden[bewerken]

PHP[bewerken]

Request[bewerken]

ini_set("soap.wsdl_cache_enabled", 0);
 
class UsernameToken
{
    public $Username;
    public $Password;
 
    public function __construct( $username, $password )
    {
        $this->Username = $username;
        $this->Password = $password;
    }
}
 
$ns = 'http://schemas.xmlsoap.org/ws/2002/07/utility/';   
$ut = new UsernameToken( 'USERNAME', 'PASSWORD' );
$soapHeaders[] = new SoapHeader( $ns, 'UsernameToken', $ut );
 
// Maak een nieuwe instantie van de SoapClient
$client = new SoapClient( 'http://webservices.newaspect.nl/soap/VERSIE/newaspectwebservice.wsdl', array( 'trace' => 1, 'encoding' => 'utf-8', 'exceptions' => 0 ) );
$client->__setSoapHeaders( $soapHeaders );
 
echo '<pre>';
 
try
{
    $PackingSlip = $client->getPackingSlip( packingSlipId );
    print_r( $PackingSlip );
}
catch ( SoapFault $e )
{
    echo 'Er is een foutmelding opgetreden: ' . $e->getMessage();
    $d = new DOMDocument();
    $d->formatOutput = true;
    $d->loadXML( $client->__getLastRequest() );
    highlight_string( $d->saveXML() );
 
    $d->loadXML( $client->__getLastResponse() );
    highlight_string( $d->saveXML() );
}
 
echo '</pre>';

Response[bewerken]

stdClass Object
(
    [packingSlipId] => 217971
    [sendDate] => 2013-06-10
    [tracktrace] => 75750016247282
    [packingSlipRows] => Array
        (
            [0] => stdClass Object
                (
                    [articleCode] => 36396
                    [amount] => 1
                    [price] => 2.24
                )
 
            [1] => stdClass Object
                (
                    [articleCode] => 4
                    [amount] => 1
                    [price] => 0.00
                )
 
            [2] => stdClass Object
                (
                    [articleCode] => 36918
                    [amount] => 1
                    [price] => 13.99
                )
 
            [3] => stdClass Object
                (
                    [articleCode] => 100
                    [amount] => 1
                    [price] => 4.99
                )
 
            [4] => stdClass Object
                (
                    [articleCode] => 36396
                    [amount] => 1
                    [price] => 2.24
                )
 
            [5] => stdClass Object
                (
                    [articleCode] => 33732
                    [amount] => 1
                    [price] => 6.29
                )
 
            [6] => stdClass Object
                (
                    [articleCode] => 30517
                    [amount] => 1
                    [price] => 4.94
                )
 
            [7] => stdClass Object
                (
                    [articleCode] => 100
                    [amount] => 1
                    [price] => 4.99
                )
 
        )
 
)