Open prakanth97 opened 4 months ago
Description:
@xmldata:Namespace {prefix: "wsa", uri: "http://www.w3.org/2005/08/addressing"} type Wsa_ReplyTo record { @xmldata:Namespace {prefix: "wsa", uri: "http://www.w3.org/2005/08/addressing"} string Address; }; @xmldata:Namespace{prefix: "htng", uri: "http://htng.org/PWSWG/2007/02/AsyncHeaders"} type Htng_ReplyTo record { @xmldata:Namespace {prefix: "htng", uri: "http://htng.org/PWSWG/2007/02/AsyncHeaders"} string Address; }; @xmldata:Name {value: "soap"} type Soap record { (Htng_ReplyTo|Wsa_ReplyTo)[] ReplyTo; }; public function main() returns error? { Soap j = { ReplyTo: [ <Wsa_ReplyTo>{Address: "http://www.w3.org/2005/08/addressing/role/anonymous"}, <Htng_ReplyTo>{Address: "http://demo5199745.mockable.io/post/"} ] }; xml val = check xmldata:toXml(j); io:println(val); }
Output is wrong:
<soap> <ReplyTo>{"Address":"http://www.w3.org/2005/08/addressing/role/anonymous"}</ReplyTo> <ReplyTo>{"Address":"http://demo5199745.mockable.io/post/"}</ReplyTo> </soap>
Steps to reproduce: 0.1.1
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
Related https://github.com/ballerina-platform/ballerina-library/issues/6596
Description:
Output is wrong:
Steps to reproduce: 0.1.1
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):