Another problem easy to do by separation of variables. However, BC's on x are definitely required to solve the problem. The assumption of exp[i a x] requires BC's that make sinusoidal solutions in x.
pde = D[T[x, z], x, x] + D[T[x, z], z, z] == 0;
With the BC's you give I add 2 more for x. The ones I chose will give sinusoidal solutions. You, of course can choose others
bc1 = T[0, z] == 0; bc2 = T[1, z] == 0; bc3 = (D[T[x, z], z] /. z -> 0) == 0; bc4 = (D[T[x, z], z] /. z -> 1) == A - B T[x, 1];
Separate T in the form
T[x_, z_] = X[x] Z[z]; pde/T[x, z] // Apart (* D[X[x],x,x]/X[x]+D[Z[z],z,z]/Z[z]==0 *)
One terms is dependent on x, the other z, so each must be equal to a constant.
xeq = D[X[x], x, x]/X[x] == -alpha^2 X[x_] = (X[x] /. DSolve[xeq, X[x], x][[1]]) /. {C[1] -> c1, C[2] -> c2}; zeq = D[Z[z], z, z]/Z[z] == alpha^2 Z[z_] = (Z[z] /. DSolve[zeq, Z[z], z][[1]]) /. {C[1] -> c3, C[2] -> c4} (* c3 E^(alpha z)+c4 E^(-alpha z) *)
From the z BC's, it is obvious we want hyberbolics rather than exponentials.
(Z[z] // ExpToTrig) // Collect[#, {Sinh[alpha z], Cosh[alpha z]}] & (* (c3-c4) Sinh[alpha z]+(c3+c4) Cosh[alpha z] *) Z[z_] = % /. {c3 - c4 -> c3, c3 + c4 -> c4}; (* c3 Sinh[alpha z] + c4 Cosh[alpha z] *)
Apply the BC's
bc1
(* c1 (c3 Sinh[\[Alpha] z] + c4 Cosh[\[Alpha] z]) == 0 *)
From which
c1 = 0 T[x, z] (* c2 Sin[alpha x] (c3 Sinh[alpha z] + c4 Cosh[alpha z])*)
Combine constants
c2 = 1; bc2 (* Sin[alpha] (c3 Sinh[alpha z] + c4 Cosh[alpha z]) == 0 *)
From which
alpha = n Pi
with n required to be
$Assumptions = n \[Element] Integers && n > 0; bc3 (* Pi c3 n Sin[Pi n x]==0 *)
From which
c3 = 0; bc4 // Simplify (* c4 Sin[Pi n x] (B Cosh[Pi n]+Pi n Sinh[Pi n])==A *)
Use orthogonality to solve for c4
Integrate[%[[1]] Sin[n Pi x], {x, 0, 1}] == Integrate[%[[2]] Sin[n Pi x], {x, 0, 1}]; c4 = c4 /. Solve[%, c4][[1]] T[x, z] (*-((2 A ((-1)^n - 1) Sin[Pi n x] Cosh[Pi n z])/(Pi n (B Cosh[Pi n] + Pi n Sinh[Pi n]))) *)
The actual T will be an infinite series in n, but obviously from the form of the solution, the even n terms are 0. In order to not compute the 0 terms we can do the following:
Tn[x_, z_] = (T[x, z] /. n -> 2 m - 1) /. m -> n // Simplify (*(4 A Sin[Pi (2 n-1) x] Cosh[Pi (2 n-1) z])/(Pi (2 n-1) (B Cosh[Pi-2 Pi n]+Pi (2 n-1) Sinh[Pi (2 n-1)]))*)
The general solution is the above summed from n = 1 to infinity. To make a plot:
tn = Function[n, #] &@Tn[x, z];
Assign A and B some values.
A = 1; B = 2; Tterms[k_] := Compile[{x, z}, #] &@Total@tn@Range[k] T = Tterms[50]; Plot3D[T[x, z], {x, 0, 1}, {z, 0, 1}, AxesLabel -> {"x", "y", "T"}]

D[T[x, 0],z]is not correct: you should evaluate in $z=0$ after taking the derivative. This yields0==0and so your error. Apart from this, are you sure about you boundary/initial conditions? Seems to me you are missing some. $\endgroup$DSolve[{D[T[x, z], {x, 2}] + D[T[x, z], {z, 2}] == 0}, T[x, z], {x, z}]) and add the boundary conditions afterwards to identify the constants? $\endgroup$