Skip to content

piPort - cClientWebService

Determines the port used for a web-service call

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer piPort
Access Type Syntax
Read Access: Get piPort to IntegerVariable
Write Access: Set piPort to IntegerVariable/Value

Description

piPort determines the port to be used for a web-service call. The default value for this property is 0. When 0 the appropriate default port will be used. When accessing via an regular site that port is rpHttp (80). When accessing over a SSL site (HTTPS) that port is rpHttpSSL (443). If piPort is non-zero, that port number will be used.

You should not directly set this property. If you need to change the port, change the psServiceLocation property. If a port is defined in psServiceLocation, it will take precedence over piPort.

A port is defined in the web-service's WSDL as part of the service's location. This location property is set in the class with the psServiceLocation property. If you wish to change the port, you should change the psServiceLocation value. For example, a normal service using port 80 (rpHttp) will have a line in its client class that look like this:

Set psServiceLocation     to 'http://localhost/daw.examples.order/customertransfer.wso'

If you wished to change the port to 8080, you could change this as follows:

Set psServiceLocation     to 'http://localhost/daw.examples.order:8080/customertransfer.wso'

If this were a temporary change (e.g., for testing) you could add this line to your web-client object in your view.

If your URL uses HTTPS, and a port is not explicitly defined in the URL, port 443 is used.

Set psServiceLocation     to 'https://localhost/daw.examples.order/customertransfer.wso'