Slit and stuff the chicken: Cut a deep slit along one side of each breast without slicing right through, then open it out like a book. Season the inside with salt and pepper. Lay 2 slices of ham and a quarter of the Gruyère on one side of each breast, keeping the filling at least 1/2 inch from the edges so it cannot escape. Fold the breast closed to enclose the filling and press the edges together gently with your fingers.
Wrap and chill: Wrap each stuffed breast tightly in plastic wrap, twisting the ends to hold its shape like a sausage. Chill in the fridge for 1 to 2 hours until firm. This is the step that stops the filling falling out during coating and cooking — cold cheese does not melt and leak while you bread the chicken. In a hurry? Put the wrapped breasts in the freezer for 30 minutes instead; that firms them up just as well.
Set up the breading station: Preheat the oven to 350°F. Line up three shallow bowls or plates: seasoned flour in the first, the beaten eggs whisked with the soy sauce in the second, and the panko in the third. Keep one hand for the dry bowls and one for the egg bowl if you can — it keeps the crumbs from clumping on your fingers and keeps the coating even.
Bread the chicken: Unwrap the chilled breasts. Coat each one in flour and shake off the excess, dip it in the egg so it is covered all over, then press it firmly into the panko, turning it so every side is coated. Lay the coated breast between two sheets of parchment paper and roll gently with a rolling pin to press the crumbs right into the meat so they stay on in the pan. Rest the breaded breasts for 5 to 10 minutes so the egg sets and the coating firms up.
Pan-fry until golden: Heat the olive oil in a large ovenproof skillet over medium-high heat. When the oil shimmers, lay the breaded chicken in the pan in a single layer — do not crowd it or the crumbs will steam instead of crisping. Fry for 2 to 3 minutes on each side until the panko is deep golden brown. Work in two batches if your pan is small; a crowded pan is the fastest way to a soggy crust.
Finish in the oven: Transfer the skillet to the oven and cook for 12 to 15 minutes, until the chicken is cooked through and the cheese inside has melted. The breast should feel firm when pressed, and an instant-read thermometer should read 165°F at the thickest part. The two-stage cooking is what makes this work: the pan gives you the crust, the oven gives you the melt, and neither step has to do both jobs.
Rest and serve: Rest the chicken for 5 minutes before slicing on the diagonal. The melted Gruyère should ooze from the center when you cut through. Scatter with chopped parsley and serve right away with steamed green beans and mashed potatoes, or with a simple green salad if you want something lighter.