Hi Sir, REST in magento is oAuth 1.0a, this cannot be done using javascript , if i am not wrong. Also REST in magento dont support shopping cart and payments. I actually first considered REST itself but due to these issues i came back to SOAP/XMLRPC. For OAuth i used Zinc-SSO and from pharo i had REST working too.
SoapOpera : hit by grief already!! So i think i will start with XMLRPC and improvise. But before that i need to get the xml requests and response formats to start with. Will keep you posted. Thanks a lot, thushar On Fri, May 2, 2014 at 6:06 PM, S Krish <[email protected]>wrote: > > Or: > > http://www.magentocommerce.com/api/rest/introduction.html > > REST is a clean approach.. OAuth2 you can perhaps do with Zinc and SSL.. ( > http://blog.doit.st/2011/02/15/cloudforksso-openid-and-oauth-support-for-smalltalk/) > > > > > On Fri, May 2, 2014 at 6:03 PM, S Krish <[email protected] > > wrote: > >> XML-RPC >> >> To use XML-RPC, load the following URL into your XML-RPC client: >> >> http://magentohost/api/xmlrpc/ >> >> The XML-RPC supports the version 1 of the Magento API. and the API it >> supports is quite extensive.. >> >> >> Another Approach: >> >> One can with some ingenuity mix a bit of groovy to deal with complex SOAP >> and reduce it enough for the Pharo to deal with it in XML RPC if you have >> to go that way. >> >> SoapOpera I am sure will give you a bit of grief, unless you plan to fix >> it.. while you use it. >> >> >> >> >> >> >> On Fri, May 2, 2014 at 5:15 PM, Thushar G R <[email protected]> wrote: >> >>> Hi, >>> XMLRPC may not be enough. I have tried some of the request using the >>> XMLRPC and it works but i am not sure if its enough for managing all the >>> requests. I am trying to connect to a magento site. and their recommended >>> approach is unfortunately soap. SoapOpera updating is a possibility it >>> seems, am i right? Also any paid paid solution is not practical for us at >>> the momment. >>> >>> Also i hope the SoapOpera is latest at squeakSource and that it was last >>> updated in 2010. >>> >>> thanks for the replies >>> >>> Thushar >>> >>> *G R Thushar* >>> *Team Leader(Technology),* >>> *Signos Software Solutions Pvt. Ltd.* >>> *Ground Floor **A.R Plaza, TC 11/43 (2),* >>> *P.M.G Junction,* >>> *Thiruvananthapuram, 695004. Kerala, India.* >>> >>> *Web: www.signossolutions.com <http://www.signossolutions.com>* >>> Email: [email protected], [email protected] >>> Phone: +919846577772 >>> >>> >>> >>> >>> >>> On Fri, May 2, 2014 at 5:03 PM, [email protected] >>> <[email protected]>wrote: >>> >>>> Pharo lacks a SOAP stack. >>>> >>>> This is something that also limits it in environments where a ton of >>>> APIs are in SOAP format. E.g. Banks, Insurance, Media, Government >>>> (including European Institutions). >>>> For SaaS apps, who cares. >>>> >>>> Java and .NET have full stacks and that's a significant factor for >>>> their use. >>>> VisualWorks support those: as in: >>>> >>>> http://www.cincomsmalltalk.com/main/products/visualworks/ >>>> >>>> - *Major improvements to WSDL 2.0 / SOAP 1.2 to handle updated >>>> protocols.* >>>> >>>> FWIW, my approach is to have a Java endpoint that will pass stuff back >>>> and forth through RabbitMQ or whatever middleware. >>>> >>>> When you get into SOAP over JMS, with JMS being WebsphereMQ for >>>> example, well, things get complicated, especially when you factor in >>>> certificates. >>>> And sometimes you need compliance and certification. >>>> >>>> IBM has a product to help solve those things: >>>> http://www-03.ibm.com/software/products/en/datapower. >>>> I led a team that used it extensively for a couple of months. It works >>>> well. The price tag is quite hard to swallow for little systems and >>>> companies. >>>> >>>> <featurelist> >>>> >>>> "The IBM® WebSphere® DataPower® Service Gateway XG45 appliance helps >>>> you secure and govern web traffic more effectively. It provides an advanced >>>> data threat reduction and security enforcement layer for web and >>>> on-premises applications, while giving you the flexibility to deploy new >>>> applications rapidly. >>>> >>>> The IBM WebSphere DataPower Service Gateway XG45 appliance helps you: >>>> >>>> - Strengthen compliance using robust data protection, policy >>>> enforcement and auditing capabilities >>>> - Gain “front-line defense” for inbound and outbound traffic >>>> through a web 2.0 gateway. >>>> - Separate security concerns from application code with an optional >>>> hardware security module (HSM) that is certified for FIPS 140-2 Level 3. >>>> - Integrate applications for improved application and database >>>> connectivity." >>>> >>>> </featurelist> >>>> >>>> If you have something around, you can bridge SOAP to whatever, >>>> including REST. The new versions do support JSON etc as well. >>>> >>>> >>>> Phil >>>> >>>> >>>> >>>> On Fri, May 2, 2014 at 12:26 PM, S Krish < >>>> [email protected]> wrote: >>>> >>>>> Are you looking for a SOAP client for RPC style calls or document >>>>> format. >>>>> >>>>> For the former adding a simple SOAP Envelope to the request and using >>>>> ZnClient should work fairly well. >>>>> >>>>> But if you are looking for something like : >>>>> http://www.soapclient.com/soaptest.html to be used against a >>>>> declared WSDL.. I doubt if any exists. >>>>> >>>>> Look at the XMLRPC package and see if you can work from there.. if you >>>>> need to adapt something.. >>>>> >>>>> >>>>> On Fri, May 2, 2014 at 3:29 PM, Thushar G R <[email protected]>wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> Do we have a SOAP client in pharo? I checked SoapOpera but seems its >>>>>> too old to work with latest pharo 2.0. >>>>>> >>>>>> Thanks, >>>>>> >>>>>> >>>>> >>>> >>> >> >
