pp108 : setGateway()

setGateway()


It sets thegatewayproperty of the model object. The requests of the model will be sent to the specified gateway.

Syntax

Script

modelID.setGateway(sGateway)


Parameters

Parameter

Description

sGateway

Required. String that denotes the gateway URL to which request is sent. It can be the URL of WCP gateway, or can also be the URL of a web service.


Return Value


No value is returned.

Remarks


The default gateway for the models will be the Process Platform Gateway URL:com.eibus.web.soap.Gateway.wcp. If the request has to be sent to any other external web service, then this method can be used to set the gateway of the current model.

The following code demonstrates how the method can be used:

//Set gateway property to WCP gateway EmployeesModel.setGateway('com.eibus.web.soap.Gateway.wcp');

Applies to


Model