a!wsConfig() Function

Function

a!wsConfig( wsdlUrl, service, port, operation, wsdlCredentials, endpointcredentials, extensions )

Constructs the config parameter to the webservicequery() and webservicewrite() functions.

Parameters

Keyword Type Description

wsdlUrl

Text

The url of the WSDL for the web service.

service

Text

The service to invoke. The value that should be passed here is found in the WSDL for the web service as the value of the name attribute of the <wsdl:service> element. The name must be prefixed with the target namespace of the WSDL, and that namespace must be surrounded by braces. For example, if the target namespace of the wsdl is "http://example.org" and the name attribute of the <wsdl:service> element is "ExampleService," the value for this parameter would be {http://example.org}ExampleService.

port

Text

The port within the given service to invoke. The value that should be passed here is found in the WSDL as the value of the name attribute of the <wsdl:port> element within the selected <wsdl:service> element. For example, if the port name is "ExampleSoap," the value for this parameter would be ExampleSoap.

operation

Text

The operation on the web service to invoke. The value that should be passed here is found in the WSDL as the value of the name attribute of the <wsdl:operation> element within the <wsdl:binding> element that corresponds to the selected <wsdl:port> element. The name must be prefixed with the target namespace of the WSDL, and that namespace must be surrounded by braces. For example, if the target namespace of the wsdl is "http://example.org" and the name attribute of the <wsdl:operation> element is "echoHello," the value for this parameter would be {http://example.org}echoHello.

wsdlCredentials

WsHttpCredentials

If the WSDL requires authentication credentials in order to access it, they must be provided as this parameter. Use the a!wsHttpCredentials system function to construct the value.

endpointcredentials

WsHttpCredentials

If the web service endpoint requires authentication credentials in order to invoke the web service, they must be provided as this parameter. Use the a!wsHttpCredentials system function to construct the value.

extensions

Any Type Array

Additional configurations are provided in the extensions parameter. If the web service requires that certain HTTP Headers should be passed, an array of WsHttpHeaderField constructed using a!wsHttpHeaderField can be passed. If the web service requires that WS-Security UsernameToken be used, a single WsUsernameToken or WsUsernameTokenScs can be passed.

Open in Github Built: Fri, Oct 22, 2021 (11:11:24 AM)

On This Page

FEEDBACK