public MedicineCardResponse GetMedicineCard(MedicineCardRequest request) { var okass = SealUtilities.CheckAssertionSignatureNSCheck(request.Security); var err = SealUtilities.ValidateSecurity(request.Security); if (err != null) { throw err; } return(new MedicineCardResponse { MedicineCardResponseStructure = new MedicineCardResponseType { MedicineCardOverviewStructure = new[] { new MedicineCardOverviewStructureType() } } }); }
public MedicineCardResponse_20120101 GetMedicineCard_20120101(MedicineCardRequest_20110101 request) { var dc = OperationContext.Current.IncomingMessageHeaders.FindHeader("Security", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"); var hd = OperationContext.Current.IncomingMessageHeaders[dc]; var okass = SealUtilities.CheckAssertionSignatureNSCheck(request.Security); if (!okass) { throw new InvalidOperationException("signature does not checkout"); } return(new MedicineCardResponse_20120101 { MedicineCardResponseStructure = new MedicineCardResponseType2 { MedicineCardOverviewStructure = new[] { new MedicineCardOverviewStructureType2() } } }); }