For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > August 2005 > Frontier::Daemon encoding question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Frontier::Daemon encoding question
pengas@gmail.com

2005-08-15, 4:59 pm

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...ot+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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com