I have used WSDL2WS.sh to generate RPG stubs.
The err message I'm intressted of is never returned from stub_op_getxxxxxOp(WsStub:Input:Result) in the parameter.
Well it is partial returned in WsStub.excString (2048 alpha)
Ive made an ugly work around in stub_getxxxxxPortType_ExcH@ and removed
that caused the err string to be stripped at the first null.
g_excString@ = %str(excString@:2048);
Instead I return the complete excString@ (including nulls) from stub_getxxxxxPortType_ExcH@ that includes the backend error message.
But I hope there is an more correct way to do this, please tell if you know.