| 1 | package W3C::SOAP::Header::Security; | ||
| 2 | |||
| 3 | # Created on: 2012-05-23 14:35:51 | ||
| 4 | # Create by: dev | ||
| 5 | # $Id$ | ||
| 6 | # $Revision$, $HeadURL$, $Date$ | ||
| 7 | # $Revision$, $Source$, $Date$ | ||
| 8 | |||
| 9 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 2 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 2 | ▶ | use Scalar::Util; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 2 | ▶ | use List::Util; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 2 | ▶ | use Data::Dumper qw/Dumper/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 2 | ▶ | use English qw/ -no_match_vars /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | |||
| 18 | 2 | our $VERSION = 0.13; | |
| 19 | |||
| 20 | sub to_xml { | ||
| 21 | 0 | ▶ | my ($self, $xml) = @_; |
|
Subroutine
to_xml: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 22 | |||
| 23 | 0 | my $sec = $xml->createElement('wsse:Security'); | |
| 24 | 0 | $sec->setAttribute('xmlns:wsse' => 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'); | |
| 25 | 0 | $sec->setAttribute('soapenv:mustUnderstand' => 1); | |
| 26 | |||
| 27 | # Moose 2 syntax | ||
| 28 | #my $child = inner(); | ||
| 29 | #$sec->appendChild($child) if $child; | ||
| 30 | |||
| 31 | 0 | return $sec; | |
| 32 | } | ||
| 33 | |||
| 34 | 2 | 1; | |
| 35 | |||
| 36 | __END__ | ||
| 37 | |||
| 38 | =head1 NAME | ||
| 39 | |||
| 40 | W3C::SOAP::Header::Security - Creates a SOAP Header WS-Security object | ||
| 41 | |||
| 42 | =head1 VERSION | ||
| 43 | |||
| 44 | This documentation refers to W3C::SOAP::Header::Security version 0.13. | ||
| 45 | |||
| 46 | |||
| 47 | =head1 SYNOPSIS | ||
| 48 | |||
| 49 | use W3C::SOAP::Header::Security; | ||
| 50 | |||
| 51 | # Brief but working code example(s) here showing the most common usage(s) | ||
| 52 | # This section will be as far as many users bother reading, so make it as | ||
| 53 | # educational and exemplary as possible. | ||
| 54 | |||
| 55 | |||
| 56 | =head1 DESCRIPTION | ||
| 57 | |||
| 58 | |||
| 59 | =head1 SUBROUTINES/METHODS | ||
| 60 | |||
| 61 | =over 4 | ||
| 62 | |||
| 63 | =item C<to_xml ($xml)> | ||
| 64 | |||
| 65 | Coverts this object to XML | ||
| 66 | |||
| 67 | =back | ||
| 68 | |||
| 69 | =head1 DIAGNOSTICS | ||
| 70 | |||
| 71 | =head1 CONFIGURATION AND ENVIRONMENT | ||
| 72 | |||
| 73 | =head1 DEPENDENCIES | ||
| 74 | |||
| 75 | =head1 INCOMPATIBILITIES | ||
| 76 | |||
| 77 | =head1 BUGS AND LIMITATIONS | ||
| 78 | |||
| 79 | There are no known bugs in this module. | ||
| 80 | |||
| 81 | Please report problems to Ivan Wills - (ivan.wills@gmail.com) | ||
| 82 | |||
| 83 | Patches are welcome. | ||
| 84 | |||
| 85 | =head1 AUTHOR | ||
| 86 | |||
| 87 | Ivan Wills - (ivan.wills@gmail.com) | ||
| 88 | |||
| 89 | =head1 LICENSE AND COPYRIGHT | ||
| 90 | |||
| 91 | Copyright (c) 2012 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). | ||
| 92 | All rights reserved. | ||
| 93 | |||
| 94 | This module is free software; you can redistribute it and/or modify it under | ||
| 95 | the same terms as Perl itself. See L<perlartistic>. This program is | ||
| 96 | distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||
| 97 | without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
| 98 | PARTICULAR PURPOSE. | ||
| 99 | |||
| 100 | =cut | ||