FreeBMD shows the birth of a James WILES Jun qr 1838 registered Portsea Isalnd (Portsmouth), and onther James WILES reg Mar qr 1871 at Portsea - obviously not your chap.
Another website gives a ref for a James WILES, parents Griffin Fletcher WILES and Mary Ann WILES registered in Middlesex. Unfortunately my subscription does not allow me access to any further info for this record but maybe someone else.........?
Cheers, Judith