Rob Janes
unread,Nov 18, 2009, 6:12:22 PM11/18/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to soap4r
looks like the unmarshalling is already done, if you probe into the
SOAP::Mapping::Object ...
rescue SOAP::FaultError => ee
## InvalidLogin, InvalidLocale, NoPermission, RuntimeFault
## ee.detail.__xmlele[0][0] is an XSD::QName object, with
accessors name and namespace
## ee.detail.__xmlele[0][1] is a VMware::VIM25::xxx fault object
vim_fault = ee.detail.__xmlele[0][1]
case vim_fault.class
when VMware::VIM25::InvalidLogin
when VMware::VIM25::InvalidLocale
when VMware::VIM25::NoPermission
when VMware::VIM25::RuntimeFault