VMware Cloud Community
jmajor1111
Contributor
Contributor

SRM 5 API with PowerShell

I'm having the hardest time to get this tot work. we have a SRM 5 server running, i can reach the WSDL just fine but I get this error when in powershell



New-WebServiceProxy : Unable to import binding 'SrmBinding' from namespace 'urn:srm0'.
At C:\Users\jmajor\AppData\Local\Temp\d79b5b6a-81f8-4c2d-a6f2-55445831dfba.ps1:1 char:28
+ $wsdl = New-WebServiceProxy <<<<  -Uri "https://srm5vm01.lab:8095/srm.wsdl" -Namespace SRM
    + CategoryInfo          : NotSpecified: (:) [New-WebServiceProxy], InvalidOperationException
    + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.NewWebServiceProxy

I run this to get a webservice going and this works on other parts of the VMware side... just not SRM

$wsdl = New-WebServiceProxy -Uri "https://srm5vm01.lab:8095/srm.wsdl" -Namespace SRM

I'm using powercli 4.1, Windows 7, not sure what else to add.

Any help will be appreciated. Thanks!

Tags (3)
Reply
0 Kudos
2 Replies
fduranti
Hot Shot
Hot Shot

I suppose you're talking about a beta not an official version... or I did not saw the release?

Reply
0 Kudos
jmajor1111
Contributor
Contributor

The beta forums seem to be silent about the API side of this and yes, this is still the beta product. I was hoping to find someone that has run across this error on the public side.

Reply
0 Kudos