A B2B electronic commerce system is developed, which is based on the components for distributed environments between enterprises. The electronic commerce process between enterprises is defined and as a process between working object components and objects modeled by UML. Each work process is translated from XML document and UML class document formats to DTD which has XML documentation structure. The design of distributed object system is presented by using UML adjusted to the object oriented modeling and XML documents which is to facilitate easy adaptation.