Hi,
We are using FNO operations 12.8 web services guide to implement licensing methods. We are implementing the web services in PHP 5.0 and we are facing problem in calling a function that is getFulfillmentCount() and it is returning an error ‘org.xml.sax.SAXException: Invalid element in com.flexnet.operations.webservices. - param0’. The most important thing is we see the same error in calling any function from web services guide.
Any help would be appreciated.
Following is the code to define the input parameters.
--------------------------
<?php
class getFulfillmentCountRequestType {
public $queryParams ;
public function __construct(){
$this->queryParams = new fulfillmentQuery ;
}
}
class fulfillmentQuery {
public function __construct(){
}
}
class fulfillmentsQueryParametersType {
}
class SimpleQuery {
public $value;
public $searchType;
}
$client = new SoapClient(null, array('location' => "http://lw5.ds-international.biz/flexnet/services/LicenseService?wsdl",'uri' => "urn:com.macrovision:flexnet/operations",'trace' => 1));
//print_r($client);
// $client = new SoapClient("http://lw5.ds-international.biz/flexnet/services/LicenseService?wsdl", array('trace' => 1));
$header = new SoapHeader('urn:com.macrovision:flexnet/operations', 'username', 'password');
$client->__setSoapHeaders($header);
$objQ = new getFulfillmentCountRequestType();
// var_dump($client->__getFunctions());
try {
$resp = $client->getFulfillmentCount($objQ);
}
catch (SoapFault $e) {
var_dump($client->__getLastResponseHeaders());
var_dump($client->__getLastResponse());
echo "<Br>";
echo $e->getMessage();
}
?>
------------------------------------------------------------------------------------
Thanks.
We are using FNO operations 12.8 web services guide to implement licensing methods. We are implementing the web services in PHP 5.0 and we are facing problem in calling a function that is getFulfillmentCount() and it is returning an error ‘org.xml.sax.SAXException: Invalid element in com.flexnet.operations.webservices. - param0’. The most important thing is we see the same error in calling any function from web services guide.
Any help would be appreciated.
Following is the code to define the input parameters.
--------------------------
<?php
class getFulfillmentCountRequestType {
public $queryParams ;
public function __construct(){
$this->queryParams = new fulfillmentQuery ;
}
}
class fulfillmentQuery {
public function __construct(){
}
}
class fulfillmentsQueryParametersType {
}
class SimpleQuery {
public $value;
public $searchType;
}
$client = new SoapClient(null, array('location' => "http://lw5.ds-international.biz/flexnet/services/LicenseService?wsdl",'uri' => "urn:com.macrovision:flexnet/operations",'trace' => 1));
//print_r($client);
// $client = new SoapClient("http://lw5.ds-international.biz/flexnet/services/LicenseService?wsdl", array('trace' => 1));
$header = new SoapHeader('urn:com.macrovision:flexnet/operations', 'username', 'password');
$client->__setSoapHeaders($header);
$objQ = new getFulfillmentCountRequestType();
// var_dump($client->__getFunctions());
try {
$resp = $client->getFulfillmentCount($objQ);
}
catch (SoapFault $e) {
var_dump($client->__getLastResponseHeaders());
var_dump($client->__getLastResponse());
echo "<Br>";
echo $e->getMessage();
}
?>
------------------------------------------------------------------------------------
Thanks.