<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;Greetings of the Day!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
I am a newbie to XML RPC. I trying to invoke a phpgroupware login API through a 
client written in ASP .Net. For this purpose I am using XML RPC.Net distributed 
by Cookcomputing.</FONT></DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
now when i am invoking the login method it gives the following 
error</FONT></DIV>
<DIV><FONT face=Arial size=2>"Response From server was not a valid 
XML"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Below is the code that i am using</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff size=2>
<P>public</FONT><FONT size=2> </FONT><FONT color=#0000ff 
size=2>struct</FONT><FONT size=2> structLogin</P>
<P>{</P>
<P></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>string</FONT><FONT size=2> strDomain;</P>
<P></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>string</FONT><FONT size=2> strUserName;</P>
<P></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>string</FONT><FONT size=2> strPassWord;</P>
<P>}</P>
<P></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> structLogin 
objStructLogin;</P>
<P></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> 
CookComputing.XmlRpc.XmlRpcResponse response = </FONT><FONT color=#0000ff 
size=2>new</FONT><FONT size=2> XmlRpcResponse();</P>
<P>[XmlRpcMethod("system.login")]</P>
<P></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>string</FONT><FONT size=2> login(structLogin 
objStructLogin)</P>
<P>{</P>
<P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> (</FONT><FONT 
color=#0000ff size=2>string</FONT><FONT size=2>)xmlRpcClient.Invoke(</FONT><FONT 
color=#0000ff size=2>this</FONT><FONT size=2>,"login",objStructLogin);</P>
<P></P>
<P>} </P>
<P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT 
color=#0000ff size=2>void</FONT><FONT size=2> btnLogin_Click(</FONT><FONT 
color=#0000ff size=2>object</FONT><FONT size=2> sender, System.EventArgs e)</P>
<P>{</P>
<P>Label1.Text=xmlRpcClient.Url;</P>
<P>objStructLogin.strDomain="default";</P>
<P>objStructLogin.strUserName="a1";</P>
<P>objStructLogin.strPassWord="pass";</P>
<P></P>
<P></P>
<P></FONT><FONT color=#0000ff size=2>string</FONT><FONT size=2> strResult;</P>
<P></FONT><FONT color=#0000ff size=2>try</P></FONT><FONT size=2>
<P>{</P>
<P>strResult = login(objStructLogin);</P>
<P>LblSum.Text= strResult.ToString();</P>
<P>}</P>
<P></FONT><FONT color=#0000ff size=2>catch</FONT><FONT size=2> (Exception 
ex)</P>
<P>{</P>
<P></FONT><FONT size=2>LblSum.Text=ex.Message + " " + ex.Source ;</P>
<P></P>
<P></P>
<P>}</P>
<P></P>
<P></P>
<P>}</P>
<P>&nbsp;</P>
<P><FONT face=Arial>I would appreciate any help in this regard.</FONT></P>
<P><FONT face=Arial>Thanks in advance</FONT></P>
<P><FONT face=Arial>Shajee</FONT></P></FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp; </FONT></DIV></BODY></HTML>