Hello,
yes it’s another ruby-nuby question but i cant find the right docs so I
hope either someone has an answer or can provide links to what i havent
been able to find.
I am trying to call a wsdl web service running on .net server with a
ruby client. I can make the request and with a wiredump I see the SOAP
request and responce XML files, the files are correct but I am not sure
why I can not access the results.
++++++++++++++++++++++++++++++++++++++++
require “rexml/document”
service = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
result = service.GetAnswer(:question=>‘tuition’,:id=>‘64’)
doc = REXML::Document.new result
render_text doc.to_s
++++++++++++++++++++++++++++++++++++++++
this is what I get
++++++++++++++++++++++++++++++++++++++++
“SOAP::Mapping::Object is not a valid input stream. It must be
either a String, IO, StringIO or Source.”
++++++++++++++++++++++++++++++++++++++++
why is the result not an XML string? it appears as if result is empty
eveI have tried converting the result to a sting but it give me another
error suggesting that the result variable is empty
++++++++++++++++++++++++++++++++++++++++
#<REXML::ParseException: malformed XML: missing tag start
Line:
Position:
Last 80 unconsumed characters:
SOAP::Mapping::Object:0x3761048>
+++++++++++++++++++++++++++++++++++++++++
any assistance would be greatly appreciated.
thanks, Arlen Thurber