XML experimental support #17
noclue
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Opt-in SOAP/XML transport (xml feature) and examples consolidation
This release adds an experimental, opt-in SOAP/XML path for the core VIM APIs so clients can talk to targets (for example ESXi) where the VI JSON is not available, while keeping JSON as the default and preserving the existing public surface aside from a single builder addition. The examples workspace is simplified: shared
connectand the formermacro_examplesbinaries live undersnippets, andutils/macro_examplesare removed as separate members.What changed
Library (
vim_rs)xmlandClientBuilder::transport(TransportMode)withJson(default),Soap, andAuto.TransportMode::Autotries the vCenter Hello System JSON API first, then falls back to SOAP/XML when that API is missing (enabling direct ESXi use cases).client.api_release()is no longer a negotiated capability signal on that path;service_content().about.api_versionshould be used for server capability decisions.xmlis enabled: roughly +500 KB release binary size and ~30–40% longer debug builds; default (feature off) matches prior behavior and costs.xmlenabled: manual polymorphic JSON deserialization requires_typeNamebefore subtype-specific fields.Known limitations (XML)
tracelogs onvim_rsplus request/response captures help debug failures.Examples
snippets; addsnippets::connect(including optionalVIM_PROTOCOL:auto/json/soapwhere applicable).utilsandmacro_examplesworkspace packages; run examples withcargo run -p snippets --bin <name>fromexamples/(seeexamples/README.md).Documentation
README.mdandCHANGELOG.mdupdated to describe transport selection, caveats, and examples layout.This discussion was created from the release XML experimental support.
Beta Was this translation helpful? Give feedback.
All reactions