private static void queryProduct(IoTDAClient client) { ShowProductRequest req = new ShowProductRequest { ProductId = "5ea4f9fdda687b03370ad348", InstanceId = "1a7ffc5c-d89c-44dd-8265-b1653d951ce0" }; try { var resp = client.ShowProduct(req); Console.WriteLine(resp.HttpStatusCode); Console.WriteLine(JsonConvert.SerializeObject(resp)); } catch (RequestTimeoutException requestTimeoutException) { Console.WriteLine(requestTimeoutException.ErrorMessage); } catch (ServiceResponseException clientRequestException) { Console.WriteLine(clientRequestException.HttpStatusCode); Console.WriteLine(clientRequestException.ErrorCode); Console.WriteLine(clientRequestException.ErrorMsg); } catch (ConnectionException connectionException) { Console.WriteLine(connectionException.ErrorMessage); } }