Ruddi serializers allow turning any Ruddi data structure in an UDDI-compliant XML stream. The UDDI 3.0, 2.0 or 1.0 specifications are supported.
UDDI serializers are created by invoking the static createSerializer(int) factory method on the UDDISerializer class of the "inspireit.uddi.io.serialize" package.
UDDISerializer v2Serializer = UDDISerializer.createSerializer(UDDIConstants.UDDI_V2);
The value of the createSerializer(int) parameter depends on the targeted UDDI specification level and should be either UDDIConstants.UDDI_V3 , UDDIConstants.UDDI_V2 or UDDIConstants.UDDI_V1 . The example above initializes an UDDI 2.0 serializer.
Once an UDDISerializer instance has been created, the serialize(UDDIElement, OutputStream) method can be invoked. The first parameter is any UDDIElement supported by Ruddi, such as Contact , BusinessEntity or TModelList . The second parameter is the output stream on which the UDDI-compliant XML information will be written.
|
|
(c) INSPIRE IT, 2003 | Send us your feedback: developers@ruddi.biz