Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class OASAPI{
- private $wsdl;
- function __construct($url){
- $this->wsdl = $url;
- }
- function request($account, $user, $pass, $adxml){
- try{
- $client = new SoapClient($this->wsdl, array( 'connection_timeout' => 120, 'max_execution_time' => 120));
- $return = $client->OASXmlRequest($account, $user, $pass, $adxml);
- //--> Test for valid AdXML Return
- return $return;
- }
- catch (Exception $e){
- echo $e->getMessage();
- return false;
- }
- }
- }
- ?>
Add Comment
Please, Sign In to add comment