Joyride Posted March 27, 2007 Report Share Posted March 27, 2007 Loti noderetu, ja kads ir taisijis sistemu, kas nolasa XML datus no sekojosiem vairumtirgotajiem - GNT, Elco un Acme. Esmu ticis lidz produktu grupu iegusanai un saglabasanai ieks DB. Nekadi nevaru izdomat, ka var dabut produktus... Busu priecigs par jebkadu palidzibu, idejam, ietaikumiem, varbut pat koda paraugiem! Link to comment Share on other sites More sharing options...
v3rb0 Posted March 27, 2007 Report Share Posted March 27, 2007 parādi xmlu. Link to comment Share on other sites More sharing options...
ohmygod Posted March 27, 2007 Report Share Posted March 27, 2007 ACMEi ir PHP paraugi jau doti pie viņu XML dokumentācijas! Cik atceros, tad arī GNT btur kkas bija. Link to comment Share on other sites More sharing options...
andrisp Posted March 27, 2007 Report Share Posted March 27, 2007 Elco arī ir sava dokumentācija. Ja pieeeja viņu autorizācijas datiem tev ir legāla, tad noteikti vari prasīt no viņiem dokumentāciju. Link to comment Share on other sites More sharing options...
Joyride Posted March 27, 2007 Author Report Share Posted March 27, 2007 (edited) Jaa, bet Acmei ir vendors.xml, groups.xml, types.xml, tur info dubultojas un es vel neesmu atradis, kur glabajas produkti. types.xml: http://paste.php.lv/5359 vendors.xml: http://paste.php.lv/5360 groups.xml: http://paste.php.lv/5361 P.S. Es pagaidam njemos ar Acme; Elco un GNT vel ir prieksa. P.P.S. Man ir legala pieeja siem datiem. Edited March 27, 2007 by Joyride Link to comment Share on other sites More sharing options...
andrisp Posted March 27, 2007 Report Share Posted March 27, 2007 Sameklē viņu kontaktus, uzmeilo vai uzvani un uzprasi. Viņi taču vislabāk zinās. Link to comment Share on other sites More sharing options...
Joyride Posted March 27, 2007 Author Report Share Posted March 27, 2007 OK. Bet ja nu tiesam kads var padalities ar gatavu kodu, butu loti pateicigs. Jo XML apstrade nav vieniga lieta, pie kuras paslaik stradaju, tapec nav iespejams veltit tik daudz laika (pagaidam) tai vinju XML logjikai. Un vai jus varetu ievertet, vai te nevar kaut ko uzlabot: http://paste.php.lv/5362 Pati XML parsera klase ir seit: http://paste.php.lv/5363 Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 28, 2007 Report Share Posted March 28, 2007 (edited) Joyride --> Ljoti svariigi zinaat kaadu PHP versiju taisies izmantot... XML apstraadee starp PHP 4 un PHP 5 ir MILZIGA atskjiriiba ... Ja izmanto PHP 4 tad buus paliels cakaris , ja 5 tad tas ir sameraa izzi --> sadzen visu daudzdimensiju masiivaa un tad peec vajadziibas velc aaraa .... (ar php 4 arii to var izdariit tikai .....) edit: cik 'uzmetu aci' tiem xml ko iedevi --> tur viss ir sameeraa vienkarshi un logjiski sakartots ;) darbs pie koda paaris stundaam ;) logjika taada pasha kaa ieksh DB ... katrs XML dokuments atseviskja tabula .... ar visiem ID ;) iesaku tos datus apstraadaat 1 reiz (nu 2reiz ) dienaa un visu pieglabaat ieksh DB .... apstraade gan buus sameeraa leena (nu domaaju ka paris minuutes :( ) , bet 1 dienaa to tachu var atljauties .... Edited March 28, 2007 by Grey_Wolf Link to comment Share on other sites More sharing options...
Joyride Posted March 28, 2007 Author Report Share Posted March 28, 2007 Grey_Wolf, paldies par komentariem. Ka no koda saprotams, tiks izmantota 5 versija. Doma ari bija parset tos failus 1x diena, kaut kad nakti - cronjob. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 28, 2007 Report Share Posted March 28, 2007 Joyride --> driizaak uzzini cikos un kad notiek datu atjanoshana ... un tad arii Noparsee.... teiksim ar 1h nobiidi ;) jo domaaju ka vinjiem tie faili tiek arii genereeti automaataa ar Cronu ... P.S. ja buus PHP 5 tad jau pavisam vienkaarshi ;) galvenais atrod failu no kuraa saakt ... Link to comment Share on other sites More sharing options...
ohmygod Posted March 28, 2007 Report Share Posted March 28, 2007 Paskaties kārtīgi ACME pie Palīdzība. Tur ir arī fails "Complete pricelist". Un tur ir visas preces - apstrādājot vienu failu tiksi pie visas infas - nebūs katrai precei jāpieprasa savs XML. Link to comment Share on other sites More sharing options...
localhero Posted March 29, 2007 Report Share Posted March 29, 2007 (edited) GNT produkta requests: <ProductSpecRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.gnt.fi/Schemas/XMLInterface_Order.xsd"> <Date>datums</Date> <Route> <From> <ClientID>XXX</ClientID> </From> <To> <ClientID>0</ClientID> </To> </Route> <PartNumber>0015X573</PartNumber> </ProductSpecRequest> Edited June 21, 2007 by localhero Link to comment Share on other sites More sharing options...
localhero Posted March 29, 2007 Report Share Posted March 29, 2007 vel es tev ieteiktu izmantot simplexml funkcijas. Te ir labs raksts kas jaizlasa: http://devzone.zend.com/node/view/id/688 Link to comment Share on other sites More sharing options...
Joyride Posted March 30, 2007 Author Report Share Posted March 30, 2007 Paldies, paskatisos to SimpleXML! Link to comment Share on other sites More sharing options...
localhero Posted April 1, 2007 Report Share Posted April 1, 2007 Es ar sobrid stradaju pie vairumtirgotaju datu savaksanas un ieliksanas datu baze no kuras pec tam var uztaisit veikalu. Kad bus kas konkretaks varu ielikt gatavos skriptus. Sii vieta varetu buut kaa diskusija visiem kas veido lidzigus projektus. Link to comment Share on other sites More sharing options...
Recommended Posts