Am new to scripting. Am stuck with some errors when i try to hit a web service with the input being a xml.
Got the content of the xml and when i try to invoke the WebRequest.
[xml]$sun= Invoke-WebRequest -Uri $uri -CalculateTax post -ContentType "String" -InFile $Input.OuterXml.
where, $uri is the variable which has the url of the service CalculateTax is the Method of the Service $Input is the Variable which has the XML content Getting the error as
Invoke-WebRequest : A parameter cannot be found that matches parameter name 'CalculateTax'.
+ [xml]$sun= Invoke-WebRequest -Uri $uri -CalculateTax Post -ContentType "string" ...
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Please help me with this