W3C::SOAP::Utils - Utility functions to be used with
This documentation refers to W3C::SOAP::Utils version 0.06.
use W3C::SOAP::Utils; # splits tags with an optional XML namespace prefix my ($namespace, $tag) = split_ns('xs:thing'); # $namespace = xs # $tag = thing
Splits an XML tag's namespace from the tag name
Creates a normalized XML name space string (ie lower cases the host part of the name space)
Takes the XML namespace
$ns and coverts it to a module name, if it is a "normal" URI the module name is got by reversing the order of the domain parts and joining that with any directory parts (setting default Perl module capitalization along the way)
eg http://www.example.com/some/path => Com::Example::Www::Some::Path
If the URI doesn't have a host part then URI is split on the non-word characters and similarly rejoined
eg uri:thing.other/unknown => Uri::Thing::Other::Unknown
cmp_ns ($ns1, $ns2)
Compare two namespaces (with normalized host parts lower cased)
Pretty format the
$xml_node for an error message
operation ($name, %optisns)
See W3C::SOAP::WSDL::Utils for details using it from this module is deprecated
There are no known bugs in this module.
Please report problems to Ivan Wills - (firstname.lastname@example.org)
Patches are welcome.
Ivan Wills - (email@example.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.