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

SOAP Response parsing EX4 namespace

Highlighted
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

Tags (1)
Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________