WSReferenceManager.<WS-Reference Name>.CreateWSProxy


CreateWSProxy(<URIOfTheServiceNamespace>, <ServiceName>, <PortName>, <InternetProxy>, <Timeout>, <SecureConnection>, <Location>, <UseOSAuthentications>)


<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 secure connection object for HTTPS connection between WSProxy object and web-service.
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.


Creates a proxy for accessing an external web service.


Server, thick client, external connection, Mobile application (server).


If the parameters are invalid (do not let to identify service and port), then connection will be initialized.


Proxy = WSReferences.Orders.CreateWSProxy(
    "", "orderService", "orderPort");


1C:Enterprise Developer's Community