From: "NAKAMURA, Hiroshi" Date: 2006-08-07T19:10:08+09:00 Subject: Re: wsdl2ruby and SOAP problems -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, emcconne wrote: > I am new to Ruby and am evaluating it for a project that would replace > and extend existing Perl code. I am using wsdl2ruby to generate a > client stub with associated classes for a web service. Most of the > basic calls more fine but the more complex method calls that take > parameter "anyType" do not work so well. It appears that the type is > not getting set in the SOAP message generated by ruby. However, the > perl code does allow me to set the type (manually by calling > SOAP::Data -> type using SOAP::Lite). Below is the relevant code and > generated messages: [snip] Unfortunately, Driver#generate_explicit_type = true does not work for literal service. I'll look into how I can implement it. No easy way for now. req = SOAP::SOAPElement.new(XSD::QName.new("urn:example.com", "req")) value1 = SOAP::SOAPElement.new("value1", "1") value1.extraattr["xsi:type"] = "xsd:int" req.add(value1) driver.method_call(req) Regards, // NaHi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) iQEVAwUBRNcRYB9L2jg5EEGlAQJCPQf/VLmnYSeaXoUNfYq4fux4Xvb6YP87XdmJ q0A92ljYWbqW08RzmZ8dS/NFUuVjQJq0B8nsSceiRHsAglaSQdnC9s7K1Z5jup2j X3rmldq0HBqy7GyOdcIwAEUP0yFcpdMtF+X+HyrztL3yibI7DFMwmQGi/z2KDm+z xCEtLac8jofWKZPDSxsiv/SaBZVqJT933m/G6J5RbDw6r67Ny4KvX0LpGtzmJu9D JOnnEFrNYxqykXOrY2Nh9lkbC6aYe2/8NQKol0rVwwgkjXp1efNe5Ny7LQObwJ+W 3PqI8/eQ9Axc9IcewB9i70g1wGBl5lhdCkEKntaK5icLwE8bPFv5Ew== =HBYT -----END PGP SIGNATURE-----