}
}
}
public void testStructWithAny() throws Exception {
StructWithAny swa = new StructWithAny();
swa.setName("Name");
swa.setAddress("Some Address");
StructWithAny yOrig = new StructWithAny();
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.setAny(x);
yOrig.setAny(x2);
Holder<StructWithAny> y = new Holder<StructWithAny>(yOrig);
Holder<StructWithAny> z = new Holder<StructWithAny>();
StructWithAny ret;
if (testDocLiteral) {
ret = docClient.testStructWithAny(swa, y, z);
} else {
ret = rpcClient.testStructWithAny(swa, y, z);
}