The RegistryResponse object is returned by the ReferralNet service as a result of a method invocation, it does not throw SOAP faults other than serialisation errors if the WSDL specification is not followed correctly. The status attribute reflects the context of the registry response, the value of "Failure" denotes an exception and is normally always accompanied by a RegistryErrorList object that parents 1..n RegistryError objects.

There are two different types of status values, these being Success and Failure.

An example of a successful response from the service.

<ns3:RegistryResponse status="Success" xmlns:ns3="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"></ns3:RegistryResponse>

An example of a service response that was unsuccessful due to invalid security credentials being supplied.

<ns3:RegistryResponse status="Failure" xmlns:ns3="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0">
      <ns3:RegistryError codeContext="Invalid credentials supplied." errorCode="AuthenticationException" severity="Error"></ns3:RegistryError>

There may be more than one RegistryError returned within the parent RegistryErrorList so it is always best to enumerate the collection if status equals Failure or Warning.

There are two types of severity:

1. Error
2. Warning
dev/registry-response.txt · Last modified: 2009/01/20 13:24 by timc