[Catalyst-commits] r7629 - in
Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action: . SOAP
drew at dev.catalyst.perl.org
drew at dev.catalyst.perl.org
Wed Apr 23 17:23:22 BST 2008
Author: drew
Date: 2008-04-23 17:23:21 +0100 (Wed, 23 Apr 2008)
New Revision: 7629
Modified:
Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action/SOAP.pm
Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action/SOAP/DocumentLiteral.pm
Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action/SOAP/RPCEndpoint.pm
Log:
Get XML string before parsing so we can see invalid xml
Modified: Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action/SOAP/DocumentLiteral.pm
===================================================================
--- Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action/SOAP/DocumentLiteral.pm 2008-04-23 15:29:40 UTC (rev 7628)
+++ Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action/SOAP/DocumentLiteral.pm 2008-04-23 16:23:21 UTC (rev 7629)
@@ -12,7 +12,6 @@
my $envelope = $c->stash->{soap}->parsed_envelope;
my $namespace = $c->stash->{soap}->namespace || NS_SOAP_ENV;
my ($body) = $envelope->getElementsByTagNameNS($namespace, 'Body');
- $c->log->debug("Incoming XML: " . $body->toString);
my $operation = $self->name;
$c->stash->{soap}->operation_name($operation);
eval {
Modified: Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action/SOAP/RPCEndpoint.pm
===================================================================
--- Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action/SOAP/RPCEndpoint.pm 2008-04-23 15:29:40 UTC (rev 7628)
+++ Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action/SOAP/RPCEndpoint.pm 2008-04-23 16:23:21 UTC (rev 7629)
@@ -15,7 +15,6 @@
my $envelope = $c->stash->{soap}->parsed_envelope;
my $namespace = $c->stash->{soap}->namespace || NS_SOAP_ENV;
my ($body) = $envelope->getElementsByTagNameNS($namespace,'Body',0);
- $c->log->debug("Incoming XML: " . $body->toString);
my @children = grep { UNIVERSAL::isa( $_, 'XML::LibXML::Element') } $body->getChildNodes();
if (scalar @children != 1) {
$c->stash->{soap}->fault
Modified: Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action/SOAP.pm
===================================================================
--- Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action/SOAP.pm 2008-04-23 15:29:40 UTC (rev 7628)
+++ Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Action/SOAP.pm 2008-04-23 16:23:21 UTC (rev 7629)
@@ -24,6 +24,7 @@
$c->req->method eq 'POST') {
my $body = $c->req->body;
my $xml_str = join '', <$body>;
+ $c->log->debug("Incoming XML: $xml_str");
eval {
$c->stash->{soap}->envelope($xml_str);
$c->stash->{soap}->parsed_envelope($self->xml_parser->parse_string($xml_str));
More information about the Catalyst-commits
mailing list