cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

SOAP Response parsing EX4 namespace

jheikkinen
1-Newbie

SOAP Response parsing EX4 namespace

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

0 REPLIES 0
Top Tags