assertEquals(ae.get(i), be.get(i));
}
}
public void testStructWithAnyArray() throws Exception {
StructWithAnyArray swa = new StructWithAnyArray();
swa.setName("Name");
swa.setAddress("Some Address");
StructWithAnyArray yOrig = new StructWithAnyArray();
yOrig.setName("Name2");
yOrig.setAddress("Some Other Address");
SOAPFactory factory = SOAPFactory.newInstance();
SOAPElement x = factory.createElement("hello", "foo", "http://some.url.com");
x.addNamespaceDeclaration("foo", "http://some.url.com");
x.addTextNode("This is the text of the node");
SOAPElement x2 = factory.createElement("hello2", "foo", "http://some.url.com");
x2.addNamespaceDeclaration("foo", "http://some.url.com");
x2.addTextNode("This is the text of the node for the second struct");
swa.getAny().add(x);
yOrig.getAny().add(x2);
Holder<StructWithAnyArray> y = new Holder<StructWithAnyArray>(yOrig);
Holder<StructWithAnyArray> z = new Holder<StructWithAnyArray>();
StructWithAnyArray ret;
if (testDocLiteral) {
ret = docClient.testStructWithAnyArray(swa, y, z);
} else if (testXMLBinding) {
ret = xmlClient.testStructWithAnyArray(swa, y, z);
} else {