use of org.apache.cxf.cxf.performance.types.NestedComplexType in project cxf by apache.
the class Client method createComplexType.
private NestedComplexType createComplexType() {
NestedComplexType complexType = new NestedComplexType();
complexType.setVarString("#12345ABc");
complexType.setVarUByte((short) 255);
complexType.setVarUnsignedLong(new BigInteger("13691056728"));
complexType.setVarFloat(Float.MAX_VALUE);
complexType.setVarQName(new QName("http://cxf.apache.org", "return"));
try {
complexType.setVarStruct(getSimpleStruct());
} catch (DatatypeConfigurationException e) {
e.printStackTrace();
}
complexType.setVarEnum(ColourEnum.RED);
byte[] binary = new byte[256];
for (int jdx = 0; jdx < 256; jdx++) {
binary[jdx] = (byte) (jdx - 128);
}
complexType.setVarHexBinary(binary);
complexType.setVarBase64Binary(binary);
return complexType;
}
Aggregations