From: Payal Patel Date: 2010-12-09T05:09:18+09:00 Subject: Re: soap4r and capitalized wsdl:part names Hi, I am trying to build a SOAP client, in order to generate a soap request from a wsdl. I am using ruby 1.9.2 and soap4r 1.5.8 I have used wsdl2ruby.rb --wsdl inquiry2010V1.wsdl --type client --force Initially I got errors in xml processing that lead me to do changes in a) soap4r-1.5.8\lib\xsd/charset.rb (changed "@internal_encoding = $KCODE" to "@internal_encoding = (RUBY_VERSION.to_f >= 1.9) ? 'UTF8' : $KCODE) b)soap4r-1.5.8\lib\xsd/xmlparser.rb (changes at line #66 -- changed "c.downcase == name" to "c.to_s.downcase == name") c)soap4r-1.5.8\lib\xsd\codegen\gensupport.rb (changed .collect to 'split(/^/).each' After doing these changes wsdltoruby generates 4 classes as in inquiry.wsdl.rb, inquiry.wsdlMappingReistry.rb, inquirywsdlDriver.rb and InquiryServiceClient.rb. My wsdl has certain params in capital case: so the error thrown is as follows: inquiry.wsdl.rb:526: dynamic constant assignment SEMI_ANNUALLY = Recurrence_Enum.new("SEMI_ANNUALLY") ^ The above error is repeated for all the capital params. Also, the ruby files obtained have some string errors (new line character absent) like endend, def xyz Methods.each ,etc. Please guide, if some other files of SOAP4r needs to be updated. -Payal Patel -- Posted via http://www.ruby-forum.com/.