https://service5.ultipro.com/services/LoginService
There is one other SOAP service we actively use to disable users on that platform, and new-webserviceProxy works fine when you just point it at the wsdl address, find the method you wanna use, gather your parameters and use that method…but as you can see, the one above doesnt have the wsdl in the endpoint. I tried to see if i could get lucky and “/?wsdl” in the url, but no luck. I did notice a wsdl address in the xml response of the link above, but when i attempt to use that address, says the Object ref not set to an instance of an object… see last snippet.
Here it just fails when creating the object, and im not sure the actual error message or why.
SysinternalsSuite> [03/16/2020 14:21:19]> $URI="https://service5.ultipro.com/services/LoginService"</code>
<code>SysinternalsSuite> [03/16/2020 14:24:44]> $Proxy = New-WebserviceProxy $URI -Namespace x</code>
<code>New-WebserviceProxy : Exception has been thrown by the target of an invocation.</code>
<code>At line:1 char:10</code>
<code>+ $Proxy = New-WebserviceProxy $URI -Namespace x</code>
<code>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</code>
<code>+ CategoryInfo : NotSpecified: (:) [New-WebServiceProxy], TargetInvocationException</code>
<code>+ FullyQualifiedErrorId : System.Reflection.TargetInvocationException,Microsoft.PowerShell.Commands.NewWebServiceProxy
Using the only wsdl address i can find in the first url above, then fails for null object i guess
SysinternalsSuite> [03/16/2020 14:27:43]> $URI="https://service5.ultipro.com/services/LoginService?wsdl=wsdl0"</code>
<code>SysinternalsSuite> [03/16/2020 14:29:17]> $Proxy = New-WebserviceProxy $URI -Namespace x</code>
<code>New-WebserviceProxy : Object reference not set to an instance of an object.</code>
<code>At line:1 char:10</code>
<code>+ $Proxy = New-WebserviceProxy $URI -Namespace x</code>
<code>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</code>
<code>+ CategoryInfo : NotSpecified: (:) [New-WebServiceProxy], NullReferenceException</code>
<code>+ FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.NewWebServiceProxy