<!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.1528" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff size=2>Uhm, I 
might be getting it wrong, but it looks like you&nbsp;took the code I proposed 
as used it as-is (almost) in your application.</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff size=2>It was 
actually meant as an example.</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff size=2>More 
specifically, If I read it correctly, your XMLRPC looks like 
this:</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff size=2>ARRAY 
=&gt; {</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff size=2>&nbsp; 
STRUCT =&gt; {</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp; ITINERARIO_CODIGO =&gt; XXX</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff size=2>&nbsp; 
}</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff 
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff size=2>To 
access the 'itinerario codigo' data, you need to use not <FONT 
face="Courier New">arraymem($i),</FONT> but rather <FONT 
face="Courier New">stuctmem('ITINERARIO_CODIGO')</FONT>&nbsp; on line 60, since 
$sig will be an xmlrpcval of type 'struct' at that point.</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff size=2>I see 
you are also trying to access 2 members of the struct&nbsp;(member&nbsp;0 and 
member 1) on line 59 and line 60, but you only have one.</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff size=2>here's 
da code:</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=052480314-03022006><FONT face="Courier New" color=#0000ff 
size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face="Courier New" color=#0000ff 
size=2>$numvals = $v-&gt;arraysize();</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face="Courier New" color=#0000ff 
size=2>for ($i = 0; $i&nbsp;&lt; $numvals; $i++)</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face="Courier New" color=#0000ff 
size=2>{</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face="Courier New" color=#0000ff 
size=2>&nbsp; $innerval = $v-&gt;arraymem($i); // fecth element i of 
array</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face="Courier New" color=#0000ff 
size=2>&nbsp; $itinerary_code = $innerval-&gt;structmem('ITINERARIO_CODIGO'); // 
retrieve member out of struct element</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT color=#0000ff size=2>
<DIV><SPAN class=052480314-03022006><FONT face="Courier New" color=#0000ff 
size=2>&nbsp; $itinerary_code = $itinerary_code-&gt;scalarval(); // get php 
string out of element</FONT></SPAN></DIV></FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face="Courier New" color=#0000ff 
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=052480314-03022006><FONT face=Arial color=#0000ff 
size=2>etc...</FONT></SPAN></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> 
  phpxmlrpc-bounces@lists.usefulinc.com 
  [mailto:phpxmlrpc-bounces@lists.usefulinc.com]<B>On Behalf Of </B>Overpeer 
  ---<BR><B>Sent:</B> Friday, February 03, 2006 1:09 PM<BR><B>To:</B> 
  phpxmlrpc@lists.usefulinc.com<BR><B>Subject:</B> [phpxmlrpc] I'm Lost with 
  phpxmlrpc<BR><BR></FONT></DIV>Hello, i probed it but:<BR><BR>$signum = 
  $v-&gt;arraysize();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; for($i = 0; $i &lt; $signum; $i++)<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; print 
  $i;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; $sig = 
  $v-&gt;arraymem($i);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; $paramsnums = 
  $sig-&gt;arraysize()-1;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; $retval = 
  $sig-&gt;arraymem(0);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; $retval = 
  $sig-&gt;arraymem(1);&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp; print 
  $retval-&gt;scalarval();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  // Error here ----- Line 62<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; for ($j = 1; $j &lt;= $paramsnums; 
  $j++)<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$param = 
  $sig-&gt;arraymem($j);<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;echo "&nbsp; 
  Param number $j must be of type:".$param-&gt;scalarval()."\n";<BR>&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  }<BR>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; <BR><BR>The error is: <B>Fatal error</B>: Call to a member 
  function on a non-object in <B>/var/www/localhost/htdocs/client.php</B> on 
  line <B>62</B><BR><BR>The xml-rpc incoming is: <BR><BR>&lt;?xml 
  version="1.0"?&gt;<BR>&lt;methodResponse&gt;<BR>&nbsp;&nbsp; 
  &lt;params&gt;<BR>&nbsp;&nbsp; &lt;param&gt;<BR>&lt;value&gt;<BR>&nbsp; 
  &lt;array&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;data&gt;<BR>&lt;value&gt;<BR>&nbsp; 
  &lt;struct&gt;<BR>&nbsp;&nbsp;&nbsp; 
  &lt;member&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;name&gt;ITINERARIO_CODIGO&lt;/name&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;value&gt;&lt;string&gt;311&lt;/string&gt;&lt;/value&gt;<BR>&nbsp;&nbsp;&nbsp; 
  &lt;/member&gt;<BR>&nbsp; 
  &lt;/struct&gt;<BR>&lt;/value&gt;<BR><BR>&lt;value&gt;<BR>&nbsp; 
  &lt;struct&gt;<BR>&nbsp;&nbsp;&nbsp; 
  &lt;member&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;name&gt;ITINERARIO_CODIGO&lt;/name&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;value&gt;&lt;string&gt;310&lt;/string&gt;&lt;/value&gt;<BR>&nbsp;&nbsp;&nbsp; 
  &lt;/member&gt;<BR>&nbsp; &lt;/struct&gt;<BR>&lt;/value&gt;<BR><BR>&nbsp; 
  &lt;/data&gt;<BR>&lt;/array&gt;<BR>&lt;/value&gt;<BR><BR>&nbsp;&nbsp; 
  &lt;/param&gt;<BR>&nbsp;&nbsp; 
  &lt;/params&gt;<BR>&lt;/methodResponse&gt;<BR><BR><BR>Some idea??? :S 
  :S<BR><BR>A lot of thanks </BLOCKQUOTE></BODY></HTML>