line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyrights 2007-2021 by [Mark Overmeer ]. |
2
|
|
|
|
|
|
|
# For other contributors see ChangeLog. |
3
|
|
|
|
|
|
|
# See the manual pages for details on the licensing terms. |
4
|
|
|
|
|
|
|
# Pod stripped from pm file by OODoc 2.02. |
5
|
|
|
|
|
|
|
# This code is part of distribution XML-Compile-SOAP. Meta-POD processed |
6
|
|
|
|
|
|
|
# with OODoc into POD and HTML manual-pages. See README.md |
7
|
|
|
|
|
|
|
# Copyright Mark Overmeer. Licensed under the same terms as Perl itself. |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package XML::Compile::XOP; |
10
|
2
|
|
|
2
|
|
4884
|
use vars '$VERSION'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
115
|
|
11
|
|
|
|
|
|
|
$VERSION = '3.27'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
50
|
|
15
|
2
|
|
|
2
|
|
14
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
57
|
|
16
|
|
|
|
|
|
|
|
17
|
2
|
|
|
2
|
|
12
|
use Log::Report 'xml-compile-soap'; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
18
|
|
18
|
|
|
|
|
|
|
|
19
|
2
|
|
|
2
|
|
577
|
use XML::Compile::SOAP::Util qw/:xop10/; |
|
2
|
|
|
|
|
75
|
|
|
2
|
|
|
|
|
290
|
|
20
|
2
|
|
|
2
|
|
889
|
use XML::Compile::XOP::Include (); |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
546
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
XML::Compile->addSchemaDirs(__FILE__); |
23
|
|
|
|
|
|
|
XML::Compile->knownNamespace |
24
|
|
|
|
|
|
|
( &XMIME10 => '200411-xmlmime.xsd' |
25
|
|
|
|
|
|
|
, &XMIME11 => '200505-xmlmime.xsd' |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
1
|
|
|
1
|
1
|
1501
|
sub new(@) { my $class = shift; (bless {})->init( {@_} ) } |
|
1
|
|
|
|
|
7
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub init($) |
32
|
1
|
|
|
1
|
0
|
4
|
{ my ($self, $args) = @_; |
33
|
|
|
|
|
|
|
|
34
|
1
|
|
50
|
|
|
11
|
$self->{XCX_xmime} = $args->{xmlmime_version} || XMIME11; |
35
|
1
|
|
50
|
|
|
6
|
$self->{XCX_xop} = $args->{xop_version} || XOP10; |
36
|
1
|
|
50
|
|
|
6
|
$self->{XCX_host} = $args->{hostname} || 'localhost'; |
37
|
1
|
|
|
|
|
3
|
$self->{XCX_cid} = time; |
38
|
1
|
|
|
|
|
3
|
$self; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub _include(@) |
43
|
1
|
|
|
1
|
|
2
|
{ my $self = shift; |
44
|
|
|
|
|
|
|
XML::Compile::XOP::Include->new |
45
|
|
|
|
|
|
|
( cid => $self->{XCX_cid}++ . '@' . $self->{XCX_host} |
46
|
|
|
|
|
|
|
, xmime => $self->{XCX_xmime} |
47
|
|
|
|
|
|
|
, xop => $self->{XCX_xop} |
48
|
1
|
|
|
|
|
12
|
, type => 'application/octet-stream' |
49
|
|
|
|
|
|
|
, @_ |
50
|
|
|
|
|
|
|
); |
51
|
|
|
|
|
|
|
} |
52
|
0
|
|
|
0
|
1
|
0
|
sub file(@) { my $self = shift; $self->_include(file => @_) } |
|
0
|
|
|
|
|
0
|
|
53
|
1
|
|
|
1
|
1
|
438
|
sub bytes(@) { my $self = shift; $self->_include(bytes => @_) } |
|
1
|
|
|
|
|
5
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |