W3C::SOAP::Utils - Utility functions to be used with W3C::SOAP modules
W3C::SOAP
This documentation refers to W3C::SOAP::Utils version 0.0.7.
use W3C::SOAP::Utils; # splits tags with an optional XML namespace prefix my ($namespace, $tag) = split_ns('xs:thing'); # $namespace = xs # $tag = thing # In a WSDL package to generate an operation method: operation wsdl_op => ( wsdl_operation => 'WsdlOp', in_class +> 'MyApp::Some::XSD', in_attribute +> 'wsdl_op_request', out_class +> 'MyApp::Some::XSD', out_attribute +> 'wsdl_op_response', );
Utility Functions
split_ns ($name)
Splits an XML tag's namespace from the tag name
normalise_ns ($ns)
Creates a normalized XML name space string (ie lower cases the host part of the name space)
cmp_ns ($ns1, $ns2)
Compare two namespaces (with normalized host parts lower cased)
xml_error ($xml_node)
Pretty format the $xml_node for an error message
$xml_node
operation ($name, %optisns)
Generates a SOAP operation method with the name $name
$name
The options are:
wsdl_operation
The name of the operation from the WSDL
in_class
The name of the XSD generated module that the inputs should be made against
in_attribute
The particular element form the in_class XSD
out_class
The name of the XSD generated module that the outputs should be passed to
out_attribute
The particular element form the out_class XSD that contains the results.
There are no known bugs in this module.
Please report problems to Ivan Wills - (ivan.wills@gmail.com)
Patches are welcome.
Ivan Wills - (ivan.wills@gmail.com)
Copyright (c) 2012 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install W3C::SOAP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm W3C::SOAP
CPAN shell
perl -MCPAN -e shell install W3C::SOAP
For more information on module installation, please visit the detailed CPAN module installation guide.