SlideShare une entreprise Scribd logo
1  sur  17
Connect
Magento & OpenERP
XML-RPC Protocol
1. Magento
1.1 Install Xampp
1.2 Install Magento
1.3 Magento Role & User
1.4 Guide to create product in Magento
1.5 Guide to design Homepage in Magento
1.6 Magento API
2. XML-RPC protocol
2.1 Web service
2.2 What is Xml-rpc protocol
2.3 Activity of Xml-rpc
3. OpenERP connect Magento
3.1 Demo OpenERP connect Magento
3.2 Demo OpenERP load products from Magento
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 – change
main 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/1.7.0.2/mag
ento-1.7.0.2.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-Roles
b. Magento Go: Select Roles
2. 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 set
the Role permissions.
5. Select “All” in the Resources Access field, this will allow
your Brightpearl account to send and receive all the
information 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-Users
b. Magento Go: Select Users
2. Click to add a new user.
3. Enter a user name, such as “brightpearl”; whatever it is keep a note of it, you’ll
need 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 to
enter 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 demo
1.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/int
roduction.html#Introduction-XMLRPC
1.6 Magento API
• API Methods
Method Description Return Value
startSession() Start the API session and return session ID. string
endSession(sessionId) End the API session. boolean
login(apiUser, apiKey) Start the API session, return the session ID, and authorize the API
user.
string
call(sessionId, resourcePath,array
arguments)
Call the API resource that is allowed in the current session. See
Note below.
mixed
multiCall(sessionId, array calls,array
options)
Call the API resource’s methods that are allowed for current
session. See Notes below.
array
resources(sessionId) Return a list of available API resources and methods allowed for
the current session.
array
globalFaults(sessionId) Return a list of fault messages and their codes that do not depend
on any resource.
array
resourceFaults(sessionId, resourceName) Return a list of the specified resource fault messages, if this
resource is allowed in the current session.
array
2.1 Web service
Web services are a set of tools that let you build
distributed applications on top of existing web
infrastructures. These applications use the Web
as a kind of"transport layer" but don't offer a
direct human interface via the browser. Reusing
web infrastructures can drasticallylower the cost
of setting up these applications and allows you
to reuse all kinds of tools originally built for the
Web
2.1 What is xml-rpc protocol
• XML-RPC is among the simplest (and most foolproof) web service approaches, and
makes it easyfor computers to call procedures on other computers. XML-RPC reuses
infrastructure that was originally created for communications between humans to
support communications between programs on computers. Extensible Markup
Language (XML) provides a vocabulary for describing Remote Procedure Calls
(RPC), which are then transmitted between computers using the HyperText Transfer
Protocol (HTTP).
• XML-RPC can simplify development tremendously and make it far easier for different
types of computers to communicate. By focusing on computer-to-computer
communications, XML-RPC lets you use web technologies without getting trapped in
the focus on human-readable content that has characterized most previous web
development. Most of the XML-RPC framework will be familiar to web developers, but
as a web developer, you will probably use off-the-shelf packages to connect your
programs.
2.1 Activity of xml-rpc
• At the most basic level, XML-RPC lets you make function calls across networks. XML-RPC
isn't doing anything especially new, and that largely explains why XML-RPC is useful. By
combining an RPC architecture with XML and HTTP technology, XML-RPC makes it easy to
for computers to shareresources over a network. This means that you can give users direct
access to the information they need to process, not just read and reuse systems you've
already built in new contexts, or mix and match programs so that each can focus on what
it does best.
• Remote ProcedureCalls (RPC) are a much older technology than the Web. Although the
concept of computers calling functions on other systems across a network has been around
as long as networks have existed, Sun Micro systems is usually given credit for creating a
generic formal mechanism used to call procedures and return results over a network.
3. OpenERP connect Magento
3.1 Demo OpenERP connect Magento
3.2 Demo OpenERP load products from Magento

Contenu connexe

Tendances

Servlet api & servlet http package
Servlet api & servlet http packageServlet api & servlet http package
Servlet api & servlet http packagerenukarenuka9
 
