// Did an error occur? checkStatus($nsc); // Invoke login method echo "Calling login method..."; $newEndpoint = $nsc->call("login", array($loginId, $password)); echo "Done<br><br>"; // Did a soap fault occur? checkStatus($nsc); // Determine if the login method returned a value...this will occur // when the database you are trying to access is located at a different // environment that can only be accessed using the provided endpoint if ($newEndpoint != "") { echo "New Endpoint: {$newEndpoint}<br><br>"; // Instantiate nusoap_client with different endpoint echo "Establishing NuSoap Client with new endpoint..."; $nsc = new nusoap_client($newEndpoint, true); echo "Done<br><br>"; // Did an error occur? checkStatus($nsc); // Invoke login method echo "Calling login method..."; $nsc->call("login", array($loginId, $password)); echo "Done<br><br>"; // Did a soap fault occur? checkStatus($nsc); } // Output results echo "Login Successful<br><br>"; // Call logout method stopEtapestrySession($nsc);
//} else { $processTransactionResponse = $nsc->call("processTransaction", array($request)); //} if ($debugging) { echo "Done" . "\n\n"; } // did a soap fault occur? checkStatus($nsc, $_POST['ajax']); // output result if ($debugging) { echo "addAndProcessPayment Response: <pre>"; print_r($processTransactionResponse); echo "</pre>"; } // Call logout method stopEtapestrySession($nsc, $debugging); if ($debugging) { echo 'Sending email...'; } send_email_summary(array_merge($account, $request), $notification_address, $checkDuplicatesResponse, $addAccountResponse, $processTransactionResponse); if ($debugging) { echo 'Done' . "\n\n"; } // output template if not called via AJAX if (!$_POST['ajax']) { ?> <p>We’ll be in touch soon.</p> <p>In the meantime, check out <a href="http://www.ncll.org/">our website</a>.</p> </article> </section> </section>