WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] C bindings : xen_session_login_with_password

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] C bindings : xen_session_login_with_password
From: Harsh Modawel <harsh.modawel@xxxxxxxxxx>
Date: Wed, 30 May 2007 20:32:13 +0530
Delivery-date: Wed, 30 May 2007 08:02:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Organization: Oracle Corporation
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
Hi,
I had few questions regarding the function the client should provide to "Query the server and return the response" i.e. The client function passed in call to xen_session_login_with_password()
session->call_func = call_func;
I see that the xen calls do pass data(input) in the XML-format while calling this client function.

My questions are -
1) How should I use that data ? (as its already in XML format).
I can't pass it as it is to server, nor I can use xmlrpc_client_call on it, hence was wondering, the intention ?

2) Where should I store the result (so that XenCaller can read it). I guess, on success I should be returning a NULL value, as the return is stored in "error", followed by calls "if (error)".

3) In which format does that api expect the result data ? (same XML format or should I make use of xmlrpc calls to take out the value from the response).

4) If one knows the link/doc I should have read, then please let me know.

Regards,
-harsh



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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] C bindings : xen_session_login_with_password, Harsh Modawel <=