I'm having trouble iterating through my SOAPBody. I get the top element fine, but when I go down, the iterators come back empty.

Here's my SOAPBody :
<ns1:Body xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/";>
<realProperty:propertyListing id="property_1234" xmlns:realProperty="http://schemas.realhouses.com/listingSubmission";>
<realProperty:listingAgency>Really Nice Homes, Inc</realProperty:listingAgency>
<realProperty:listingType>add</realProperty:listingType>
<realProperty:frontImage href="[EMAIL PROTECTED]"/>
<realProperty:interiorImage href="[EMAIL PROTECTED]"/>
</realProperty:propertyListing>
</ns1:Body>


This code produces some result:

Name listingElName = soapFactory.createName(
             "propertyListing", "realProperty",
             "http://schemas.realhouses.com/listingSubmission";);
Iterator listings = body.getChildElements(listingElName);

But this gives back an empty iterator:

Iterator ageIt = body.getChildElements(se.createName("listingAgency"));

I have tried variations with no luck (looking at the first element in the listings iteration for example).



Reply via email to