IcreateBusinessObjectWithVerb()

Creates a business object with a specified verb.

Syntax

IBusinessObject IcreateBusinessObjectWithVerb(string busObjName, 
     string verb);

Parameters

busObjName
The name of the business object definition to use when creating the business object.

verb
The verb for the new business object.

Return Values

An IBusinessObject object that holds the new business object with the specified verb value.

Exceptions

ICxAccessError
Thrown when the specified business object definition is not present in the IBM WebSphere InterChange Server repository or if the verb passed is invalid for the business object definition.

Notes

The Server Access Interface creates a business object of type busObjName and initializes it with the verb verb. It then sends this business object back to the access client. Only verbs supported in the business object definition are valid.

Example

// Create the business object
IBusinessObject exampleobj = null 
exampleObj =
     accessSession.IcreateBusinessObjectWithVerb("AcctsRecCurrent",
     "Retrieve");

Copyright IBM Corp. 1997, 2004