Click here to get back home

Frontier::Daemon encoding question

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Frontier::Daemon encoding question pengas@gmail.com 08-15-2005
Posted by pengas@gmail.com on August 15, 2005, 10:40 am
Please log in for more thread options


hi guys,
I've written an XMLRPC server using the Frontier suite,
exporting one function which retrieves a row of info from a MS-SQL
database. The server is running on WinXP and the DB is on Win2000.
one of the field is an encrypted credit-card number.

the client and server executes correctly until the Frontier::Client is
trying to parse the XML. this is the error I get:


not well-formed (invalid token) at line 7, column 41, byte 272 at
C:/Perl/site/lib/XML/Parser.pm line 187

this location points to the value of the encrypted CC.
I've read that by setting the encoding of the XML to ISO-8859-1 someone
solved a similar issue:

http://groups-beta.google.com/group/comp.lang.perl.misc/browse_frm/thread/39a9103fa599f41a/cd012e5b1d6d4e93?tvc=1&q=not+well-formed+(invalid+token)+XML%2FParser.pm+line+187&hl=en#cd012e5b1d6d4e93

however, even when I set the encoding at the client side it will not
work. I'm thinking it may be a good idea to set the encoding to the
aformentioned ISO-8859-1, but that option is not available with the
Daemon class nor the HTTP::Daemon from which it inherits.

besides solving this matter - there must be something in this mechanism
that I'm not fully understand.. I mean, the client transfers a chunk of
characters to the XML parser for it to be decoded right? the
XML::Parser is used by default and it has a set of rules by which it
will parse information, but I cannot modify that with the
Frontier::Client, can I?

last Q,
any book, article u recommend for me to read in order to get the nuts
and bolts of XML?

thank you all for your time and god bless
nir



Similar ThreadsPosted
XML-RPC server using Frontier::Daemon keeps crashing August 25, 2004, 12:06 pm
beginner question on use of Frontier::Client November 15, 2006, 10:52 am
Net::Daemon::SSL January 18, 2006, 11:35 pm
What to do when CPAN module authors can't be reached? (Bug + fix for Frontier::RPC2) May 6, 2006, 2:50 pm
Combining HTTP:Daemon and CGI May 27, 2006, 5:07 pm
CGI.pm: encoding problems June 9, 2006, 10:53 am
HTTP::Daemon IPv6 support? March 16, 2006, 5:18 pm
ANNOUNCE: new module: Daemon::Generic October 26, 2006, 4:31 pm
New modules: Plugins, SyslogScan::Daemon::* January 2, 2007, 7:58 pm
Win32::Daemon - multiple processor problem August 10, 2004, 6:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap