[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xindice-dev
Subject:    RE: XML-RPC problems
From:       "James Bates" <james.bates () amplexor ! com>
Date:       2002-03-27 9:29:27
[Download RAW message or body]

That sounds a lot like an encoding-related problem. If a client sends UTF-8, and some \
server starts treating it as Latin-1, or conversely, then they will disagree on the \
length of the string, as UTF-8 characters can be 1, 2 or 3 bytes long, whereas \
Latin-1 characters are always 1 byte long.

 
 
 -----Original Message-----
From: Kurt Ward [mailto:kurtward@yahoo.com]
Sent: 27 February 2002 00:16
To: xindice-dev@xml.apache.org
Subject: XML-RPC problems



I've noticed some varying results using the current XML-RPC plugin that I think are \
worth mentioning for the new API.  I have not tested this with the Apache XML-RPC \
client yet, but the PHP client and the only known COM client have had problems \
sending XML as a parameter for inserting documents, XUpdate queries, etc.:  Xindice \
responds with an IndexOutOfBounds error. Really small documents seem to work fine, \
but on larger docs this happens on almost every call. I'm going to do some testing \
this evening with a TCP dumper to try to narrow it down, but I think the safest bet \
is to send the XML as a base64 encoded string in the future (I'm going to test this \
this evening also).  
Also, I have been on the Apache XML-RPC mailing list for ~2 weeks and it seems pretty \
active and very helpful.
 
Kurt


[Attachment #3 (text/html)]

<!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.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=896502009-27032002><FONT face=Arial color=#0000ff size=2>That 
sounds a lot like an encoding-related problem. If a&nbsp;client sends UTF-8, and 
some server starts treating it as Latin-1, or conversely,&nbsp;then they will 
disagree on the length of the string, as UTF-8 characters can be 1, 2 or 3 bytes 
long, whereas Latin-1 characters are always 1 byte 
long.</FONT></SPAN></DIV><SPAN class=896502009-27032002></SPAN><FONT 
face=Tahoma><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial 
color=#0000ff size=2></FONT>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff 
size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><BR>&nbsp;</DIV>
<DIV><FONT size=2><SPAN class=896502009-27032002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=2><SPAN class=896502009-27032002>&nbsp;</SPAN>-----Original 
Message-----<BR><B>From:</B> Kurt Ward 
[mailto:kurtward@yahoo.com]<BR><B>Sent:</B> 27 February 2002 00:16<BR><B>To:</B> 
xindice-dev@xml.apache.org<BR><B>Subject:</B> XML-RPC 
problems<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV><FONT face=Arial size=2>I've noticed some varying results using the 
  current XML-RPC plugin that I think are worth</FONT></DIV>
  <DIV><FONT face=Arial size=2>mentioning for the new API.&nbsp; I have not 
  tested this with the Apache XML-RPC client yet, but the PHP 
client</FONT></DIV>
  <DIV><FONT face=Arial size=2>and the only known COM client have had problems 
  sending XML as a parameter for</FONT></DIV>
  <DIV><FONT face=Arial size=2>inserting documents, XUpdate queries, etc.:&nbsp; 
  Xindice </FONT><FONT face=Arial size=2>responds with an IndexOutOfBounds 
  error.</FONT></DIV>
  <DIV><FONT face=Arial size=2>Really small documents seem to work fine, but on 
  larger docs this happens on almost every call.</FONT></DIV>
  <DIV><FONT face=Arial size=2>I'm going to do some testing this evening with 
  </FONT><FONT face=Arial size=2>a TCP dumper to try to narrow it 
  down,</FONT></DIV>
  <DIV><FONT face=Arial size=2>but I think the safest bet is to send the XML as 
  a </FONT><FONT face=Arial size=2>base64 encoded string in the 
  future</FONT></DIV>
  <DIV><FONT face=Arial size=2>(I'm going to test this this evening 
  also).</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Also, I have been on the Apache XML-RPC mailing 
  list for ~2 weeks and it seems pretty active</FONT></DIV>
  <DIV><FONT face=Arial size=2>and very helpful.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Kurt</FONT></DIV></BLOCKQUOTE></BODY></HTML>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic