SideNav > Documentation > Configuration of Corba Port

Configuring a CORBA Port

CORBA ports are described using the WSDL extensibility element, corba:address, within the WSDL port element, to specify how a CORBA object is exposed.

Namespace

The WSDL extensions used to describe CORBA data mappings and CORBA transport details are conventionally prefixed by the namespace prefix, corba.(xmlns:corba="http://schemas.apache.org/yoko/bindings/corba")

corba:address element

The IOR of the CORBA object is specified using the corba:address element. You have four options for specifying IORs in Artix contracts:

  • Specify the objects IOR directly, by entering the object's IOR directly into the contract using the stringified IOR format:

IOR:22342....

  • Specify a file location for the IOR, using the following syntax:

file:./bank.ref

It is usually simplest to specify the file name using an absolute path. If you specify the file name using a relative path, the location is taken to be relative to the directory the process is started in, not relative to the containing WSDL file.

  • Specify that the IOR is published to a CORBA name service, by entering the object's name using the corbaname format:

corbaname:rir/NameService#object_name

  • Specify the IOR using corbaloc, by specifying the port at which the service exposes itself, using the corbaloc syntax.

corbaloc:iiop:host:port/service_name

Example

A CORBA port for the Bank Corba binding would look like:

BankCORBAPort:

<wsdl:service name="BankCORBAService">
<wsdl:port name="BankCORBAPort" binding="tns:BankCORBABinding">
<corba:address location="file:./bank.ref" />
</wsdl:port>
</wsdl:service>

Yoko Corba binding expects the IOR for the CORBA object to be located in a file called bank.red (relative to the directory in which process is started).