Esempio n. 1
0
        public InvokeOperationResponse InvokeOperation(InvokeOperationRequest request)
        {
			Platform.CheckForNullReference(request, "request");
			Platform.CheckMemberIsSet(request.ServiceContractName, "ServiceContractName");
			Platform.CheckMemberIsSet(request.OperationName, "OperationName");
			Platform.CheckMemberIsSet(request.RequestJsml, "RequestJsml");

        	string responseJsml = ShimUtil.InvokeOperation(
				request.ServiceContractName, request.OperationName, request.RequestJsml.Value);

			InvokeOperationResponse response = new InvokeOperationResponse();
			response.ResponseJsml = new JsmlBlob(responseJsml);
			return response;
        }
Esempio n. 2
0
			public string InvokeOperation(string serviceContractName, string operationName, string requestJsml)
			{
				string responseJsml = null;
				Platform.GetService<IJsmlShimService>(
					service =>
					{
						var request = new InvokeOperationRequest(serviceContractName, operationName, new JsmlBlob(requestJsml));
						responseJsml = service.InvokeOperation(request).ResponseJsml.Value;
					});
				return responseJsml;
			}