XML::Compile::FAQ - frequently asked questions
Although WSDLs offer a nice way to define header-fields explicitly, quite a number of applications require fields which are not described. Also some W3C standards play this game. See XML::Compile::SOAP::WSA for a complex example. A simple example follows here.
use warnings; use strict; package XML::Compile::SOAP::MYEXT; use base 'XML::Compile::SOAP::Extension'; use Log::Report; use XML::Compile::SOAP::Util qw/WSDL11/; use XML::Compile::Util qw/pack_type/; my $my_ns = 'http://..../'; my $my_schema_fie = 'aaa.xsd'; sub wsdl11Init($@) { my ($self, $wsdl, $args) = @_; $wsdl->prefixes(myprefix => $my_ns); $wsdl->importDefinitions($my_schema_file); $self; } sub soap11Operation$$) { my ($self, $op, $args) = @_; # towards the server $op->addHeader(INPUT => "myprefix_$fieldname" => "{$my_ns}$fieldtype"); # in server answers $op->addHeader(OUTPUT => ...); }
With soap11ClientWrapper() and soap11HandlerWrapper() you can influence the client respectively server processing, for instance to fill-in default values.
soap11ClientWrapper()
soap11HandlerWrapper()
On this page, a wild collection of questions are answered related to the XML::Compile::SOAP modules. Or better said: let's hope there will be more in the future. If you have contributions either in question or as answer, then please contribute via the xml mailinglist.
See also XML::Compile::FAQ.
This module is part of XML-Compile-SOAP distribution version 2.25, built on September 22, 2011. Website: http://perl.overmeer.net/xml-compile/
Other distributions in this suite: XML::Compile, XML::Compile::SOAP, XML::Compile::SOAP12, XML::Compile::SOAP::Daemon, XML::Compile::SOAP::WSA, XML::Compile::C14N, XML::Compile::WSS, XML::Compile::Tester, XML::Compile::Cache, XML::Compile::Dumper, XML::Compile::RPC, XML::Rewrite, XML::eXistDB, and XML::LibXML::Simple.
Please post questions or ideas to the mailinglist at http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile For live contact with other developers, visit the #xml-compile channel on irc.perl.org.
#xml-compile
irc.perl.org
Copyrights 2007-2011 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html
To install XML::Compile::SOAP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Compile::SOAP
CPAN shell
perl -MCPAN -e shell install XML::Compile::SOAP
For more information on module installation, please visit the detailed CPAN module installation guide.