February 2019
Intermediate to advanced
626 pages
15h 51m
English
When testing a SOAP interface, it is easy to get into a situation where New-WebServiceProxy has been called several times against the same web service. This can be problematic if using the Namespace parameter.
Consider the following example, which uses two instances of the web service:
$params = @{ Uri = 'http://localhost:62369/Service.asmx' Namespace = 'SOAP'}# Original version$service = New-WebServiceProxy @params# New version$service = New-WebServiceProxy @params$searchConditions = @( [SOAP.SearchCondition]@{ PropertyName = 'Symbol' Operator = 'eq' Value = 'H' })
In theory, there is nothing wrong with this example. In practice, the SOAP.SearchCondition object is created based on the original version of the service ...
Read now
Unlock full access