verifyUserExistence SOAP Example

Client SOAP Request

The Moria2-enabled service asks Moria2 whether the user with the username somebody@my.org exists.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<SOAP-ENV:Body>
		<m:verifyUserExistence xmlns:m="http://v2_0.webservices.moria.feide.no" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
			<username xsi:type="xsd:string">somebody@my.org</username>
		</m:verifyUserExistence>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Moria2 SOAP Reply

Moria2 has checked the service's authorization data and found the above request to be valid. In this case, the user somebody@my.org could not be found.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<soapenv:Body>
		<ns1:verifyUserExistenceResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://v2_0.webservices.moria.feide.no">
			<ns1:verifyUserExistenceReturn xsi:type="xsd:boolean">false</ns1:verifyUserExistenceReturn>
		</ns1:verifyUserExistenceResponse>
	</soapenv:Body>
</soapenv:Envelope>