Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

New-WebServiceProxy no longer available in Powershell 7

RonSteiner1
Contributor III

I have been making SOAP API calls in Powershell for sometime now using cmdlet New-WebServiceProxy with URI /ws/search.asmx, and then using the ExecuteSearch method on the returned object.

Recently, I upgraded PS to version 7 in order to get another feature I needed and discovered that this cmdlet is no longer available. The replacement seems to be Invoke-WebRequest. However, that returns an object that does not have an ExecuteSearch method. Does anyone have an example of how to call Invoke-WebRequest to get an object that does have this method.? Or, is there some totally different way to do this?

-Ron

0 REPLIES 0