| Previous | Next
SOAP::DataThe SOAP::Data class allows you specify a value, name, type, URI, or other attributes for SOAP elements. For example, you can serialize the name/value pair of "Nate/31" with the following code:
This becomes You can also import SOAP::Data methods with
Once imported, name(Nate => 31); SOAP::Data also provides an interface to get or set specific attributes, including
This is serialized as follows: <Nate SOAP-ENV:encodingStyle="http://www.some.site/soap/showmetheliteral" xsi:type="xsd:int">31</Nate> |