HELP!!! WITH CORBA :(
Hi.
I'm trying to make following interface to idl for CORBA.
import java.util.*;
interface AuctionInterface
{
public Vector getItems();
public String test();
publicvoid placeBid(Item item,int bid, String customer);
}
I know how String and void changes but not sure about Vector. Also, the Item, inside the placeBid(), is a class that I have made.
I think it should be something like
module Auction
{
interface AuctionInterface
{
//what here?
string test();
void placeBid(//what inside?);
};
};
Is anyone familiar with corba idl?
[1174 byte] By [
gomastera] at [2007-10-3 5:22:42]

One more Question.
I found out that the Vector class can be translated to arrays.
in my vector class, I will have my Item class in it.
so can it be Item[] instead of Vector?
For example
module Auction
{
interface Items
{
attribute int ID;
attribute string name;
attribute int originPrice;
attribute int currentPrice;
attribute string description;
attribute long remainingTime;
attribute string winner;
void setID(in int id);
void setDescription(in string desc);
void setOriginPrice(in int price);
void setCurrentPrice(in int price);
void setRemainingTime(in int second);
void setWinner(in string id);
int getID();
string getName();
int getPrice();
string getDescription();
int getTime();
string getWinner();
}
interface AuctionInterface
{
Items[] getItems();
string test();
void placeBid(in Items item, in int bid, in string customer);
};
};
Thank you