mulesoft

How do you convert SQL Server SELECT into XML in Mule 4?

为君一笑 提交于 2021-01-28 20:23:07
问题 How can I convert the following SQL output into XML using Dataweave in Mule 4? SELECT s.RefId ,s.LocalId ,s.StateProvinceId ,s.SchoolName ,e.Email ,e.EmailType FROM SchoolInfo s LEFT OUTER JOIN SchoolEmail e ON e.SchoolRefId = s.RefId WHERE s.RefId = :ref_id The output in SQL is: RefId LocalId StateProvinceId SchoolName Email Type 7FDF722B-6BBA-4BF0-8205-A5380B269EF1 1 SA Steve's School steven@gmail.com prm 7FDF722B-6BBA-4BF0-8205-A5380B269EF1 1 SA Steve's School test@gmail.com sec The XML

Namespace in RAML file

北城余情 提交于 2021-01-28 12:05:53
问题 I'm facing some problems trying to create a RAML unsing Library to define the types for a XML. Looks like is propagating the prefix to all the atributes. the library is like this: #%RAML 1.0 Library types: book: type: object properties: id: type: integer title: type: string author: type: string xml: prefix: 'smp' namespace: 'http://example.com/schema' name: 'book' The RAML is this: #%RAML 1.0 title: book test uses: myLib: /libraries/types.raml /book: description: book post: body: application

Recursivly traverse and flatten JSON object in DataWeave

空扰寡人 提交于 2020-12-13 03:31:17
问题 I want to traverse and flatten a big JSON file that has following structure showing a product hierarchie (think of it as navigation in an online shop): productGroups: [ { "key": "child 1" ... "childrenProductGroups": [ { "key": "child 1.1", ..., "childrenProductGroups": [] }, { "key": "child 1.2" ... "childrenProductGroups": [ { "key": "child 1.2.1", ..., "childrenProductGroups": [ { "key": "child 1.2.1.1", ..., childrenProductGroups": [ ... ] } ] }, { "key": "child 1.2.2", ...,

Recursivly traverse and flatten JSON object in DataWeave

丶灬走出姿态 提交于 2020-12-13 03:31:15
问题 I want to traverse and flatten a big JSON file that has following structure showing a product hierarchie (think of it as navigation in an online shop): productGroups: [ { "key": "child 1" ... "childrenProductGroups": [ { "key": "child 1.1", ..., "childrenProductGroups": [] }, { "key": "child 1.2" ... "childrenProductGroups": [ { "key": "child 1.2.1", ..., "childrenProductGroups": [ { "key": "child 1.2.1.1", ..., childrenProductGroups": [ ... ] } ] }, { "key": "child 1.2.2", ...,

Recursivly traverse and flatten JSON object in DataWeave

自作多情 提交于 2020-12-13 03:30:19
问题 I want to traverse and flatten a big JSON file that has following structure showing a product hierarchie (think of it as navigation in an online shop): productGroups: [ { "key": "child 1" ... "childrenProductGroups": [ { "key": "child 1.1", ..., "childrenProductGroups": [] }, { "key": "child 1.2" ... "childrenProductGroups": [ { "key": "child 1.2.1", ..., "childrenProductGroups": [ { "key": "child 1.2.1.1", ..., childrenProductGroups": [ ... ] } ] }, { "key": "child 1.2.2", ...,

Recursivly traverse and flatten JSON object in DataWeave

帅比萌擦擦* 提交于 2020-12-13 03:30:14
问题 I want to traverse and flatten a big JSON file that has following structure showing a product hierarchie (think of it as navigation in an online shop): productGroups: [ { "key": "child 1" ... "childrenProductGroups": [ { "key": "child 1.1", ..., "childrenProductGroups": [] }, { "key": "child 1.2" ... "childrenProductGroups": [ { "key": "child 1.2.1", ..., "childrenProductGroups": [ { "key": "child 1.2.1.1", ..., childrenProductGroups": [ ... ] } ] }, { "key": "child 1.2.2", ...,