Knowledge Sharing : Java Servlet
Knowledge Sharing : Java ServletKnowledge Sharing : Java Servlet
Knowledge Sharing : Java ServletFahmi Jafar
 
Laravel 5 Annotations: RESTful API routing
Laravel 5 Annotations: RESTful API routingLaravel 5 Annotations: RESTful API routing
Laravel 5 Annotations: RESTful API routingChristopher Pecoraro
 
Java servlet technology
Java servlet technologyJava servlet technology
Java servlet technologyMinal Maniar
 
Using message enricher
Using message enricherUsing message enricher
Using message enricherSon Nguyen
 
java Servlet technology
java Servlet technologyjava Servlet technology
java Servlet technologyTanmoy Barman
 
Create Account in Salesforce using Mule ESB
Create Account in Salesforce using Mule ESBCreate Account in Salesforce using Mule ESB
Create Account in Salesforce using Mule ESBSanjeet Pandey
 
Using spring task scheduler in java in mule
Using spring task scheduler in java in muleUsing spring task scheduler in java in mule
Using spring task scheduler in java in muleAnirban Sen Chowdhary
 
Custom connector development using mule DevKit
Custom connector development using mule DevKitCustom connector development using mule DevKit
Custom connector development using mule DevKitRamakrishna Narkedamilli
 
Creating restful api using mule esb
Creating restful api using mule esbCreating restful api using mule esb
Creating restful api using mule esbRaviShankar Mishra
 
Async Scope With Mule ESB
Async Scope With Mule ESBAsync Scope With Mule ESB
Async Scope With Mule ESBJitendra Bafna
 
Servletarchitecture,lifecycle,get,post
Servletarchitecture,lifecycle,get,postServletarchitecture,lifecycle,get,post
Servletarchitecture,lifecycle,get,postvamsi krishna
 

Tendances (20)

Servlet api & servlet http package
Servlet api & servlet http packageServlet api & servlet http package
Servlet api & servlet http package
 
Knowledge Sharing : Java Servlet
Knowledge Sharing : Java ServletKnowledge Sharing : Java Servlet
Knowledge Sharing : Java Servlet
 
Laravel 5 Annotations: RESTful API routing
Laravel 5 Annotations: RESTful API routingLaravel 5 Annotations: RESTful API routing
Laravel 5 Annotations: RESTful API routing
 
Tomcat 6: Evolving our server
Tomcat 6: Evolving our serverTomcat 6: Evolving our server
Tomcat 6: Evolving our server
 
Java servlet technology
Java servlet technologyJava servlet technology
Java servlet technology
 
The Mule Agent
The Mule AgentThe Mule Agent
The Mule Agent
 
Using message enricher
Using message enricherUsing message enricher
Using message enricher
 
Laravel 6 and its features
Laravel 6 and its featuresLaravel 6 and its features
Laravel 6 and its features
 
java Servlet technology
java Servlet technologyjava Servlet technology
java Servlet technology
 
Create Account in Salesforce using Mule ESB
Create Account in Salesforce using Mule ESBCreate Account in Salesforce using Mule ESB
Create Account in Salesforce using Mule ESB
 
Tomcat Server
Tomcat ServerTomcat Server
Tomcat Server
 
Using spring task scheduler in java in mule
Using spring task scheduler in java in muleUsing spring task scheduler in java in mule
Using spring task scheduler in java in mule
 
JSP Error handling
JSP Error handlingJSP Error handling
JSP Error handling
 
Custom connector development using mule DevKit
Custom connector development using mule DevKitCustom connector development using mule DevKit
Custom connector development using mule DevKit
 
Creating restful api using mule esb
Creating restful api using mule esbCreating restful api using mule esb
Creating restful api using mule esb
 
Mule esb soap_service
Mule esb soap_serviceMule esb soap_service
Mule esb soap_service
 
Async Scope With Mule ESB
Async Scope With Mule ESBAsync Scope With Mule ESB
Async Scope With Mule ESB
 
