I am trying to access a net.tcp endpoint from powershell.
I would like to use New-WebServiceProxy for that purpose, however I am not sure if it can be done.
Right now I get a
+ FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.NewWebServiceProxy
when pointing it at the wsdl (which I have heavly hand written, so it could be that…)
You simply cannot do this. New-WebServiceProxy is not a WCF proxy, its a http soap proxy.
You could probably use a combination of svcutil.exe and Add-Type to generate the proxy on the fly on machines that have svcutil.exe installed.
A more complex example in C# that you might be able to translate to powershell is available here.