CMDBuild Forum

createCard return value

Hi,

I'm using soap webservice method createCard(cardtoCreate).

What value is returned if card creation fails?

I've just trying to create a card with an Id of an existing card:

 

Card newCard= new Card();

newCard.setClassName("Asset");

newCard.setId(<existingCardId>);

int idCreatedCard = webservice.createCard(newCard);

 

and it works creating a new card with a new Id.

 

thanks