Ignore:
Timestamp:
Nov 26, 2014 4:24:07 PM (11 years ago)
Author:
dungnv
Message:
 
Location:
pro-violet-viettel/sourcecode/application/modules
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/frontend/views/lecture_editor.php

    r625 r630  
    44$this->load->view('layout/frontend/sidebar');
    55?>
    6                         <div class="main-container-inner">
    7 
    86                                <div class="main-content">
    9 
    107                                        <div class="page-content no-padding">
    118                                                                <!-- PAGE CONTENT BEGINS -->
  • 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;
  • pro-violet-viettel/sourcecode/application/modules/services/views/mo.php

    r460 r630  
    1 <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    2   <soap:Body>
    3     <MOReceiver xmlns="http://tempuri.org/">
    4       <username>sbg</username>
    5       <password>sbg571285</password>   
    6       <requestID>4</requestID>
    7       <userID>841695061706</userID>
    8       <receiverID>841695061706</receiverID>
    9       <serviceID>8062</serviceID>
    10       <commandCode>SBG</commandCode>
    11       <contentType>0</contentType>
    12       <info>SBG DK</info>
    13       <receiveTime><?php echo date('Y-m-d H:i:s') ?></receiveTime>
    14     </MOReceiver>
    15   </soap:Body>
    16 </soap:Envelope>
     1<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
     2        <S:Body>
     3                <messageReceiverResponse xmlns="http://tempuri.org/">
     4                        <return><?php echo $message;?></return>
     5                </messageReceiverResponse>
     6        </S:Body>
     7</S:Envelope>
Note: See TracChangeset for help on using the changeset viewer.