| 1 | package W3C::SOAP::WSDL::Document::Service; | ||
| 2 | |||
| 3 | # Created on: 2012-05-27 19:25:41 | ||
| 4 | # Create by: Ivan Wills | ||
| 5 | # $Id$ | ||
| 6 | # $Revision$, $HeadURL$, $Date$ | ||
| 7 | # $Revision$, $Source$, $Date$ | ||
| 8 | |||
| 9 | 5 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 5 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 5 | ▶ | use Scalar::Util; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 5 | ▶ | use List::Util; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | #use List::MoreUtils; | ||
| 15 | 5 | ▶ | use Data::Dumper qw/Dumper/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 5 | ▶ | use English qw/ -no_match_vars /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 5 | ▶ | use W3C::SOAP::WSDL::Document::Port; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | 5 | extends 'W3C::SOAP::Document::Node'; | |
| 20 | |||
| 21 | 5 | our $VERSION = 0.13; | |
| 22 | |||
| 23 | 5 | has ports => ( | |
| 24 | is => 'rw', | ||
| 25 | isa => 'ArrayRef[W3C::SOAP::WSDL::Document::Port]', | ||
| 26 | builder => '_ports', | ||
| 27 | lazy => 1, | ||
| 28 | ); | ||
| 29 | |||
| 30 | sub _ports { | ||
| 31 | 4 | ▶ | my ($self) = @_; |
|
Subroutine
_ports: called CC=2 SCAR=6.9
| |||
| 32 | 4 | my @complex_types; | |
| 33 | 4 | my @nodes = $self->document->xpc->findnodes('wsdl:port', $self->node); | |
| 34 | |||
| 35 | 4 | for my $node (@nodes) { | |
| 36 | 4 | push @complex_types, W3C::SOAP::WSDL::Document::Port->new( | |
| 37 | parent_node => $self, | ||
| 38 | node => $node, | ||
| 39 | ); | ||
| 40 | } | ||
| 41 | |||
| 42 | 4 | return \@complex_types; | |
| 43 | } | ||
| 44 | |||
| 45 | 5 | 1; | |
| 46 | |||
| 47 | __END__ | ||
| 48 | |||
| 49 | =head1 NAME | ||
| 50 | |||
| 51 | W3C::SOAP::WSDL::Document::Service - Represents the services in a WSDL document | ||
| 52 | |||
| 53 | =head1 VERSION | ||
| 54 | |||
| 55 | This documentation refers to W3C::SOAP::WSDL::Document::Service version 0.13. | ||
| 56 | |||
| 57 | |||
| 58 | =head1 SYNOPSIS | ||
| 59 | |||
| 60 | use W3C::SOAP::WSDL::Document::Service; | ||
| 61 | |||
| 62 | # Brief but working code example(s) here showing the most common usage(s) | ||
| 63 | # This section will be as far as many users bother reading, so make it as | ||
| 64 | # educational and exemplary as possible. | ||
| 65 | |||
| 66 | |||
| 67 | =head1 DESCRIPTION | ||
| 68 | |||
| 69 | A C<W3C::SOAP::WSDL::Document::Service> object represents the service tags | ||
| 70 | in a WSDL document. | ||
| 71 | |||
| 72 | =head1 SUBROUTINES/METHODS | ||
| 73 | |||
| 74 | =over 4 | ||
| 75 | |||
| 76 | =back | ||
| 77 | |||
| 78 | =head1 DIAGNOSTICS | ||
| 79 | |||
| 80 | =head1 CONFIGURATION AND ENVIRONMENT | ||
| 81 | |||
| 82 | =head1 DEPENDENCIES | ||
| 83 | |||
| 84 | =head1 INCOMPATIBILITIES | ||
| 85 | |||
| 86 | =head1 BUGS AND LIMITATIONS | ||
| 87 | |||
| 88 | There are no known bugs in this module. | ||
| 89 | |||
| 90 | Please report problems to Ivan Wills (ivan.wills@gmail.com). | ||
| 91 | |||
| 92 | Patches are welcome. | ||
| 93 | |||
| 94 | =head1 AUTHOR | ||
| 95 | |||
| 96 | Ivan Wills - (ivan.wills@gmail.com) | ||
| 97 | |||
| 98 | =head1 LICENSE AND COPYRIGHT | ||
| 99 | |||
| 100 | Copyright (c) 2012 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). | ||
| 101 | All rights reserved. | ||
| 102 | |||
| 103 | This module is free software; you can redistribute it and/or modify it under | ||
| 104 | the same terms as Perl itself. See L<perlartistic>. This program is | ||
| 105 | distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||
| 106 | without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
| 107 | PARTICULAR PURPOSE. | ||
| 108 | |||
| 109 | =cut | ||