import ballerinax/mi;
@mi:ConnectorInfo {}
public function f1() returns xml {
return xml `<o>4</o>`;
}
@mi:ConnectorInfo {}
public function f2() returns xml {
return xml `<merge>
<o>4</o>
</merge>`;
}
@mi:ConnectorInfo {}
public function f3() returns xml {
return xml `<merge>
<o>4</o>
</merge>
<merge>
<o>5</o>
</merge>`;
}
When these functions are used within the MI sequence different kinds of results are given.
Consider an MI resource definition like following,
<res xmlns="http://ws.apache.org/ns/synapse"/>
In the first case the outermost xml tags are removed and in the second case these tags are not removed. For the third case there is not output.
Steps to Reproduce
Use the ballerina code given here and create an ballerina connector for MI.
After that use the MI API given here to create a API.
Then invoke the resources in the API to observe the outputs.
Description
Consider the following ballerina functions,
When these functions are used within the MI sequence different kinds of results are given.
Consider an MI resource definition like following,
The output for the functions are in the following way,
<res xmlns="http://ws.apache.org/ns/synapse">4</res>
<res xmlns="http://ws.apache.org/ns/synapse"/>
In the first case the outermost xml tags are removed and in the second case these tags are not removed. For the third case there is not output.Steps to Reproduce
Use the ballerina code given here and create an ballerina connector for MI. After that use the MI API given here to create a API. Then invoke the resources in the API to observe the outputs.
Version
v0.1.2
Environment Details (with versions)
No response