From: haakon tullerusk Date: 2006-03-01T18:59:07+09:00 Subject: Re: wsdl problem Hi! The line smsId =(???, 'some_nr', 'some_string', 'some_message') was supposed to look like: smsId = sendSms(???, 'some_nr', 'some_string', 'some_message') The first argument is a EndUserIdentifierObject? eu = EndUserIdentifier('what_value?') Geoff Lane wrote: > eui = EndUserIdentifier.new(some_value) - not sure what value is > intended, but your service definition should tell you that? From the wsdl file? how? > > > I found that there are a lot of improvements in the latest Subversion > code over the last release. This is especially true with Document > Literal service support. So, you might want to try that. > > The other thing I found using SOAP4R is that the wsdl2ruby didn't always > behave well. I used the xsd2ruby to generate classes, but then used > those classes in some manually constructed code. > > soap = > SOAP::WSDLDriverFactory.new('http://example.com/services/ContactsService?WSDL').create_rpc_driver > soap.generate_explicit_type = true > soap.wiredump_dev = STDOUT if $DEBUG > result = soap.GetContacts(ContactsRequest.new()) > result.contacts.each { |c| print_contact(c) } > > > The soap.wiredump_dev = STDOUT will print out all of the SOAP messages > to standard output which is really nice for debugging. If I use soap.wiredump I get the following error from the axis server: #: java.lang.IllegalArgumentException: java.lang.ClassCastException@cc17f1 (SOAP::FaultError) --haakon -- Posted via http://www.ruby-forum.com/.