Skip to main content

Product: OpenFusion Trading Service
Version: ALL

Description:

How to load the service type repository from the command line?

 

Resolution:

It is possible to load the service type repository data or offer data from the command line --provided the data has been stored in an XML file.

You can also export the data to an XML file using the command line.

This is done as follows: (NOTE: run script is located at ${OF_Install_Dir}/bin directory. )

    1. To export service types or offer definitions to an XML file:
      > run com.prismt.cos.CosTrading.xml.ExportXML [ -s <file> ] [ -o <file>] [ <resolveName> | -i <ior> | -f <file>]

      The options are as follows
      1. -s <serviceTypeFile> : name of file to export service types into
      2. -o <offerFile> : name of file to export offers into
      3. <resolveName> : Traders resolve name
      4. -f <TraderIORFile> : name of file containing traders IOR
      5. -i <TraderIOR>: Traders IOR

    2. To import service types or offer definitions from a file run:

    run com.prismt.cos.CosTrading.xml.ImportXML [ -s <file> ] [ -o <file>] [ <resolveName | -i <ior> | -f <file>]

The options are as follows:

    1. -s <serviceTypeFile>: name of file to import service types from
    2. -o <offerFile> : name of file to import offers from 
    3. <resolveName> : Traders resolve name
    4. -f <TraderIORFile>: name of file containing Traders IOR
    5. -i <TraderIOR>: Traders IOR

You can find more information in Section 4.5 of Trading Service Guide.


#TradingService
#OpenFusionCORBAService
#KnowledgeDocs
#OpenFusion