public manageProviderOrganisationResult ManageProviderOrganisation(manageProviderOrganisation manageProviderOrganisation)
        {
            manageProviderOrganisationResponse response = null;

            try
            {
                var sig = new SignatureContainerType();

                var timestamp = new TimestampType()
                {
                    created          = DateTime.Now,
                    expires          = DateTime.Now.AddDays(30),
                    expiresSpecified = true
                };

                response = providerSearchForProviderOrganisationClient.manageProviderOrganisation(ref _product,
                                                                                                  ref sig, timestamp, _user, manageProviderOrganisation);
            }
            catch (Exception ex)
            {
                // Catch generic FaultException and call helper to throw a more specific fault
                // (FaultException<ServiceMessagesType>
                FaultHelper.ProcessAndThrowFault <ServiceMessagesType>(ex);
            }


            if (response != null && response.manageProviderOrganisationResult != null)
            {
                return(response.manageProviderOrganisationResult);
            }
            else
            {
                throw new ApplicationException(Properties.Resources.UnexpectedServiceResponse);
            }
        }
Ejemplo n.º 2
0
 public retrieveSearchForProviderIndividualRequest(nehta.mcaR50.ProviderBatchSearchForProviderIndividual.retrieveSearchForProviderIndividual retrieveSearchForProviderIndividual, ProductType product, TimestampType timestamp, SignatureContainerType signature, QualifiedId user, QualifiedId hpio)
 {
     this.retrieveSearchForProviderIndividual = retrieveSearchForProviderIndividual;
     this.product   = product;
     this.timestamp = timestamp;
     this.signature = signature;
     this.user      = user;
     this.hpio      = hpio;
 }
Ejemplo n.º 3
0
 public nehta.mcaR50.ProviderBatchSearchForProviderIndividual.retrieveSearchForProviderIndividualResponse retrieveSearchForProviderIndividual(nehta.mcaR50.ProviderBatchSearchForProviderIndividual.retrieveSearchForProviderIndividual retrieveSearchForProviderIndividual1, ref ProductType product, TimestampType timestamp, ref SignatureContainerType signature, QualifiedId user, QualifiedId hpio)
 {
     nehta.mcaR50.ProviderBatchSearchForProviderIndividual.retrieveSearchForProviderIndividualRequest inValue = new nehta.mcaR50.ProviderBatchSearchForProviderIndividual.retrieveSearchForProviderIndividualRequest();
     inValue.retrieveSearchForProviderIndividual = retrieveSearchForProviderIndividual1;
     inValue.product   = product;
     inValue.timestamp = timestamp;
     inValue.signature = signature;
     inValue.user      = user;
     inValue.hpio      = hpio;
     nehta.mcaR50.ProviderBatchSearchForProviderIndividual.retrieveSearchForProviderIndividualResponse1 retVal = ((nehta.mcaR50.ProviderBatchSearchForProviderIndividual.SearchForProviderIndividualBatchAsyncPortType)(this)).retrieveSearchForProviderIndividual(inValue);
     product   = retVal.product;
     signature = retVal.signature;
     return(retVal.retrieveSearchForProviderIndividualResponse);
 }
Ejemplo n.º 4
0
 public retrieveSearchForProviderIndividualResponse1(nehta.mcaR50.ProviderBatchSearchForProviderIndividual.retrieveSearchForProviderIndividualResponse retrieveSearchForProviderIndividualResponse, ProductType product, SignatureContainerType signature)
 {
     this.retrieveSearchForProviderIndividualResponse = retrieveSearchForProviderIndividualResponse;
     this.product   = product;
     this.signature = signature;
 }