does not contain a method named 'mc_issue_get'

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Firmbyte
Posts: 12
Joined: 07 Feb 2017, 17:23

does not contain a method named 'mc_issue_get'

Post by Firmbyte »

I'm migrating from PowerShell 5.1 to version 7.2 and a process that works fine in 5.1 is failing in 7.2 and I don't know why.
Mantis v1.2.20

This is what I'm doing:

Code: Select all

$mantisurl = "http://tickets.myurl.com/api/soap/mantisconnect.php?wsdl" 
$mantis = New-WebServiceProxy -Uri $mantisurl
$ticketdetails = $mantis.mc_issue_get($UserName,$Password,$Ticket)
In 5.1 it returns the expected information. But in 7.2 it returns an error:

Code: Select all

InvalidOperation: Method invocation failed because [Deserialized.Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1pi_soap_mantisconnect_php_wsdl.MantisConnect] does not contain a method named 'mc_issue_get'.
What's the problem and how do I work around it?
Post Reply