February 2019
Intermediate to advanced
626 pages
15h 51m
English
When working with SOAP interfaces, it is common to encounter methods that need instances of objects presented by the SOAP service. The SearchElements method is an example of this type.
The SearchElements method requires an array of SOAP.SearchCondition as an argument. This is shown in the following by accessing the definition of the method:
PS> $service.SearchElementsOverloadDefinitions-------------------SOAP.Element[] SearchElements(SOAP.SearchCondition[] searchConditions)
An instance of SearchCondition may be created as follows:
$searchCondition = [SOAP.SearchCondition]::new()
Exploring the object with Get-Member shows that the operator property is another type from the SOAP service. This is an enumeration, as shown ...
Read now
Unlock full access