Muleoftの新機能で、XMLを出力として提供するWebサービスを使用しているフローを作成しています.MuleでJSONに変換するXMLを行う必要があります。Mulesoft WebサービスのXML出力のJSONへ
以下以下
ポストマンプリティ値、
<?xml version="1.0" encoding="UTF-8"?>
<GetProjectResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="namespaceName">
<GetProjectResult><root>
<header>
<status>
<message>Success</message>
</status>
</header>
<data>
<Project>
<ProjectId>12345</ProjectId>
<ProjectShortName>ABCDEF</ProjectShortName>
<BusinessGroupName>ABCDEF GROUP</BusinessGroupName>
<InstitutionShortName>Country</InstitutionShortName>
<CountryName>Sample</CountryName>
<Code>Sample</Code>
</Project>
</data>
</root></GetProjectResult>
</GetProjectResponse>
あるしかし、私のJSONは次のようになり、
{
"GetProjectResponse": {
"@xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
"@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
"@xmlns:xmlns": "namespaceName",
"GetProjectResult": "<root>\n <header>\n <status>\n <message>Success</message>\n </status>\n </header>\n <data>\n <Project>\n <ProjectId>12345</ProjectId>\n <ProjectShortName>ABCDEF</ProjectShortName>\n <BusinessGroupName>ABCDEF GROUP</BusinessGroupName>\n <InstitutionShortName>Country</InstitutionShortName>\n <CountryName>Sample</CountryName>\n <Code>Sample</Code>\n </Project>\n </data>\n</root>"
}
}
私の実際のXML、私のミュール流れであります"GetProjectResult"ノード内の値です。私はこれを達成するでしょう。
それは働いた。ありがとうございます – user2665819
スター、あなたはhttp://stackoverflow.com/q/37801082/2665819で私の別の問題をチェックすることができるかどうかをチェックできますか? – user2665819