First search epr cache, and if miss, go discover an EPR over the net. This is the main work horse for WSCs wishing to call WSPs via EPR.
TAS3 configuration object, also used for memory allocation
Session object in whose EPR cache the file will be searched
Service type (usually a URN)
(Optional) If provided, this argument has to match either the ProviderID, EntityID, or actual service endpoint URL.
(Optional) Additional discovery options for selecting the service, query string format
(Optional) The action, or method, that must be invokable on the service
Which matching instance is returned. 1 means first
EPR data structure on success, 0 on failure (no discovery EPR in cache, or not found by the discovery service).