Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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