You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data-type XML element names used by ConvertTo-XmlRpcType aren't spec-compliant, in that they start with a capital letter when they should all be all-lowercase (e.g. <String> instead of <string>), and <Int32> should be <int> (base64 isn't covered by this module).
As a stopgap, you can employ the following workaround: correct the problem in a post-processing step; e.g.:
# Sample call$result=ConvertTo-XmlRpcMethodCall-Name LJ.XMLRPC.getevents @{
int=42double=3.14boolean=$truedate=Get-Datearray='one & two',3
}
# Post-process the results to make the data-type element# names conform to the spec.# ('Double' -> 'double', ..., and 'Int32' -> 'int')
[regex]::Replace(
$result,'(</?)([A-Z]\w+)',
{
param($m)
$m.Groups[1].Value + ($m.Groups[2].Value.ToLower() -replace'32$')
}
)
The text was updated successfully, but these errors were encountered:
The data-type XML element names used by
ConvertTo-XmlRpcType
aren't spec-compliant, in that they start with a capital letter when they should all be all-lowercase (e.g.<String>
instead of<string>
), and<Int32>
should be<int>
(base64
isn't covered by this module).As a stopgap, you can employ the following workaround: correct the problem in a post-processing step; e.g.:
The text was updated successfully, but these errors were encountered: