diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-12-04 14:58:11 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-12-09 10:05:25 +0000 |
commit | 4d077406cf2325027814118e90a41d53880e0780 (patch) | |
tree | b7543f0db8695d3941db92714d5537b0c4223d50 | |
parent | 1009dae7ad83d830c19a82a8d938c5b1d40546aa (diff) |
Remove unused SOAP::WSDL package.
-rw-r--r-- | cpanfile.snapshot | 198 | ||||
-rw-r--r-- | perllib/SOAP/WSDL/Serializer/XSD.pm | 148 |
2 files changed, 0 insertions, 346 deletions
diff --git a/cpanfile.snapshot b/cpanfile.snapshot index 48ca6f324..5ba400eff 100644 --- a/cpanfile.snapshot +++ b/cpanfile.snapshot @@ -5181,207 +5181,9 @@ DISTRIBUTIONS XML::Parser 2.23 constant 0 perl 5.006 - SOAP-WSDL-v3.002 - pathname: S/SW/SWALTERS/SOAP-WSDL-v3.002.tar.gz - provides: - MyElements::CountCookies undef - MyElements::CountCookiesResponse undef - MyElements::GenerateBarCode undef - MyElements::GenerateBarCodeResponse undef - MyElements::GetCitiesByCountry undef - MyElements::GetCitiesByCountryResponse undef - MyElements::GetFortuneCookie undef - MyElements::GetFortuneCookieResponse undef - MyElements::GetSpecificCookie undef - MyElements::GetSpecificCookieResponse undef - MyElements::GetWeather undef - MyElements::GetWeatherResponse undef - MyElements::ListPerson undef - MyElements::ListPersonResponse undef - MyElements::int undef - MyElements::readNodeCount undef - MyElements::readNodeCountResponse undef - MyElements::sayHello undef - MyElements::sayHelloResponse undef - MyElements::string undef - MyInterfaces::BarCode::BarCodeSoap undef - MyInterfaces::FullerData_x0020_Fortune_x0020_Cookie::FullerData_x0020_Fortune_x0020_CookieSoap undef - MyInterfaces::GlobalWeather::GlobalWeatherSoap undef - MyInterfaces::HelloWorld::HelloWorldSoap undef - MyInterfaces::TestService::TestPort undef - MyServer::HelloWorld::HelloWorldSoap undef - MyServer::TestService::TestPort undef - MyTypemaps::BarCode undef - MyTypemaps::FullerData_x0020_Fortune_x0020_Cookie undef - MyTypemaps::GlobalWeather undef - MyTypemaps::HelloWorld undef - MyTypemaps::TestService undef - MyTypes::Address undef - MyTypes::ArrayOfContract undef - MyTypes::ArrayOfPerson undef - MyTypes::BarCodeData undef - MyTypes::BarcodeOption undef - MyTypes::BarcodeType undef - MyTypes::CheckSumMethod undef - MyTypes::Contract undef - MyTypes::ImageFormats undef - MyTypes::Person undef - MyTypes::PersonID undef - MyTypes::PhoneNumber undef - MyTypes::ShowTextPosition undef - MyTypes::test2 undef - MyTypes::testExtended undef - SOAP::WSDL undef - SOAP::WSDL::Base undef - SOAP::WSDL::Binding undef - SOAP::WSDL::Client undef - SOAP::WSDL::Client::Base undef - SOAP::WSDL::Definitions undef - SOAP::WSDL::Deserializer::Hash undef - SOAP::WSDL::Deserializer::SOM undef - SOAP::WSDL::Deserializer::XSD undef - SOAP::WSDL::Expat::Base undef - SOAP::WSDL::Expat::Message2Hash undef - SOAP::WSDL::Expat::MessageParser undef - SOAP::WSDL::Expat::MessageStreamParser undef - SOAP::WSDL::Expat::WSDLParser undef - SOAP::WSDL::Factory::Deserializer undef - SOAP::WSDL::Factory::Generator undef - SOAP::WSDL::Factory::Serializer undef - SOAP::WSDL::Factory::Transport undef - SOAP::WSDL::Generator::Iterator::WSDL11 undef - SOAP::WSDL::Generator::PrefixResolver undef - SOAP::WSDL::Generator::Template undef - SOAP::WSDL::Generator::Template::Plugin::XSD undef - SOAP::WSDL::Generator::Template::XSD undef - SOAP::WSDL::Generator::Visitor undef - SOAP::WSDL::Generator::Visitor::Typemap undef - SOAP::WSDL::Message undef - SOAP::WSDL::OpMessage undef - SOAP::WSDL::Operation undef - SOAP::WSDL::Part undef - SOAP::WSDL::Port undef - SOAP::WSDL::PortType undef - SOAP::WSDL::SOAP::Address undef - SOAP::WSDL::SOAP::Body undef - SOAP::WSDL::SOAP::Header undef - SOAP::WSDL::SOAP::HeaderFault undef - SOAP::WSDL::SOAP::Operation undef - SOAP::WSDL::SOAP::Typelib::Fault undef - SOAP::WSDL::SOAP::Typelib::Fault11 undef - SOAP::WSDL::SOAP::Typelib::Fault11Detail undef - SOAP::WSDL::Serializer::XSD undef - SOAP::WSDL::Server undef - SOAP::WSDL::Server::CGI undef - SOAP::WSDL::Server::Mod_Perl2 undef - SOAP::WSDL::Server::Simple undef - SOAP::WSDL::Service undef - SOAP::WSDL::Transport::HTTP undef - SOAP::WSDL::Transport::Loopback undef - SOAP::WSDL::Transport::Test undef - SOAP::WSDL::TypeLookup undef - SOAP::WSDL::Types undef - SOAP::WSDL::XSD::Annotation undef - SOAP::WSDL::XSD::Attribute undef - SOAP::WSDL::XSD::AttributeGroup undef - SOAP::WSDL::XSD::Builtin undef - SOAP::WSDL::XSD::ComplexType undef - SOAP::WSDL::XSD::Element undef - SOAP::WSDL::XSD::Enumeration undef - SOAP::WSDL::XSD::FractionDigits undef - SOAP::WSDL::XSD::Group undef - SOAP::WSDL::XSD::Length undef - SOAP::WSDL::XSD::MaxExclusive undef - SOAP::WSDL::XSD::MaxInclusive undef - SOAP::WSDL::XSD::MaxLength undef - SOAP::WSDL::XSD::MinExclusive undef - SOAP::WSDL::XSD::MinInclusive undef - SOAP::WSDL::XSD::MinLength undef - SOAP::WSDL::XSD::Pattern undef - SOAP::WSDL::XSD::Schema undef - SOAP::WSDL::XSD::Schema::Builtin undef - SOAP::WSDL::XSD::SimpleType undef - SOAP::WSDL::XSD::TotalDigits undef - SOAP::WSDL::XSD::Typelib::Attribute undef - SOAP::WSDL::XSD::Typelib::AttributeSet undef - SOAP::WSDL::XSD::Typelib::Builtin undef - SOAP::WSDL::XSD::Typelib::Builtin::ENTITY undef - SOAP::WSDL::XSD::Typelib::Builtin::ID undef - SOAP::WSDL::XSD::Typelib::Builtin::IDREF undef - SOAP::WSDL::XSD::Typelib::Builtin::IDREFS undef - SOAP::WSDL::XSD::Typelib::Builtin::NCName undef - SOAP::WSDL::XSD::Typelib::Builtin::NMTOKEN undef - SOAP::WSDL::XSD::Typelib::Builtin::NMTOKENS undef - SOAP::WSDL::XSD::Typelib::Builtin::NOTATION undef - SOAP::WSDL::XSD::Typelib::Builtin::Name undef - SOAP::WSDL::XSD::Typelib::Builtin::QName undef - SOAP::WSDL::XSD::Typelib::Builtin::anySimpleType undef - SOAP::WSDL::XSD::Typelib::Builtin::anyType undef - SOAP::WSDL::XSD::Typelib::Builtin::anyURI undef - SOAP::WSDL::XSD::Typelib::Builtin::base64Binary undef - SOAP::WSDL::XSD::Typelib::Builtin::boolean undef - SOAP::WSDL::XSD::Typelib::Builtin::byte undef - SOAP::WSDL::XSD::Typelib::Builtin::date undef - SOAP::WSDL::XSD::Typelib::Builtin::dateTime undef - SOAP::WSDL::XSD::Typelib::Builtin::decimal undef - SOAP::WSDL::XSD::Typelib::Builtin::double undef - SOAP::WSDL::XSD::Typelib::Builtin::duration undef - SOAP::WSDL::XSD::Typelib::Builtin::float undef - SOAP::WSDL::XSD::Typelib::Builtin::gDay undef - SOAP::WSDL::XSD::Typelib::Builtin::gMonth undef - SOAP::WSDL::XSD::Typelib::Builtin::gMonthDay undef - SOAP::WSDL::XSD::Typelib::Builtin::gYear undef - SOAP::WSDL::XSD::Typelib::Builtin::gYearMonth undef - SOAP::WSDL::XSD::Typelib::Builtin::hexBinary undef - SOAP::WSDL::XSD::Typelib::Builtin::int undef - SOAP::WSDL::XSD::Typelib::Builtin::integer undef - SOAP::WSDL::XSD::Typelib::Builtin::language undef - SOAP::WSDL::XSD::Typelib::Builtin::list undef - SOAP::WSDL::XSD::Typelib::Builtin::long undef - SOAP::WSDL::XSD::Typelib::Builtin::negativeInteger undef - SOAP::WSDL::XSD::Typelib::Builtin::nonNegativeInteger undef - SOAP::WSDL::XSD::Typelib::Builtin::nonPositiveInteger undef - SOAP::WSDL::XSD::Typelib::Builtin::normalizedString undef - SOAP::WSDL::XSD::Typelib::Builtin::positiveInteger undef - SOAP::WSDL::XSD::Typelib::Builtin::short undef - SOAP::WSDL::XSD::Typelib::Builtin::string undef - SOAP::WSDL::XSD::Typelib::Builtin::time undef - SOAP::WSDL::XSD::Typelib::Builtin::token undef - SOAP::WSDL::XSD::Typelib::Builtin::unsignedByte undef - SOAP::WSDL::XSD::Typelib::Builtin::unsignedInt undef - SOAP::WSDL::XSD::Typelib::Builtin::unsignedLong undef - SOAP::WSDL::XSD::Typelib::Builtin::unsignedShort undef - SOAP::WSDL::XSD::Typelib::ComplexType undef - SOAP::WSDL::XSD::Typelib::Element undef - SOAP::WSDL::XSD::Typelib::SimpleType undef - SOAP::WSDL::XSD::Typelib::SimpleType::restriction undef - SOAP::WSDL::XSD::WhiteSpace undef - requirements: - Class::Load 0.2 - Class::Std::Fast 0.000005 - Cwd 0 - Data::Dumper 0 - Date::Format 0 - Date::Parse 0 - ExtUtils::MakeMaker 0 - File::Basename 0 - File::Path 0 - File::Spec 0 - Getopt::Long 0 - LWP::UserAgent 0 - List::Util 0 - Module::Build 0 - Storable 0 - Template 2.18 - Term::ReadKey 0 - Test::More 0 - URI 0 - XML::Parser::Expat 0 - perl 5.008 SQL-Abstract-1.73 pathname: F/FR/FREW/SQL-Abstract-1.73.tar.gz provides: - DBIx::Class::Storage::Debug::PrettyPrint undef SQL::Abstract 1.73 SQL::Abstract::Test undef SQL::Abstract::Tree undef diff --git a/perllib/SOAP/WSDL/Serializer/XSD.pm b/perllib/SOAP/WSDL/Serializer/XSD.pm deleted file mode 100644 index f233f74e7..000000000 --- a/perllib/SOAP/WSDL/Serializer/XSD.pm +++ /dev/null @@ -1,148 +0,0 @@ -#!/usr/bin/perl -w -package SOAP::WSDL::Serializer::XSD; -use strict; -use warnings; -use Class::Std::Fast::Storable; -use Scalar::Util qw(blessed); - -use version; our $VERSION = qv('2.00.10'); - -use SOAP::WSDL::Factory::Serializer; - -my $SOAP_NS = 'http://schemas.xmlsoap.org/soap/envelope/'; -my $XML_INSTANCE_NS = 'http://www.w3.org/2001/XMLSchema-instance'; - -sub serialize { - my ($self, $args_of_ref) = @_; - - my $opt = $args_of_ref->{ options }; - - if (not $opt->{ namespace }->{ $SOAP_NS }) - { - $opt->{ namespace }->{ $SOAP_NS } = 'SOAP-ENV'; - } - - if (not $opt->{ namespace }->{ $XML_INSTANCE_NS }) - { - $opt->{ namespace }->{ $XML_INSTANCE_NS } = 'xsi'; - } - - my $soap_prefix = $opt->{ namespace }->{ $SOAP_NS }; - - # envelope start with namespaces - my $xml = "<$soap_prefix\:Envelope "; - - while (my ($uri, $prefix) = each %{ $opt->{ namespace } }) - { - $xml .= "xmlns:$prefix=\"$uri\" "; - } - # - # add namespace for user-supplied prefix if needed - $xml .= "xmlns:$opt->{prefix}=\"" . $args_of_ref->{ body }->get_xmlns() . "\" " - if $opt->{prefix}; - - # TODO insert encoding - $xml.='>'; - $xml .= $self->serialize_header($args_of_ref->{ method }, $args_of_ref->{ header }, $opt); - $xml .= $self->serialize_body($args_of_ref->{ method }, $args_of_ref->{ body }, $opt); - $xml .= '</' . $soap_prefix .':Envelope>'; - return $xml; -} - -sub serialize_header { - my ($self, $method, $data, $opt) = @_; - - # header is optional. Leave out if there's no header data - return q{} if not $data; - return join ( q{}, - "<$opt->{ namespace }->{ $SOAP_NS }\:Header>", - blessed $data ? $data->serialize_qualified : (), - "</$opt->{ namespace }->{ $SOAP_NS }\:Header>", - ); -} - -sub serialize_body { - my ($self, $method, $data, $opt) = @_; - - # TODO This one wipes out the old class' XML name globally - # Fix in some more appropriate place... - # $data->__set_name("$opt->{prefix}:" . $data->__get_name() ) if $opt->{prefix}; - # fix: -------v from https://rt.cpan.org/Public/Bug/Display.html?id=38035 - if ( $opt->{prefix} ) { - my $body_name = $data->__get_name(); - $body_name =~ s/.+://; - $data->__set_name($opt->{prefix} . ":" . $body_name ); - } - # fix end ----^ - - # Body is NOT optional. Serialize to empty body - # if we have no data. - return join ( q{}, - "<$opt->{ namespace }->{ $SOAP_NS }\:Body>", - defined $data - ? ref $data eq 'ARRAY' - ? join q{}, map { blessed $_ ? $_->serialize_qualified() : () } @{ $data } - : blessed $data - ? $opt->{prefix} - ? $data->serialize() - : $data->serialize_qualified() - : () - : (), - "</$opt->{ namespace }->{ $SOAP_NS }\:Body>", - ); -} - -__END__ - -=pod - -=head1 NAME - -SOAP:WSDL::Serializer::XSD - Serializer for SOAP::WSDL::XSD::Typelib:: objects - -=head1 DESCRIPTION - -This is the default serializer for SOAP::WSDL::Client and Interface classes -generated by SOAP::WSDL - -It may be used as a template for creating custom serializers. - -See L<SOAP::WSDL::Factory::Serializer|SOAP::WSDL::Factory::Serializer> for -details on that. - -=head1 METHODS - -=head2 serialize - -Creates a SOAP envelope based on the body and header arguments passed. - -Sets SOAP namespaces. - -=head2 serialize_body - -Serializes a message body to XML - -=head2 serialize_header - -Serializes a message header to XML - -=head1 LICENSE AND COPYRIGHT - -Copyright (c) 2007 Martin Kutter. All rights reserved. - -This file is part of SOAP-WSDL. You may distribute/modify it under -the same terms as perl itself - -=head1 AUTHOR - -Martin Kutter E<lt>martin.kutter fen-net.deE<gt> - -=head1 REPOSITORY INFORMATION - - $Rev: 851 $ - $LastChangedBy: kutterma $ - $Id: XSD.pm 851 2009-05-15 22:45:18Z kutterma $ - $HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/Serializer/XSD.pm $ - -=cut - |