Diff of /trunk/lib/SOAP/Serializer.pod [r418] .. [r419]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/lib/SOAP/Serializer.pod
+++ b/trunk/lib/SOAP/Serializer.pod
@@ -4,7 +4,7 @@
 # SOAP::Lite is free software; you can redistribute it
 # and/or modify it under the same terms as Perl itself.
 #
-# $Id: Serializer.pod 98 2007-10-09 09:41:55Z kutterma $
+# $Id: Serializer.pod 419 2013-04-21 16:59:31Z kutterma $
 #
 # ======================================================================
 
@@ -56,9 +56,13 @@
 
 =item freeform
 
-This identifier is used as a general-case encoding style for messages that don't fit into any of the previous cases. The arguments are encoded into the envelope's Body tag without any sort of context sensitivity. Any value other than these four results in an error.
-
-=back
+This identifier is used as a general-case encoding style for messages that
+don't fit into any of the previous cases. The arguments are encoded into the
+envelope's Body tag without any sort of context sensitivity.
+
+=back
+
+Any value other than these four results in an error.
 
 =item envprefix(optional value)
 
@@ -74,13 +78,13 @@
 
 =item soapversion(optional value)
 
-    $serial->soapversion('1.2');
+    $serialize->soapversion('1.2');
 
 If no parameter is given, returns the current version of SOAP that is being used as the basis for serializing messages. If a parameter is given, attempts to set that as the version of SOAP being used. The value should be either 1.1 or 1.2. When the SOAP version is being set, the package selects new URNs for envelope and encoding spaces and also calls the xmlschema method to set the appropriate schema definition.
 
 =item xmlschema(optional value)
 
-    $serial->xmlschema($xml_schema_1999);
+    $serialize->xmlschema($xml_schema_1999);
 
 Gets or sets the URN for the schema being used to express the structure of the XML generated by the serializer. If setting the value, the input must be the full URN for the new schema and is checked against the list of known SOAP schemas.
 
@@ -102,7 +106,7 @@
 SOAP::Data element. A good example of how this might be used is as follows:
 
     SOAP::Data->name("foo" => $inputParams{'foo'})
-	      ->type($client->serializer->find_prefix('urn:Foo').':Foo');
+       ->type($client->serializer->find_prefix('urn:Foo').':Foo');
 
 =back
 
@@ -162,15 +166,15 @@
   ----------------------------
   base64      10
   int         20
-  long        25 
+  long        25
   float       30
   gMonth      35
   gDay        40
   gYear       45
   gMonthDay   50
   gYearMonth  55
-  date 	      60
-  time 	      70
+  date        60
+  time        70
   dateTime    75
   duration    80
   boolean     90
@@ -208,7 +212,7 @@
 
 B<Step 1: Write a Test Subroutine>
 
-The test subroutine will have passed to it by C<SOAP::Serializer> a value to be tested. The test subroutine must return 1 if the value passed to it is of the corresponding type, or else it must return 0. 
+The test subroutine will have passed to it by C<SOAP::Serializer> a value to be tested. The test subroutine must return 1 if the value passed to it is of the corresponding type, or else it must return 0.
 
     sub SOAP::Serializer::uriReferenceTest {
       my ($value) = @_;
@@ -230,14 +234,14 @@
 
 B<Step 3: Register the New Data Type>
 
-To register the new data type, simply add the type to the C<SOAP::Serializer::typelookup> hash using the type name as the key, and an array containing the precedence value, the test subroutine, and the encoding subroutine. 
-
-  $s->typelookup->{uriReference} 
+To register the new data type, simply add the type to the C<SOAP::Serializer::typelookup> hash using the type name as the key, and an array containing the precedence value, the test subroutine, and the encoding subroutine.
+
+  $s->typelookup->{uriReference}
       = [11, \&uriReferenceTest, 'as_uriReference'];
 
 I<Tip: As a short hand, you could just as easily use an anonymous test subroutine when registering the new datatype in place of the C<urlReferenceTest> subroutine above. For example:>
 
-  $s->typelookup->{uriReference} 
+  $s->typelookup->{uriReference}
       = [11, sub { $_[0] =~ m!^http://! }, 'as_uriReference'];
 
 Once complete, C<SOAP::Serializer> will be able to serialize the following C<SOAP::Data> object into XML: