Im trying to use "invoke-webrequest" CMDLET for callin a web service. Im successfully using it with WSDL served by apache tomcat,, but when I use it against glassfish 2 I get:
---Invoke-WebRequest : '"utf-8"' is not a supported encoding name.---
My request works in SOAP UI just well, but using SOAP UI I realize Glassfish V2 is setting the UTF-8 encoding with double quotes around (see the error above and will give you the clue). Apache Tomcat does it just well, it gives me the encoding without the double quotes.
How do you deal with this? is there any way to remove those double quotes dynamically or maybe replace the encoding altogether during the CMDLET call? I could find any reference to this on the documentation.
Thanks!