Advertisement
DrupalCustom

twoarray

Jan 23rd, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.08 KB | None | 0 0
  1.     try
  2.             {
  3. $arrResponse = $LoginClient->Logon(array ('Username'=>$finalFunctionUserName,'Password'=>$finalFunctionPassword));
  4. $ticket = ($arrResponse->LogonResult);
  5.  
  6. $custAnalysis = $ServicesLink->GetCustomerAnalysisCodes(array('Ticket'=>$ticket,'AnalysisCodeLabel'=>''));
  7.  
  8.  
  9. $analysisNames = array();
  10.                
  11. foreach($custAnalysis->GetCustomerAnalysisCodesResult->AnalysisCodeGroup as $acode)
  12.     {
  13.         $analysisNames[] = $acode->Name;   
  14.     }  
  15.         for($i=0;$i<count($analysisNames)-1; $i+=1)
  16.             {
  17.  
  18.         $custAnalysisInner = $ServicesLink->GetCustomerAnalysisCodes(array('Ticket'=>$ticket,'AnalysisCodeLabel'=>$analysisNames[$i]));
  19.        
  20.                    
  21.                     foreach($custAnalysisInner->GetCustomerAnalysisCodesResult->AnalysisCodeGroup->AnalysisCodes->AnalysisCode as $acodes)
  22.                     {
  23.                    
  24.                     $test = $acodes->Name;
  25.                     echo('Values '.$test);
  26.                     echo ('<br>');
  27.                    
  28.                     }
  29.  
  30.                        
  31.             }      
  32.  
  33.             }
  34.            
  35.             catch(SoapFault $exception)
  36.             {  
  37.             drupal_set_message("The following exception took place.".$exception."Kindly check Freeway mapping");
  38.             drupal_goto("user");
  39.            
  40.            
  41.              
  42.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement