home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd1.bin / zkuste / Perl / ActivePerl-5.6.0.613.msi / 䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥 / _5a4b4d79ee007b4a441da87640d14ef7 < prev    next >
Text File  |  2000-03-15  |  3KB  |  120 lines

  1. package SOAP::Defs;
  2. $VERSION = '0.23';
  3. use vars(qw($VERSION));
  4. require Exporter;
  5. @ISA = qw(Exporter);
  6.  
  7. #
  8. # Numeric constants from the SOAP spec
  9. #
  10. $soap_status_version_mismatch    = 100;
  11. $soap_status_must_understand     = 200;
  12. $soap_status_invalid_request     = 300;
  13. $soap_status_application_faulted = 400;
  14.  
  15. #
  16. # Strings from the SOAP spec
  17. #
  18. $soap_namespace         = 'urn:schemas-xmlsoap-org:soap.v1';
  19. $soap_envelope          = 'Envelope';
  20. $soap_body              = 'Body';
  21. $soap_header            = 'Header';
  22. $soap_package           = 'Package';
  23. $soap_id                = 'id';
  24. $soap_href              = 'href';
  25. $soap_must_understand   = 'mustUnderstand';
  26. $soap_runcode_yes       = 'Yes';
  27. $soap_runcode_no        = 'No';
  28. $soap_runcode_maybe     = 'Maybe';
  29. $soap_root_with_id      = 'rootWithId';
  30. $soap_true              = '1';
  31. $soap_false             = '0';
  32.  
  33. #
  34. # Strings from the XML Schema spec
  35. #
  36. $xsd_namespace     = 'http://www.w3.org/1999/XMLSchema/instance';
  37. $xsd_null          = 'null';
  38. $xsd_type          = 'type';
  39. $xsd_string        = 'string';
  40.  
  41. #
  42. # SOAP/Perl implementation specific constants
  43. #
  44. $soapperl_accessor_type_simple          = 1;
  45. $soapperl_accessor_type_compound        = 2;
  46. $soapperl_accessor_type_array           = 3;
  47. $soapperl_intrusive_hash_key_typeuri    = 'soap_typeuri';
  48. $soapperl_intrusive_hash_key_typename   = 'soap_typename';
  49.  
  50. my @soap_spec_numerics =
  51.     qw( $soap_status_version_mismatch
  52.         $soap_status_must_understand
  53.         $soap_status_invalid_request
  54.         $soap_status_application_faulted
  55.         );
  56.  
  57. my @soap_spec_strings =
  58.     qw( $soap_namespace
  59.         $soap_envelope
  60.         $soap_body
  61.         $soap_header
  62.         $soap_package
  63.         $soap_id
  64.         $soap_href
  65.         $soap_must_understand
  66.         $soap_runcode_yes
  67.         $soap_runcode_no
  68.         $soap_runcode_maybe
  69.         $soap_root_with_id
  70.         $soap_true
  71.         $soap_false
  72.         );
  73.  
  74. my @xsd_spec_strings =
  75.     qw( $xsd_namespace
  76.         $xsd_type
  77.         $xsd_null
  78.         $xsd_string
  79.         );
  80.  
  81. my @soapperl_constants =
  82.     qw( $soapperl_accessor_type_simple
  83.         $soapperl_accessor_type_compound
  84.         $soapperl_accessor_type_array
  85.         $soapperl_intrusive_hash_key_typeuri
  86.         $soapperl_intrusive_hash_key_typename
  87.         );
  88.  
  89. @EXPORT =
  90.     ( @soap_spec_numerics,
  91.       @soap_spec_strings,
  92.       @xsd_spec_strings,
  93.       @soapperl_constants,
  94.     );
  95.  
  96. 1;
  97.  
  98. __END__
  99.  
  100. =head1 NAME
  101.  
  102. SOAP::Defs - Spec-defined constants
  103.  
  104. =head1 SYNOPSIS
  105.  
  106.     use SOAP::Defs;
  107.  
  108. =head1 DESCRIPTION
  109.  
  110. This is an internal class that exports global symbols needed
  111. by various SOAP/Perl classes. You don't need to import this module
  112. directly unless you happen to be building SOAP plumbing (as opposed
  113. to simply writing a SOAP client or server).
  114.  
  115. =head1 AUTHOR
  116.  
  117. Keith Brown
  118.  
  119. =cut
  120.