0

I'm having an annoying difficulty using a webservice written in .Net. Wsdl can be found: http://services.odeontours.com.tr/OdeonWebService.asmx?wsdl

I want to call CategoryList function and its service description can be found here I believe it returns a variable .net DataSet data-type..

I've generated wrapper classes by using wsdl2php. Which can be found here

And the code:

error_reporting(E_ALL);
ini_set('display_errors', 1);
include_once './OdeonWebService.php';

$odeonClient = new OdeonWebService();

$auth = new AuthHeader();
$auth->PartnerID = 434;
$auth->UserName = 'xmlReaderGoral';
$auth->Password = "856UD..";

$catListParams = new CategoryList();

$catListRes = $odeonClient->CategoryList($catListParams)->CategoryListResult;

print var_dump($catListRes);
?>

And it says me:

Fatal error: Uncaught SoapFault exception: [soap:Server] Server was unable to process request. ---> Object reference not set to an instance of an object.

By the way in service description i noticed that i should pass AuthHeader by header. I have no idea how to do it..

What am i doing wrong??

Thanks in advance..

DonkeyKong
  • 808
  • 1
  • 10
  • 24

0 Answers0