Person.xsd xsd org.apache.tuscany.sca.itest.databinding.types TypesFactory http://apache.org/tuscany/sca/itest/databinding/types p PersonType TypesFactory factory = TypesFactory.INSTANCE; param = factory.createPersonType(); param.setFirstName("George"); param.setLastName("Doors"); param.setGreeting("Hello"); assertNotSame("greetedPerson.getGreeting() not set", "", result.getGreeting()); Interop.xsd xsd org.apache.tuscany.interop InteropFactory http://www.apache.org/tuscany/interop i AttributeComplexType InteropFactory factory = InteropFactory.INSTANCE; org.apache.tuscany.interop.AttributeType attrib = factory.createAttributeType(); attrib.setAttribute("SomeText"); param = factory.createAttributeComplexType(); param.setAttributeElement(attrib); param.getAttributeElement().setAttribute("SomeChangedText");; assertEquals("data not changed corretly", "SomeChangedText", result.getAttributeElement().getAttribute()); AttributeReferenceComplexType InteropFactory factory = InteropFactory.INSTANCE; param = factory.createAttributeReferenceComplexType(); param.setReferencedAttribute("SomeText"); param.setReferencedAttribute("SomeChangedText");; assertEquals("data not changed corretly", "SomeChangedText", result.getReferencedAttribute()); SimpleTypeWithAbstractComplexType InteropFactory factory = InteropFactory.INSTANCE; param = factory.createSimpleTypeWithAbstractComplexType(); param.setSimpleTypeWithAbstractExtensionElement("SomeText"); param.setSimpleTypeWithAbstractExtensionElement("SomeChangedText");; assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithAbstractExtensionElement()); SimpleTypeWithNameComplexType InteropFactory factory = InteropFactory.INSTANCE; param = factory.createSimpleTypeWithNameComplexType(); param.setSimpleTypeWithNameElement("SomeText"); param.setSimpleTypeWithNameElement("SomeChangedText");; assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithNameElement()); ComplexTypeWithContentType InteropFactory factory = InteropFactory.INSTANCE; param = factory.createComplexTypeWithContentType(); param.setSimpleTypeWithName("SomeText"); param.setSimpleTypeWithName("SomeChangedText");; assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithName());