I've got a .net web service that I need to drive from ruby. I
*thought* I had it working, using the soap/wsdlDriver library, but it
looks like I was wrong.
Is there a beginner-level HOWTO or other such hand-holdy document that
I could read to start getting my bearings w/this stuff? I've had bad
luck trying to find one on ruby-doc and google. The little bit in
pickaxe 2 is not working for me.
I've got a .net web service that I need to drive from ruby. I
*thought* I had it working, using the soap/wsdlDriver library, but it
looks like I was wrong.
Is there a beginner-level HOWTO or other such hand-holdy document that
I could read to start getting my bearings w/this stuff? I've had bad
luck trying to find one on ruby-doc and google. The little bit in
pickaxe 2 is not working for me.
Sorry for that. Soap4r distribution package at http://dev.ctor.org/download/ contains bunch of examples and no document
by me. English is the most complex and headachy language for me. (Do
not ask me what languages I'm comparing with.)
Posting about "pickaxe 2 is not working" to soap4r ML (or here) may
solve the problem.
proxobj = SOAP::WSDLDriverFactory.new(WSDL_URL).create_rpc_driver
proxobj.sendGeneralMessageRPC("pardee.r@ghc.org", "subject: sent from
script", "this was sent from a ruby script.", WSGUID)
Which, when submitted results in:
c:/ruby/lib/ruby/1.8/wsdl/operation.rb:67:in `outputparts': undefined
method `find_message' for nil:NilClass (NoMethodError)
from c:/ruby/lib/ruby/1.8/wsdl/soap/methodDefCreator.rb:72:in
`collect_documentparameter'
from c:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:132:in `create_param_def'
from c:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:101:in `add_operation'
from c:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:96:in `each'
from c:/ruby/lib/ruby/1.8/xsd/namedelements.rb:57:in `each'
from c:/ruby/lib/ruby/1.8/xsd/namedelements.rb:57:in `each'
from c:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:96:in `add_operation'
from c:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:40:in `create_rpc_driver'
from C:/Documents and Settings/pardre1/Desktop/DelMe.rb:5
Here is the WSDL (hopefully this will come through--I'm posting via
google groups)
Thanks. Hmm. No operation definition in Send method... It should
intend to one-way operation.
Unfortunately current soap4r does not support one-way operation. Do you
know what HTTP response is expected for "Send" operation you are
calling? HTTP-200(OK) response with empty body? Or SOAP Envelope with
empty SOAPBody?
You seem to use ASP.NET at server side so I think you can browse sample
request wiredump and sample response wiredump by accessing
ExceptionMailer.asmx ...
Okay--I've resolved this by taking the one-way attributes off the 2
webmethods that had them. Looks like it's working fine now. Thanks
for the pointer!