axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chris" <>
Subject RE: getChildElements(Name) trouble
Date Mon, 15 Dec 2003 14:03:15 GMT

Cyril - 

Most likely, you are running into a namespace issue.

Try     public abstract Name createName(String localName, String prefix,
String uri) and see if it works.  Though, why the API designers put the
prefix in the signature befuddles me....   The getChildElements call is
going to end up performing a comparison of the entire qualified name....


-----Original Message-----
From: Cyril Godefroy [] 
Sent: Friday, December 12, 2003 3:47 AM
Subject: getChildElements(Name) trouble

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="">
   <realProperty:propertyListing id="property_1234" 
    <realProperty:listingAgency>Really Nice Homes, 

This code produces some result:

Name listingElName = soapFactory.createName(
	     "propertyListing", "realProperty",
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).

View raw message