From: Bill <bill.gilb...@pacbell.net>
Date: Thu, 1 May 2008 15:59:59 -0700 (PDT)
Local: Thurs, May 1 2008 6:59 pm
Subject: Re: getting started, ruby/soap/vmware-Lab Manager
I learned that I needed to create a header-handler.
Here's the code that got past the missing authorization header problem... require 'rubygems' gem 'soap4r' require 'defaultDriver.rb' require 'soap/header/simplehandler' class ClientAuthHeaderHandler < SOAP::Header::SimpleHandler
endpoint_url = nil
obj.options['protocol.http.ssl_config.verify_mode'] =
puts obj.listConfigurations(nil)
On Apr 30, 5:24 pm, Bill <bill.gilb...@pacbell.net> wrote:
> I'm stuck trying to understand a "Missing authorization header" error
> when I try to access a VMware SOAP service using Ruby. > First I fetched the wsdl from our Lab Manager machine to my local
> obj.optionshttp://'protocol.http.ssl_config.verify_mode' =
> I'll get back to certificates later (I tell myself), but now I've
> SOAPAction: "http://vmware.com/labmanager/ListConfigurations"
> make nervous. I found a class called AuthenticationHeader, but I can't
> //**
> But I can't figure out how to translate that to the Ruby code
> Here's the program...
> #!/usr/bin/env ruby
> obj.optionshttp://'protocol.http.ssl_config.verify_mode' =
> Here's the request/response trace.
> = Request
> ! CONNECT TO x.y.com:443
> <?xml version="1.0" encoding="utf-8" ?>
> = Response
> HTTP/1.1 500 Internal Server Error
> <?xml version="1.0" encoding="utf-8"?><soap:Envelope
> : Missing authorization header (SOAP::FaultError) You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||