[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] Xen API and XML-RPC


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: "Paolo Tonin" <paolo.tonin@xxxxxxxxx>
  • Date: Thu, 17 Aug 2006 15:30:20 +0200
  • Delivery-date: Thu, 17 Aug 2006 06:42:46 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Sj7YdFQGalvWzc4/byIVRY87G/f1X0dGv9gDEIH8PI3kkglm78xsxL0tmq+Cdp8KERAWS7LdGSOlFt4wRMWb8unjVpnGVvh3q3J3pmPo55eFq6nGz0BmDwWSUb/P4dVpSlrWVURUTp9TM7zzaUPnV/7vmhLvuf/sR0lalD/TKtY=
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

I'm developing a Xen interface in PHP with xmlrpc support.
I'm trying to login with the class 'session' like in the pdf api on
Xen wiki, but this is the result of debugging:

POST / HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: 127.0.0.1
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 230

<?xml version="1.0"?>
<methodCall>
<methodName>session.login_with_password</methodName>
<params>
<param>
<value><string>myuser</string></value>
</param>
<param>
<value><string>mypassword</string></value>
</param>
</params>
</methodCall>
---END---

---GOT---
HTTP/1.0 200 OK
Server: BaseHTTP/0.3 Python/2.4.3
Date: Thu, 17 Aug 2006 14:10:26 GMT
Content-type: text/xml
Content-length: 308

<?xml version='1.0'?>
<methodResponse>
<fault>
<value><struct>
<member>
<name>faultCode</name>
<value><int>1</int></value>
</member>
<member>
<name>faultString</name>
<value><string>method "session.login_with_password" is not
supported</string></value>
</member>
</struct></value>
</fault>
</methodResponse>

Where's the error? The name of class/method?
Where can i set the password to access to the api of Xen via xmlrpc?

Thanks in advice!

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.