Here is a sample of our array:

 

Array

(

    [0] => stdClass Object

        (

            [aResult] => stdClass Object

                (

                    [ArrayOfString] => Array

                        (

                            [0] => stdClass Object

                                (

                                    [string] => Array

                                        (

                                            [0] => OXSHOPID

                                            [1] => 1

                                        )

 

                                )

 

                            [1] => stdClass Object

                                (

                                    [string] => Array

                                        (

                                            [0] => OXSHOPINCL

                                            [1] => 1

                                        )

 

                                )

 

                            [2] => stdClass Object

                                (

                                    [string] => Array

                                        (

                                            [0] => OXSHOPEXCL

                                            [1] => 0

                                        )

 

                                )

 

                            [3] => stdClass Object

                                (

                                    [string] => Array

                                        (

                                            [0] => OXPARENTID

                                            [1] => 

                                        )

 

                                )

 

                            [4] => stdClass Object

                                (

                                    [string] => Array

                                        (

                                            [0] => OXACTIV

                                            [1] => 1

                                        )

 

                                )

 

                            [5] => stdClass Object

                                (

                                    [string] => Array

                                        (

                                            [0] => OXACTIVFROM

                                            [1] => 2012-07-01 10:00:00

                                        )

 

                                )

 

                            [6] => stdClass Object

                                (

                                    [string] => Array

                                        (

                                            [0] => OXACTIVTO

                                            [1] => 2013-07-01 10:00:00

                                        )

 

                                )

 

                        )

 

                    [0] => stdClass Object

                        (

                            [string] => Array

                                (

                                    [0] => OXARTNUM

                                    [1] => e343434

                                )

 

                        )

 

I left out the other fields. As I mentioned the import on the OXID database
is happening. But the last field accepted is always OXACTIVTO,

from OXARTNUM on no other fields are parsed. Not even through the ERP
methods like $aData in saveObject() or _preAssignObject()! L

 

Von: [email protected]
[mailto:[email protected]] Im Auftrag von Reinhard
Vogl
Gesendet: Montag, 9. Juli 2012 17:42
An: '[email protected]'
Betreff: Re: [oxid-dev-general] SOAP setArticle setting few columns only

 

Hi and welcome,

 

all data objects that are transferred to the erp service have to be an array
of OXERPTypes

 

so, in your case: OXERPSetArticle(array('sSessionID' => XXX, 'aArticle' =>
$articles));

 

$article1 = new OXERPType();

$article1->aResult[0][0]='OXID'; 

$article1->aResult[0][1]='YOUROXID';

$article1->aResult[1][0]='OXTITLE'; 

$article1->aResult[1][1]='wakeboard';

 

$articles = array();

$articles[] = $article1;

 

You don't have to fill all oxid fields. The fields you fill are updated.

 

That's all I imagine without the documentation ;)

 

Best Regards,

Reini

 

@Marco: Doublethanks + beer ;)

 

Von: [email protected]
[mailto:[email protected]] Im Auftrag von Marco
Steinhaeuser
Gesendet: Montag, 9. Juli 2012 16:34
An: [email protected]
Betreff: Re: [oxid-dev-general] SOAP setArticle setting few columns only

 

Hi and welcome to this list,

> Since we do not have a proper documentation

I'd suggest to request it from the support team. I reckon you will be not
very happy with debugging only ;)

Regards
Marco

  _____  

From: [email protected]
[[email protected]] on behalf of Tridem Lists
[[email protected]]
Sent: Monday, July 09, 2012 4:17 PM
To: [email protected]
Subject: [oxid-dev-general] SOAP setArticle setting few columns only

First of all,

we are new to OXID and the shop connector.

 

We managed to use the setCategory method successfully.

 

No we are working on the setArticle method. Since we do not have a proper
documentation

we simply used the getArticle method to get an impression of how our
aArticle property has to look.

Though our object seems to be complete, only few columns are inserted into
the shops' db.

 

We tried to debug the methods in

/modules/erp/objects/oxerptype.php

directely and it looks like our object is parsed to methods like

saveObject

incomplete already - cut after "OXACTIVTO".

 

Unfortunately we have to way to debug any method that parses our object.

Is there any limitation, required field etc. we are missing to hand over to
the setArticle method?

 

.->OXERPSetArticle(array('sSessionID' => XXX, 'aArticle' => $articles));

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to