Signmessagewithprivkey result is different than txinwitness

I’m studying segwit and I’m doing some experiment in testnet. I create a raw transaction with P2SH address. My Transaction data without signature is: 0200000001faf19017fe7e20747535ac41009922e4beb76e17a7fd5423bc60e75fbc8381c40000000000ffffffff01606b042a0100000017a914b63007b51b936175644dcf654f77c528e35f01178700000000 that’s my message to sign, instead to use signrawtransactionwithkey I try to use signmessagewithprivkey and I expect the signature that I can find in txwitness field (first row). signmessagewithprivkey return…

Details