title: How to create Domain on Jasper via PHP Client
body: <p>My problem is:</p>
  
  <p>i've got the PHP Client <a href="http://community.jaspersoft.com/wiki/php-client-sample-code#About_the_Class" rel="nofollow">http://community.jaspersoft.com/wiki/php-client-sample-code#About_the_Class</a> from the Jasper Community.
  I want to add a Domain with PHP to the Jasper Repository and i've got the needed data in an .xml, like label etc.
  In this PHP Client i have to use the class SemanticLayerDataSource to create a domain.
  This class got a public variable schema. 
  But i can't find what this schema needs to work and add an correct domain to repository. There is not info neither on the webside nor in the class.</p>
  
  <pre><code>$semLayer = new SemanticLayerDataSource();
  $semLayer-&gt;schema = ?????
  $semLayer-&gt;label = (string)$xml-&gt;label; //SimpleXml
  .
  .
  .
  </code></pre>
  
  <p>Which Data needs schema? An array, a resource or something else? Thank you.
  Also a code sample with PHP Client would be really good, cause the documentation is not that good in this point.</p>
  
  <p>Edit: I tried to create a xml as a local file a set for schema the uri of this xml. To create the xml i used this: <a href="http://community.jaspersoft.com/wiki/php-client-sample-code#Creating_Binary_Resources" rel="nofollow">http://community.jaspersoft.com/wiki/php-client-sample-code#Creating_Binary_Resources</a>
  I am able to create a domain, but AdHoc views on this domain doesn't work. I get a null exception from jasper.</p>