[LIP] Ruby + soap4r - Error in setting soap property

"Usha Murali" <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
Hi,
In ruby, while accessing my web service, I get the following error
saying at soap/property file, " bad URI(is not URI?):
#<SOAP::Property:0x2a9642af80>" , I am have updated my gems with
soap4r and http-access2, anyone have faced this problem, Plz shed ur
ideas to overcome this problem,

My code is as follows:
require 'soap/rpc/driver'
require 'soap/wsdlDriver'
require 'cgi'
require 'net/http'
#require 'defaultDriver.rb'
wsdl_url = ARGV.shift
$obj = nil
wsdl_url = 'https://myservice.com/webservice/service?wsdl '
user = "test"
pass = "test123"
#obj  = SOAP::RPC::Driver.new(wsdl_url)
$obj = SOAP::WSDLDriverFactory.new(wsdl_url)

I get this error,
Exception `LoadError' at
/usr/local/lib/ruby/1.8/xsd/xmlparser/xmlparser.rb:10 - no such file
to load -- xml/parser
Exception `LoadError' at
/usr/local/lib/ruby/1.8/xsd/xmlparser/xmlscanner.rb:10 - no such file
to load -- xmlscan/scanner
Set XSD::XMLParser::REXMLParser as XML processor.
importing: https://cert.hub.care360.com/orders/service?wsdl
find property at soap/property
Exception `URI::InvalidURIError' at
/usr/local/lib/ruby/1.8/uri/common.rb:432 - bad URI(is not URI?):
#<SOAP::Property:0x2a9642b020>
/usr/local/lib/ruby/1.8/uri/common.rb:432:in `split': bad URI(is not
URI?): #<SOAP::Property:0x2a9642b020> (URI::InvalidURIError)
        from /usr/local/lib/ruby/1.8/uri/common.rb:481:in `parse'
        from /usr/local/lib/ruby/gems/1.8/gems/http-access-2.0.7/lib/http-access2.rb:46:in
`urify'
        from /usr/local/lib/ruby/gems/1.8/gems/http-access-2.0.7/lib/http-access2.rb:213:in
`set_basic_auth'
        from /usr/local/lib/ruby/1.8/soap/httpconfigloader.rb:56:in
`set_basic_auth'
        from /usr/local/lib/ruby/1.8/soap/httpconfigloader.rb:55:in
`set_basic_auth'
        from /usr/local/lib/ruby/1.8/soap/httpconfigloader.rb:39:in
`set_options'
        from /usr/local/lib/ruby/1.8/wsdl/xmlSchema/importer.rb:61:in `fetch'
        from /usr/local/lib/ruby/1.8/wsdl/xmlSchema/importer.rb:30:in `import'
        from /usr/local/lib/ruby/1.8/wsdl/importer.rb:18:in `import'
        from /usr/local/lib/ruby/1.8/soap/wsdlDriver.rb:124:in `import'
        from /usr/local/lib/ruby/1.8/soap/wsdlDriver.rb:28:in `initialize'
        from test_new.rb:14

Thanks ,
Usha

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.