From: nkb Date: 2004-09-22T15:40:01+09:00 Subject: Re: soap4r. I just dont get it. Thanks for the prompt reply. client.generate_explicit_type statement generate an error undefined method 'generate_explicit_type=' for # (NoMethodError) So I commented it out but still receives the same error #: Fault occurred --> System.Xml.XmlElement (SOAP::FaultError) I wonder if I should just skip the soap4r and simply use ruby to do a simple http post with my own soap content? Would this be not adviable? Many thanks!! > client.add_method_with_soapaction('getData', > "soapactionthattheserverrequires", 'DataID', "inputstring") > client.generate_explicit_type = false > > p client.getData(5, ["string1", "string2"]) > > It should send a request as follows: > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > 5 > > string1 <== XXX > string2 <== XXX > > > > > > The server may not accept the request because of the element name at > XXX part above does not match with expected one (). Then you > need WSDL. > > Regards, > // NaHi > >