since versions of things matter…what version Natural RPC are you using? If you run a Natural RPC Server on the mainframe, it will show the version level of Natural RPC you are using.
also…on your Natural CALLNAT statement are you specifying direction? That is, you need to use
CALLNAT 'RPC0001W' RPC-COMPLETION (AD=A) RPC-REPORT (AD=O)
so the stub generator knows what direction each field is using.
The error is documented, although probably not helpfu to you! See
http://servline24.softwareag.com/SecuredServices/document/java/exx72150/mac/class_0013.htm#00130218
00130218 rpcCall: invalid length in buffer: , length: , digits:
Explanation The RPC response from the server is not well formed. This may happen when RPC client and RPC server are not compatible. The contains the part of the buffer that should be a length, is the length computed from the buffer part, is the number of digits parsed for the length.
#Mainframe-Integration#EntireX#webMethods