[Catalyst-commits] r7166 -
Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Controller
ruoso at dev.catalyst.perl.org
ruoso at dev.catalyst.perl.org
Tue Nov 27 10:50:19 GMT 2007
Author: ruoso
Date: 2007-11-27 10:50:19 +0000 (Tue, 27 Nov 2007)
New Revision: 7166
Modified:
Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Controller/SOAP.pm
Log:
[C-C-SOAP] [git2svn] Tue Nov 13 17:10:53 2007 +0000 -- XML::DOM doesnt support namespaces, lets move to XML::LibXML instead
Modified: Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Controller/SOAP.pm
===================================================================
--- Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Controller/SOAP.pm 2007-11-27 10:48:51 UTC (rev 7165)
+++ Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Controller/SOAP.pm 2007-11-27 10:50:19 UTC (rev 7166)
@@ -14,6 +14,14 @@
)
}
+ # this is implemented as to respond a SOAP message according to
+ # what has been sent to $c->stash->{soap}
+ sub End : Private {
+ my ($self, $c) = (shift, shift);
+ return $self->NEXT::End($c, @_) unless $c->stash->{soap};
+
+ }
+
};
{ package Catalyst::Controller::SOAP::Helper;
@@ -47,14 +55,14 @@
# available in "/example" as operation "ping". The arguments are
# treated as a literal document and passed to the method as a
- # XML::DOM::XPath object
+ # XML::LibXML object
sub ping : SOAP('RPCLiteral') {
my ( $self, $c, $xml) = @_;
my $name = $xml->findValue('some xpath expression');
}
# avaiable as "/example/world" in document context. The entire body
- # is delivered to the method as a XML::DOM::XPath object.
+ # is delivered to the method as a XML::LibXML object.
sub world : SOAP('DocLiteral') {
my ($self, $c, $doc) = @_;
}
@@ -106,7 +114,7 @@
=item $c->stash->{soap}->parsed_envelope()
-The parsed envelope as an XML::DOM::XPath object.
+The parsed envelope as an XML::LibXML object.
=item $c->stash->{soap}->arguments()
@@ -146,7 +154,7 @@
=head1 SEE ALSO
-L<Catalyst::Action::SOAP>, L<XML::DOM::XPath>,
+L<Catalyst::Action::SOAP>, L<XML::LibXML>,
L<Catalyst::Action::SOAP::DocLiteral>,
L<Catalyst::Action::SOAP::RPCEncoded>,
L<Catalyst::Action::SOAP::HTTPGet>
More information about the Catalyst-commits
mailing list