------art_5422_80296.1188762532647
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Have you tried wsdl2ruby script, this will create you a fully functioning
ruby wsdl client ?

On 8/31/07, Marcin Tyman <m.tyman / interia.pl> wrote:
>
> Hi guys,
>
> Here is a part of my code (part o my class):
>
>       @soaps<<SOAP::WSDLDriverFactory.new("http://#{@Address
> }:#{@wsPort}/#{wsdl}").create_rpc_driver()
>
> def method_missing(m,*args)
>   @soaps.each do |soap|
>       begin
>       result  oap.send("#{m}",*args)
>         return result
>       rescue NoMethodError
>       end
>    end
>    raise NoMethodError
>    puts m
> end
>
> I invoke soap.send by passing #{m} (as a WS method name) and *args are
> arguments of the method which are ruby primitives (int, float, string
> etc.)
> But the problem is that WebServices will change and instead of
> primitives their methods will get WSDL objects i.e. like that:
> <complexType nameroup">
> <sequence>
> <element named" typesd:int"/>
> <element namenherited" typesd:boolean"/>
> <element nameame" nillablerue" typeoapenc:string"/>
> <element namearentGroupId" typesd:int"/>
> <element nameriority" typesd:int"/>
> <element nameoleId" typesd:int"/>
> </sequence>
> </complexType>
>
>
> How to create such object in ruby. What library can I use?
>
>
> Any help will be helful
> Thanks in advance
> --
> Posted via http://www.ruby-forum.com/.
>
>

------art_5422_80296.1188762532647--