JEE Programming - 04 Java Servlets
JEE Programming - 04 Java ServletsJEE Programming - 04 Java Servlets
JEE Programming - 04 Java Servlets
 
Servletarchitecture,lifecycle,get,post
Servletarchitecture,lifecycle,get,postServletarchitecture,lifecycle,get,post
Servletarchitecture,lifecycle,get,post
 
Mule message enricher
Mule message enricherMule message enricher
Mule message enricher
 

Similaire à Connect Magento & OpenERP

X realtime xmp-ptut-pdf
X realtime xmp-ptut-pdfX realtime xmp-ptut-pdf
X realtime xmp-ptut-pdfHsiao Tim
 
Create Home Directories on Storage Using WFA and ServiceNow integration
Create Home Directories on Storage Using WFA and ServiceNow integrationCreate Home Directories on Storage Using WFA and ServiceNow integration
Create Home Directories on Storage Using WFA and ServiceNow integrationRutul Shah
 
IRJET- Real Time Monitoring of Servers with Prometheus and Grafana for High A...
IRJET- Real Time Monitoring of Servers with Prometheus and Grafana for High A...IRJET- Real Time Monitoring of Servers with Prometheus and Grafana for High A...
IRJET- Real Time Monitoring of Servers with Prometheus and Grafana for High A...IRJET Journal
 
JOSA TechTalks - RESTful API Concepts and Best Practices
JOSA TechTalks - RESTful API Concepts and Best PracticesJOSA TechTalks - RESTful API Concepts and Best Practices
JOSA TechTalks - RESTful API Concepts and Best PracticesJordan Open Source Association
 
Programming Server side with Sevlet
 Programming Server side with Sevlet  Programming Server side with Sevlet
Programming Server side with Sevlet backdoor
 
Java Abs Dynamic Server Replication
Java Abs   Dynamic Server ReplicationJava Abs   Dynamic Server Replication
Java Abs Dynamic Server Replicationncct
 
The Art of Message Queues - TEKX
The Art of Message Queues - TEKXThe Art of Message Queues - TEKX
The Art of Message Queues - TEKXMike Willbanks
 
Crime Reporting System.pptx
Crime Reporting System.pptxCrime Reporting System.pptx
Crime Reporting System.pptxPenilVora
 
PHP Frameworks, or how I learnt to stop worrying and love the code
PHP Frameworks, or how I learnt to stop worrying and love the codePHP Frameworks, or how I learnt to stop worrying and love the code
PHP Frameworks, or how I learnt to stop worrying and love the codeMichal Juhas
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web servicesNeil Ghosh
 
Introduction to web and php mysql
Introduction to web and php mysqlIntroduction to web and php mysql
Introduction to web and php mysqlProgrammer Blog
 
Adventures in Laravel 5 SunshinePHP 2016 Tutorial
Adventures in Laravel 5 SunshinePHP 2016 TutorialAdventures in Laravel 5 SunshinePHP 2016 Tutorial
Adventures in Laravel 5 SunshinePHP 2016 TutorialJoe Ferguson
 
Xamarin Workshop Noob to Master – Week 5
Xamarin Workshop Noob to Master – Week 5Xamarin Workshop Noob to Master – Week 5
Xamarin Workshop Noob to Master – Week 5Charlin Agramonte
 
What I learned about APIs in my first year at Google
What I learned about APIs in my first year at GoogleWhat I learned about APIs in my first year at Google
What I learned about APIs in my first year at GoogleTim Burks
 
Web services Concepts
Web services ConceptsWeb services Concepts
Web services Conceptspasam suresh
 
Build your APIs with apigility
Build your APIs with apigilityBuild your APIs with apigility
Build your APIs with apigilityChristian Varela
 

Similaire à Connect Magento & OpenERP (20)

It and ej
It and ejIt and ej
It and ej
 
X realtime xmp-ptut-pdf
X realtime xmp-ptut-pdfX realtime xmp-ptut-pdf
X realtime xmp-ptut-pdf
 
