WSReferenceManager.<WS-Reference Name>.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 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.

Description:

Creates a proxy for accessing an external web service.

Availability:

Server, thick client, external connection, Mobile application (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");


    

1C:Enterprise Developer's Community