You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by John Martin <pb...@gmail.com> on 2007/04/26 04:54:53 UTC

Descrepency with parameter order for services implimenting interfaces

We are in the process of implementing an XML-RPC client to call ofBiz and
noticed a strange behavior and didn't know if anybody would consider this a
bug?

If you look at the authenticationInterface interface, you'll notice that the
userLogin and locale appear at the bottom of the argument list.  The
userLogin service which implements the interface, the userLogin and locale
parameters are the first arguments.

This normally isn't a problem since typically the service is invoked via
mapped arguments but in the case of XML-RPC, it can be invoked by argument
position.  Programmers coding against the Interface will run into problems
because of this behavior.  One would expect that the argument list of the
service implementing the interface would match.

Any thoughts?

Thanks,

John