Afin d’effectuer une recherche parmi tous les activités selon des critères de recherche, le schéma suivant doit être utilisé :
<?xml version= 1.0 encoding= utf-8 ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<cApiActivitySearch>
<CieID></CieID>
<ApiID></ApiID>
<Title ></ Title >
<DateFrom> </DateFrom >
<DateTo ></ DateTo >
<ActivityType></ ActivityType >
<UserID></ UserID >
</cApiActivitySearch >
</soap:Body>
</soap:Envelope>
Le schéma retourné sera le suivant. Il y aura autant de nœuds ActivityMatch qu’il y a de résultats et le nœud nbrResults contiendra le nombre de résultats.
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<cApiActivitySearch>
<Result>
<ResultState></ResultState>
<ResultDetail ></ResultDetail >
</Result>
<CieID></CieID>
<ApiID></ApiID>
<Title ></ Title >
<DateFrom> </DateFrom >
<DateTo ></ DateTo >
<ActivityType></ ActivityType >
<UserID></ UserID >
<nbrResults></nbrResults>
<ActivitySearch>
<ActivityMatch ActivityID="" Title="" Hyperlink=”” />
<ActivityMatch ActivityID="" Titile="" Hyperlink=”” />
</ActivitySearch >
</cApiActivitySearch>
</soap:Body>
</soap:Envelope>