Posted By

patriksvenssonmpsbroadbandcom on 05/18/11


Tagged


Versions (?)

Advanced PropertiesFilterParameters PHP


 / Published in: PHP
 

  1. <?php
  2. $propParam->PropertyName = "Date";
  3. $propParam->PropertyMatchString = "17/05/2011";
  4.  
  5. $obj->SessionContext = $sessionContext;
  6. $obj->ServiceID = "419";
  7. $obj->MaxResult ="24";
  8. $obj->StartPos = "0";
  9. $obj->MaxResult = "10";
  10. $obj->SearchString = 'Idir';
  11. $obj->SortOption= $sortOption;
  12. $obj->PropertiesFilterParameters = array ($propParam);
  13. $obj->PropertiesFilter ="%1";
  14.  
  15. //Ensure that the array key is exactly the same as the expected parameter name declared in the webservice.
  16. $myParameter = array('parameters'=>$obj);
  17.  
  18. //Create a SOAP client
  19. $client = new SoapClient("http://cs2.acme.com/ContentService.svc?wsdl",
  20. array('location' => "http://cs2.acme.com/ContentService.svc/basic"));
  21.  
  22. $findContentResponse = $client->FindContent($myParameter);
  23.  
  24. print_r($findContentResponse);
  25. ?>

Report this snippet  

You need to login to post a comment.