Ignore:
Timestamp:
Nov 26, 2014 4:24:07 PM (11 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/services/controllers/viettel.php

    r579 r630  
    7676                                $pattern = '/<[^>]*[^\/]>/i';
    7777                                $aryOutput = preg_split ($pattern, $soapOutput, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
    78                
    79                                 $xml = '<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    80                                                    <S:Body>
    81                                                       <messageReceiverResponse xmlns="http://tempuri.org/">
    82                                                          <return>'.$aryOutput[1].'</return>
    83                                                       </messageReceiverResponse>
    84                                                    </S:Body>
    85                                                 </S:Envelope>';
    86                
     78                                $aryData = array();
     79                                $aryData['message'] = $aryOutput[1];
     80                                $xml = $this->load->view('mo', $aryData, TRUE);
    8781                                header('Content-Type: text/xml; charset: utf-8');
    8882                                echo $xml;
Note: See TracChangeset for help on using the changeset viewer.