Magento Forum

   
Magento api xml-rpc error
 
jmagrinya
Jr. Member
 
Total Posts:  3
Joined:  2009-04-27
 

hi, i’m having this error when i try to login to magento api. Magento versión 1.7.0.2

xml.parsers.expat.ExpatError: junk after document element: line 2, column 0

i use this code for login

def apiserver(address):
return xmlrpclib.Server(address)
pass

def apisession(server, username, password):
return server.login(username, password)
pass

server2 = apiserver(URL)
session2 = apisession(server2, USERNAME, PWD)

This code is used in other stores in the same machine and works fine.

Any ideas ?

Thanks !

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top