| 1 | package WWW::Salesforce::Serializer; | ||||||||||
| 2 | |||||||||||
| 3 | 7 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 7 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 7 | ▶ | use SOAP::Lite; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 7 | our @ISA = qw( SOAP::Serializer ); | |||||||||
| 8 | |||||||||||
| 9 | 7 | our $VERSION = '0.401'; | |||||||||
| 10 | |||||||||||
| 11 | |||||||||||
| 12 | #************************************************************************** | ||||||||||
| 13 | # encode_object( $object, $name, $type, $attr ) | ||||||||||
| 14 | # -- overloaded encode_object() function to take care of problem | ||||||||||
| 15 | # with xsi:nil="true" attribute of tags that have no attributes | ||||||||||
| 16 | #************************************************************************** | ||||||||||
| 17 | 0 | ▶ | sub encode_object { | ||||||||
|
Subroutine
encode_object: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 18 | 0 | my ( $self, $object, $name, $type, $attr ) = @_; | |||||||||
| 19 | |||||||||||
| 20 | #print "\n\t\t",$name," *********************************************\n" if $name; | ||||||||||
| 21 | 0 | ▶ | if ( defined $attr->{'xsi:nil'} ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | 0 | delete $attr->{'xsi:nil'}; | |||||||||
| 23 | 0 | return [ $name, {%$attr} ]; | |||||||||
| 24 | } | ||||||||||
| 25 | 0 | return $self->SUPER::encode_object( $object, $name, $type, $attr ); | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 7 | 1; | |||||||||