1.1 Install Xampp• Link: http://www.apachefriends.org/en/xampp.html• When install Xampp:• Control Panel – Change User Account Control Settings
1.1 Install Xampp:• Can’t Start Apache because duplicated port• Error: Apache shutdown unexpectedly.• 11:38:51 PM [Apache] This may be due to a blocked port, missing dependencies,• 11:38:51 PM [Apache] improper privileges, a crash, or a shutdown by another method.• 11:38:51 PM [Apache] Check the "/xampp/apache/logs/error.log" file• 11:38:51 PM [Apache] and the Windows Event Viewer for more clues• Config – service and port settings – changemain port & ssl port• Reference: http://www.zend.vn/public/lap-trinh/php-mysql/webserver-huong-dan-cai-dat-va-su-dung-xampp/l1l4l56.html
1.2 Install Magento• Link:http://www.magentocommerce.com/getmagento/126.96.36.199/magento-188.8.131.52.zip• Unzip: xampphtdocs• Create database with php admin.• Merge and config database Magento• Error:http://www.magentocommerce.com/boards/viewthread/30944/
1.2 Instal Magento• Note: Back end và Cookie– Firefox:• Localhost: work• 127.0.0.1: no work– Google Chrome, Internet Explorer, Opera:• Localhost: no work• 127.0.0.1: work
1.3 Magento role & user• Add Role:1. Go to System > Web Services.a. Magento Community: Select SOAP/XML-RPC-Rolesb. Magento Go: Select Roles2. Click to add a new role.3. Give your Role a name, such as “Brightpearl API”.4. Select the Role Resources menu on the left panel to setthe Role permissions.5. Select “All” in the Resources Access field, this will allowyour Brightpearl account to send and receive all theinformation it needs to.6. Save the Role.
1.3 Magento role & user• Add a User:1. Go to System Web Services.a. Magento Community: Select SOAP/XML-RPC-Usersb. Magento Go: Select Users2. Click to add a new user.3. Enter a user name, such as “brightpearl”; whatever it is keep a note of it, you’llneed to enter it into the Brightpearl setup.4. Enter a first and last name, your name, or a made up name, it doesn’t matter.5. Enter an email address; you can use your own email address if you want.6. Make up a new API key; make sure you keep a note of this as you’ll need toenter it into the Brightpearl setup.7. Confirm the API key.8. Select the User Role menu from the left hand panel.9. Select the Role you added above.10. Save the user.
1.4 Guide to create product in Magento:View in demo1.5 Guide to design Homepage in Magento:View in demo
1.6 Magento API• Support 2 types:– SOAP– XML-RPC• In case:– SOAP: http://magentohost/api/soap/?wsdl– XML-RPC: http://magentohost/api/xmlrpc/• Reference:http://www.magentocommerce.com/api/soap/introduction.html#Introduction-XMLRPC
1.6 Magento API• API MethodsMethod Description Return ValuestartSession() Start the API session and return session ID. stringendSession(sessionId) End the API session. booleanlogin(apiUser, apiKey) Start the API session, return the session ID, and authorize the APIuser.stringcall(sessionId, resourcePath,arrayarguments)Call the API resource that is allowed in the current session. SeeNote below.mixedmultiCall(sessionId, array calls,arrayoptions)Call the API resource’s methods that are allowed for currentsession. See Notes below.arrayresources(sessionId) Return a list of available API resources and methods allowed forthe current session.arrayglobalFaults(sessionId) Return a list of fault messages and their codes that do not dependon any resource.arrayresourceFaults(sessionId, resourceName) Return a list of the specified resource fault messages, if thisresource is allowed in the current session.array
2.1 Web serviceWeb services are a set of tools that let you builddistributed applications on top of existing webinfrastructures. These applications use the Webas a kind of"transport layer" but dont offer adirect human interface via the browser. Reusingweb infrastructures can drasticallylower the costof setting up these applications and allows youto reuse all kinds of tools originally built for theWeb
2.1 What is xml-rpc protocol• XML-RPC is among the simplest (and most foolproof) web service approaches, andmakes it easyfor computers to call procedures on other computers. XML-RPC reusesinfrastructure that was originally created for communications between humans tosupport communications between programs on computers. Extensible MarkupLanguage (XML) provides a vocabulary for describing Remote Procedure Calls(RPC), which are then transmitted between computers using the HyperText TransferProtocol (HTTP).• XML-RPC can simplify development tremendously and make it far easier for differenttypes of computers to communicate. By focusing on computer-to-computercommunications, XML-RPC lets you use web technologies without getting trapped inthe focus on human-readable content that has characterized most previous webdevelopment. Most of the XML-RPC framework will be familiar to web developers, butas a web developer, you will probably use off-the-shelf packages to connect yourprograms.
2.1 Activity of xml-rpc• At the most basic level, XML-RPC lets you make function calls across networks. XML-RPCisnt doing anything especially new, and that largely explains why XML-RPC is useful. Bycombining an RPC architecture with XML and HTTP technology, XML-RPC makes it easy tofor computers to shareresources over a network. This means that you can give users directaccess to the information they need to process, not just read and reuse systems youvealready built in new contexts, or mix and match programs so that each can focus on whatit does best.• Remote ProcedureCalls (RPC) are a much older technology than the Web. Although theconcept of computers calling functions on other systems across a network has been aroundas long as networks have existed, Sun Micro systems is usually given credit for creating ageneric formal mechanism used to call procedures and return results over a network.