ฉันมีโฟลว์ง่ายๆ บน AnyPointStudio ที่ใช้เว็บเซอร์วิสและแปลงเป็น JSON
ฉันกำลังใช้บริการเว็บที่มีตารางธาตุ: http://www.webservicex.net/periodictable.asmx?WSDL
อย่างไรก็ตาม เมื่อใช้บริการ getAtomicNumber ฉันได้รับข้อมูลของ xml เป็นสตริง และ XML ไปยัง JSON ให้ผลลัพธ์นี้:
{
"GetAtomicNumberResponse" : {
"@xmlns:xsd" : "http://www.w3.org/2001/XMLSchema",
"@xmlns:xsi" : "http://www.w3.org/2001/XMLSchema-instance",
"@xmlns:xmlns" : "http://www.webserviceX.NET",
"GetAtomicNumberResult" : "<NewDataSet>\n <Table>\n <AtomicNumber>49</AtomicNumber>\n <ElementName>Indium</ElementName>\n <Symbol>In</Symbol>\n <AtomicWeight>114.82000000000001</AtomicWeight>\n <BoilingPoint>2300</BoilingPoint>\n <IonisationPotential>5.79</IonisationPotential>\n <EletroNegativity>1.49</EletroNegativity>\n <AtomicRadius>1.5</AtomicRadius>\n <MeltingPoint>430</MeltingPoint>\n <Density>7310</Density>\n </Table>\n</NewDataSet>"
}
}
อย่างที่คุณเห็นมันไม่ได้แยกวิเคราะห์ GetAtomicNumberResult
ฉันจะทำให้ผลลัพธ์ทั้งหมดแยกวิเคราะห์เป็น JSON ได้อย่างไร