Create Home Directories on Storage Using WFA and ServiceNow integration
Create Home Directories on Storage Using WFA and ServiceNow integrationCreate Home Directories on Storage Using WFA and ServiceNow integration
Create Home Directories on Storage Using WFA and ServiceNow integration
 
IRJET- Real Time Monitoring of Servers with Prometheus and Grafana for High A...
IRJET- Real Time Monitoring of Servers with Prometheus and Grafana for High A...IRJET- Real Time Monitoring of Servers with Prometheus and Grafana for High A...
IRJET- Real Time Monitoring of Servers with Prometheus and Grafana for High A...
 
XML-RPC and SOAP (April 2003)
XML-RPC and SOAP (April 2003)XML-RPC and SOAP (April 2003)
XML-RPC and SOAP (April 2003)
 
JOSA TechTalks - RESTful API Concepts and Best Practices
JOSA TechTalks - RESTful API Concepts and Best PracticesJOSA TechTalks - RESTful API Concepts and Best Practices
JOSA TechTalks - RESTful API Concepts and Best Practices
 
Programming Server side with Sevlet
 Programming Server side with Sevlet  Programming Server side with Sevlet
Programming Server side with Sevlet
 
cakephp UDUYKTHA (1)
cakephp UDUYKTHA (1)cakephp UDUYKTHA (1)
cakephp UDUYKTHA (1)
 
Java Abs Dynamic Server Replication
Java Abs   Dynamic Server ReplicationJava Abs   Dynamic Server Replication
Java Abs Dynamic Server Replication
 
The Art of Message Queues - TEKX
The Art of Message Queues - TEKXThe Art of Message Queues - TEKX
The Art of Message Queues - TEKX
 
Crime Reporting System.pptx
Crime Reporting System.pptxCrime Reporting System.pptx
Crime Reporting System.pptx
 
PHP Frameworks, or how I learnt to stop worrying and love the code
PHP Frameworks, or how I learnt to stop worrying and love the codePHP Frameworks, or how I learnt to stop worrying and love the code
PHP Frameworks, or how I learnt to stop worrying and love the code
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web services
 
Introduction to web and php mysql
Introduction to web and php mysqlIntroduction to web and php mysql
Introduction to web and php mysql
 
Adventures in Laravel 5 SunshinePHP 2016 Tutorial
Adventures in Laravel 5 SunshinePHP 2016 TutorialAdventures in Laravel 5 SunshinePHP 2016 Tutorial
Adventures in Laravel 5 SunshinePHP 2016 Tutorial
 
Xamarin Workshop Noob to Master – Week 5
Xamarin Workshop Noob to Master – Week 5Xamarin Workshop Noob to Master – Week 5
Xamarin Workshop Noob to Master – Week 5
 
Web Service
Web ServiceWeb Service
Web Service
 
What I learned about APIs in my first year at Google
What I learned about APIs in my first year at GoogleWhat I learned about APIs in my first year at Google
What I learned about APIs in my first year at Google
 
Web services Concepts
Web services ConceptsWeb services Concepts
Web services Concepts
 
Build your APIs with apigility
Build your APIs with apigilityBuild your APIs with apigility
Build your APIs with apigility
 

Dernier

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 

Dernier (20)

DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 

