Ignore:
Timestamp:
May 18, 2013, 5:58:36 AM (11 years ago)
Author:
rvelices
Message:

bug 2900: Improve web service output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_protocols/rest_encoder.php

    r19703 r22729  
    227227      if ( is_null($value) )
    228228        continue; // null means we dont put it
    229       if ($name!=WS_XML_CONTENT)
    230         $this->_writer->start_element($name);
     229      $this->_writer->start_element($name);
    231230      $this->encode($value);
    232       if ($name!=WS_XML_CONTENT)
    233         $this->_writer->end_element($name);
     231      $this->_writer->end_element($name);
    234232    }
    235233  }
     
    271269            break;
    272270          case 'pwgnamedstruct':
    273             $this->encode_array( array($data->_content), $data->_name, $data->_xmlAttributes);
     271                                                $this->encode_struct($data->_content, false, $data->_xmlAttributes);
    274272            break;
    275273          default:
Note: See TracChangeset for help on using the changeset viewer.