}
}
@Test
public void testStructWithAnyStrictComplex() throws Exception {
SOAPFactory factory = SOAPFactory.newInstance();
SOAPElement elem = factory.createElement("AnonTypeElementQualified",
"x1", "http://apache.org/type_test/types1");
elem.addNamespaceDeclaration("x1", "http://apache.org/type_test/types1");
SOAPElement floatElem = factory.createElement("varFloat", "x1",
"http://apache.org/type_test/types1");
floatElem.addTextNode("12.5");
elem.addChildElement(floatElem);
SOAPElement intElem = factory.createElement("varInt", "x1",
"http://apache.org/type_test/types1");
intElem.addTextNode("34");
elem.addChildElement(intElem);
SOAPElement stringElem = factory.createElement("varString", "x1",
"http://apache.org/type_test/types1");
stringElem.addTextNode("test string within any");
elem.addChildElement(stringElem);
StructWithAnyStrict x = new StructWithAnyStrict();
x.setName("Name x");
x.setAddress("Some Address x");
x.setAny(elem);
elem = factory.createElement("AnonTypeElementQualified", "x1",
"http://apache.org/type_test/types1");
elem.addNamespaceDeclaration("x1", "http://apache.org/type_test/types1");
floatElem = factory.createElement("varFloat", "x1",
"http://apache.org/type_test/types1");
floatElem.addTextNode("12.76");
elem.addChildElement(floatElem);
intElem = factory.createElement("varInt", "x1",
"http://apache.org/type_test/types1");
intElem.addTextNode("56");
elem.addChildElement(intElem);
stringElem = factory.createElement("varString", "x1",
"http://apache.org/type_test/types1");
stringElem.addTextNode("test string");
elem.addChildElement(stringElem);
StructWithAnyStrict yOrig = new StructWithAnyStrict();