Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Are parameters passed by name

Q

I am not aware of the SOAP spec, but I though that all parameters are passed by name, isn't it?

A

By position.

According to SOAP Encoding spec. defined in SOAP/1.1 section 5, accessor of struct is defined by its name (not position). But according to SOAP RPC binding spec. defined in SOAP/1.1 section 7,

  • A method response is modelled as a struct.
  • The method response is viewed as a single struct containing an accessor for the return value and each [out] or [in/out] parameter. The first accessor is the return value followed by the parameters in the same order as in the method signature. (except from SOAP/1.1 section 7.1)

So, addMethod is defined in rpcRouter.rb which depends rpcUtils.rb. Without rpcUtils.rb, you must treat SOAPStruct by its name.