psServiceLocation - cClientWebService
Determines the URL location of your web-service
Type: Property
Access: Read/Write
Data Type: String
Parameters: None
Syntax
Property String psServiceLocation
| Access Type | Syntax |
|---|---|
| Read Access: | Get psServiceLocation to StringVariable |
| Write Access: | Set psServiceLocation to StringVariable/Value |
Description
psServiceLocation determines the URL location of the web-service. When the client web-service class generator creates a web-service class, this property will be created as part of the class generation. The service location is defined in a service's description (WSDL).
If you need to redirect your web-service call to a different address or port, you can change this property. For example, a normal service using port 80 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 address to DataAccess.com and to port to 8080, you could change this as follows:
Set psServiceLocation to 'http://DataAccess.com/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.
HTTPS/ Secure SSL Sites
Secure HTTPS sites are supported. If your URL contains "HTTPS" the object will recognize that this is an secure site and will change the default port to rpHttpSSL (443) and will set the appropriate transfer flag in the http object.
Set psServiceLocation to 'https://localhost/daw.examples.order/customertransfer.wso'
When your web-service client is created, this information should be contained in your WSDL and the generated client class will automatically support this.
In some cases a client certificate may be required for a secure site. This information is not stored in the WSDL. The programmer will need to select the certificate by setting the properties psCertificateStore and psCertificateSubject