Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- $arrResponse = $LoginClient->Logon(array ('Username'=>$finalFunctionUserName,'Password'=>$finalFunctionPassword));
- $ticket = ($arrResponse->LogonResult);
- $custAnalysis = $ServicesLink->GetCustomerAnalysisCodes(array('Ticket'=>$ticket,'AnalysisCodeLabel'=>''));
- $analysisNames = array();
- foreach($custAnalysis->GetCustomerAnalysisCodesResult->AnalysisCodeGroup as $acode)
- {
- $analysisNames[] = $acode->Name;
- }
- for($i=0;$i<count($analysisNames)-1; $i+=1)
- {
- $custAnalysisInner = $ServicesLink->GetCustomerAnalysisCodes(array('Ticket'=>$ticket,'AnalysisCodeLabel'=>$analysisNames[$i]));
- foreach($custAnalysisInner->GetCustomerAnalysisCodesResult->AnalysisCodeGroup->AnalysisCodes->AnalysisCode as $acodes)
- {
- $test = $acodes->Name;
- echo('Values '.$test);
- echo ('<br>');
- }
- }
- }
- catch(SoapFault $exception)
- {
- drupal_set_message("The following exception took place.".$exception."Kindly check Freeway mapping");
- drupal_goto("user");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement