3036ampersand and friends
- Oct 2, 2003I've got a JWSDP-1.2 backend running
a JAXRPC service that exposes a WSDL.
I've got a frontend that uses PERL to
generate web pages and SOAP::Lite
to connect to the back end.
Most of the time everything is fine. Once
in a while, somebody types in an
ampersand and blows something up.
I've isolated the problem down to what
appears to be an issue with encoding, but
I'm not sure. I have written a little program
that deterministically causes a fault
to occur. You can imagine that
in my "real code" the only thing that is
difference is that I am basically taking
input from the user, checking it for
some basic stuff and then putting it
into the function where below you see
my $abc = SOAP::Lite->service("http://127.0.0.1:8080/abc/abc?WSDL");
# this one works
@results = $abc->myfunc($token, 'Soccer');
# this one does not work
@results = $abc->myfunc($token, 'a & b');
I get the same results no matter which function I run...
On the back end, I get a massive stack trace dump... it
SEVERE: deserialization error: XML parsing error:
com.sun.xml.rpc.sp.ParseException:1: Illegal character or entity
deserialization error: XML parsing error: com.sun.
character or entity reference syntax
Does anybody have any ideas for me? Thanks in advance.
- Next post in topic >>