mc_issue_relationship_add
Posted: 19 Oct 2018, 18:38
Trying to add a relationship to a ticket and hitting an error, any help or advice greatfully received.
Error is:
Command I'm using:
Error is:
Code: Select all
New-Object : Cannot find type [Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1pi_soap_mantisconnect_php_wsdl.issuerelationshipadd]: verify that the
assembly containing this type is loaded.
Code: Select all
$mantis = New-WebServiceProxy -Uri http://tickets.nobody.com/api/soap/mantisconnect.php?wsdl
$Relationship = New-Object "Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1pi_soap_mantisconnect_php_wsdl.issuerelationshipadd"
$Relationship.issue_id = $Ticket
$Relationship.Target_id = $TargetID
$Relationship.relationship.id = 3
$mantis.mc_issue_relationship_add($Username,$Password,$ticket,$Relationship)