Linux and SOAP

(imported topic written by dkalaluhi91)

Greetings all - I have inherited something that was set up, 4 Linux admins ago. Apparently everything was working fine with the SOAP calls w/ v.7 but not post-upgrade. A little background: we use a script, “sync.php” that does a soap call, and collects data from BF so that GLPI can run web reports. Here is the error:

XML parsing error: Element 
'relevanceExpr' is unexpected according to content model of parent element 
'{http://schemas.bigfix.com/Relevance}GetRelevanceResult'. Expecting: 
{http:
//schemas.bigfix.com/Relevance}relevanceExpr. Line 2, Character 427BigFixSync: Sync failed on batch 1 of 50. Error: XML parsing error: Element 
'relevanceExpr' is unexpected according to content model of parent element 
'{http://schemas.bigfix.com/Relevance}GetRelevanceResult'. Expecting: 
{http:
//schemas.bigfix.com/Relevance}relevanceExpr. Line 2, Character 427

and here is the code:

<?php   function getRelevanceResult($relevanceExpr=
'') 
{ include(
'config.webreports.inc.php');   $client = 

new SoapClient(NULL, array( 
"location" => $webreports_location, 
"uri"      => 
"http://schemas.bigfix.com/Relevance", 
"style"    => SOAP_RPC, 
"use"      => SOAP_ENCODED, 
"trace"          => 1));   

try 
{ $results = ($client->__soapcall( 
/* SOAP Method Name */ 
"GetRelevanceResult", 
/* Parameters */ array( 

new SoapParam($relevanceExpr, 
"relevanceExpr"), 

new SoapParam($webreports_username, 
"username"), 

new SoapParam($webreports_password, 
"password") ), array( 
/* SOAP Method Namespace */ 
"uri" => 
"http://schemas.bigfix.com/Relevance", 
/* SOAPAction HTTP Header for SOAP Method */ 
"soapaction" => 
"http://schemas.bigfix.com/Relevance/GetRelevanceResult")). 
"\n"); 
} 

catch (Exception $e) 
{ 

return 
"ERROR\n\n\n". $e->getMessage(); 
}

I have checked the ‘config.webreports.inc.php’ file, and changed the reports address from http://reportsserver/webreports to http://reportsserver/webreports?wsdl but continue to get the same error. If somebody could point me in the right direction here, that will be greatly appreciated!

Thanks in advance,

Dave