WSReferenceManager._WS-reference name_.CreateWSProxy
CreateWSProxy
Syntax
CreateWSProxy(<URIOfTheServiceNamespace>, <ServiceName>, <PortName>, <InternetProxy>, <Timeout>, <SecureConnection>, <Location>, <UseOSAuthentications>)
Parameters
<URIOfTheServiceNamespace> (required)
Type: String. URI of the web service namespace.
<ServiceName> (required)
Type: String. Local name of the web service.
<PortName> (required)
Type: String. Web service port name.
<InternetProxy> (optional)
Type: InternetProxy. It is used by the object for HTTP connection with a web service WSProxy. Default value: Undefined.
<Timeout> (optional)
Type: Number. Defines timeout for connection and operations, performed by WSProxy object, in seconds. 0 - do not set the timeout. Default value: 0.
<SecureConnection> (optional)
Type: OpenSSLSecureConnection, Undefined. Contains a secure connection object for establishing an HTTPS connection between a web service and a WSProxy object. Default value: Undefined.
<Location> (optional)
Type: String. Allows to specify the actual service address. If the parameter is not specified or an empty string is specified, the Location property value is used as a service address. Default value: Undefined.
<UseOSAuthentications> (optional)
Type: Boolean. Specifies, whether NTLM or Negotiate authentication is used on a server. Default value: False.
Returned value
Type: WSProxy.
Description
Creates a proxy for accessing an external web service.
Availability
Server, thick client, external connection, mobile application (server), mobile standalone server.
Note
If the parameters are invalid (do not let to identify service and port), then connection will be initialized.
Example
Proxy = WSReferences.Orders.CreateWSProxy(
"http://orders.org", "orderService", "orderPort");
No comments to display
No comments to display