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

Ticket #375 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

`any2soap': wrong number of arguments (2 for 3)

Reported by: user Assigned to: nahi
Priority: highest Milestone: 1.5.7
Component: wsdl4r Version: 1.5
Keywords: any2soapm, argumenterror Cc:

Description

Invoking a service fails in current repository version (1877) and earlier versions. In version 1.5.6 and till some repository version the following code was working:

wsdl = ('http://testserver:8000/active-bpel/services/AnLTService?wsdl')
factory = SOAP::WSDLDriverFactory.new(wsdl)
service = factory.create_rpc_driver
service.OperationName('x')

But now it prints the following error:

C:/InstantRails/ruby/lib/ruby/1.8/soap/mapping/wsdlliteralregistry.rb:41:in `any2soap': wrong number of arguments (2 for 3)
(ArgumentError)
        from C:/InstantRails/ruby/lib/ruby/1.8/soap/mapping/wsdlliteralregistry.rb:41:in `obj2soap'
        from C:/InstantRails/ruby/lib/ruby/1.8/soap/mapping/mapping.rb:131:in `_obj2soap'
        from C:/InstantRails/ruby/lib/ruby/1.8/soap/mapping/mapping.rb:43:in `obj2soap'
        from C:/InstantRails/ruby/lib/ruby/1.8/soap/mapping/mapping.rb:524:in `protect_mapping'
        from C:/InstantRails/ruby/lib/ruby/1.8/soap/mapping/mapping.rb:502:in `protect_threadvars'
        from C:/InstantRails/ruby/lib/ruby/1.8/soap/mapping/mapping.rb:518:in `protect_mapping'
        from C:/InstantRails/ruby/lib/ruby/1.8/soap/mapping/mapping.rb:42:in `obj2soap'
        from C:/InstantRails/ruby/lib/ruby/1.8/soap/rpc/proxy.rb:491:in `request_rpc_lit'
         ... 6 levels...
        from (eval):6:in `numberOfPermitsRequest'
        from C:/InstantRails/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:117:in `__send__'
        from C:/InstantRails/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:117:in `NumberOfPermitsRequest'
        from test-header:47

Change History

07/05/07 22:12:15 changed by user

oops, the invoked operation (as error message shows) was:

service.NumberOfPermitsRequest(5)

07/06/07 10:28:09 changed by user

  • priority changed from normal to highest.
  • milestone set to 1.5.7.

Thanks! I'll fix it soon.

07/07/07 23:37:12 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

(In [1878]) * follow the signature change in [1871]. closes #375.