Connect Magento & OpenERP

  • 2. 1. Magento 1.1 Install Xampp 1.2 Install Magento 1.3 Magento Role & User 1.4 Guide to create product in Magento 1.5 Guide to design Homepage in Magento 1.6 Magento API
  • 3. 2. XML-RPC protocol 2.1 Web service 2.2 What is Xml-rpc protocol 2.3 Activity of Xml-rpc
  • 4. 3. OpenERP connect Magento 3.1 Demo OpenERP connect Magento 3.2 Demo OpenERP load products from Magento
  • 5. 1.1 Install Xampp • Link: http://www.apachefriends.org/en/xampp.html • When install Xampp: • Control Panel – Change User Account Control Settings
  • 6. 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 – change main port & ssl port • Reference: http://www.zend.vn/public/lap- trinh/php-mysql/webserver-huong-dan-cai-dat- va-su-dung-xampp/l1l4l56.html
  • 7. 1.2 Install Magento • Link: http://www.magentocommerce.com/getmagento/1.7.0.2/mag ento-1.7.0.2.zip • Unzip: xampphtdocs • Create database with php admin. • Merge and config database Magento • Error: http://www.magentocommerce.com/boards/viewthread/30944/
  • 8. 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
  • 9. 1.3 Magento role & user • Add Role: 1. Go to System > Web Services. a. Magento Community: Select SOAP/XML-RPC-Roles b. Magento Go: Select Roles 2. 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 set the Role permissions. 5. Select “All” in the Resources Access field, this will allow your Brightpearl account to send and receive all the information it needs to. 6. Save the Role.
  • 10. 1.3 Magento role & user • Add a User: 1. Go to System  Web Services. a. Magento Community: Select SOAP/XML-RPC-Users b. Magento Go: Select Users 2. Click to add a new user. 3. Enter a user name, such as “brightpearl”; whatever it is keep a note of it, you’ll need 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 to enter 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.
  • 11. 1.4 Guide to create product in Magento: View in demo 1.5 Guide to design Homepage in Magento: View in demo
  • 12. 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/int roduction.html#Introduction-XMLRPC
  • 13. 1.6 Magento API • API Methods Method Description Return Value startSession() Start the API session and return session ID. string endSession(sessionId) End the API session. boolean login(apiUser, apiKey) Start the API session, return the session ID, and authorize the API user. string call(sessionId, resourcePath,array arguments) Call the API resource that is allowed in the current session. See Note below. mixed multiCall(sessionId, array calls,array options) Call the API resource’s methods that are allowed for current session. See Notes below. array resources(sessionId) Return a list of available API resources and methods allowed for the current session. array globalFaults(sessionId) Return a list of fault messages and their codes that do not depend on any resource. array resourceFaults(sessionId, resourceName) Return a list of the specified resource fault messages, if this resource is allowed in the current session. array
  • 14. 2.1 Web service Web services are a set of tools that let you build distributed applications on top of existing web infrastructures. These applications use the Web as a kind of"transport layer" but don't offer a direct human interface via the browser. Reusing web infrastructures can drasticallylower the cost of setting up these applications and allows you to reuse all kinds of tools originally built for the Web
  • 15. 2.1 What is xml-rpc protocol • XML-RPC is among the simplest (and most foolproof) web service approaches, and makes it easyfor computers to call procedures on other computers. XML-RPC reuses infrastructure that was originally created for communications between humans to support communications between programs on computers. Extensible Markup Language (XML) provides a vocabulary for describing Remote Procedure Calls (RPC), which are then transmitted between computers using the HyperText Transfer Protocol (HTTP). • XML-RPC can simplify development tremendously and make it far easier for different types of computers to communicate. By focusing on computer-to-computer communications, XML-RPC lets you use web technologies without getting trapped in the focus on human-readable content that has characterized most previous web development. Most of the XML-RPC framework will be familiar to web developers, but as a web developer, you will probably use off-the-shelf packages to connect your programs.
  • 16. 2.1 Activity of xml-rpc • At the most basic level, XML-RPC lets you make function calls across networks. XML-RPC isn't doing anything especially new, and that largely explains why XML-RPC is useful. By combining an RPC architecture with XML and HTTP technology, XML-RPC makes it easy to for computers to shareresources over a network. This means that you can give users direct access to the information they need to process, not just read and reuse systems you've already built in new contexts, or mix and match programs so that each can focus on what it does best. • Remote ProcedureCalls (RPC) are a much older technology than the Web. Although the concept of computers calling functions on other systems across a network has been around as long as networks have existed, Sun Micro systems is usually given credit for creating a generic formal mechanism used to call procedures and return results over a network.
  • 17. 3. OpenERP connect Magento 3.1 Demo OpenERP connect Magento 3.2 Demo OpenERP load products from Magento