Skip to main content
1-Visitor
February 5, 2016
Question

SOAP Response parsing EX4 namespace

  • February 5, 2016
  • 0 replies
  • 1004 views

Hi,

I got SOAP response:

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>

    <GetDailyMeasurementDataResponse xmlns="http://tempuri.org/">

        <GetDailyMeasurementDataResult>

            <Measurements>

                <DMData>

                    <Name>Energy total</Name>

                    <Timestamp>2016-01-25T00:00:00</Timestamp>

                    <Value>2537</Value>

                </DMData>

                <DMData>

                    <Name>Energy total</Name>

                    <Timestamp>2016-01-26T00:00:00</Timestamp>

                    <Value>2641</Value>

                </DMData>

            </Measurements>

        </GetDailyMeasurementDataResult>

    </GetDailyMeasurementDataResponse>

</soap:Body>

</soap:Envelope>

I need to parse this, but E4X descendants([name]) -method returns nothing. On bases of other answers in this community I guess the problem might be with namespaces. Any idea how to pick Values out of above SOAP stuff?

Thanks,

Juhani