Fix broken envelope test.
This commit is contained in:
parent
656e810e54
commit
16c9ddb4ff
@ -157,13 +157,13 @@ func (a *Action) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
|||||||
"SOAP action arg does not support non-empty namespace, got %q",
|
"SOAP action arg does not support non-empty namespace, got %q",
|
||||||
token.Name.Space)
|
token.Name.Space)
|
||||||
}
|
}
|
||||||
key := token.Name.Local
|
key := reflect.ValueOf(token.Name.Local).Convert(keyType)
|
||||||
value := reflect.New(valueType)
|
value := reflect.New(valueType)
|
||||||
if err := d.DecodeElement(value.Interface(), &token); err != nil {
|
if err := d.DecodeElement(value.Interface(), &token); err != nil {
|
||||||
return fmt.Errorf(
|
return fmt.Errorf(
|
||||||
"SOAP action arg %q errored while decoding: %w", key, err)
|
"SOAP action arg %q errored while decoding: %w", key, err)
|
||||||
}
|
}
|
||||||
argsValue.SetMapIndex(reflect.ValueOf(key), reflect.Indirect(value))
|
argsValue.SetMapIndex(key, reflect.Indirect(value))
|
||||||
case xml.Comment:
|
case xml.Comment:
|
||||||
case xml.ProcInst:
|
case xml.ProcInst:
|
||||||
return fmt.Errorf(
|
return fmt.Errorf(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user