mc_issue_relationship_add

Get help from other users here.

Moderators: Developer, Contributor

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

mc_issue_relationship_add

Post by Firmbyte »

Trying to add a relationship to a ticket and hitting an error, any help or advice greatfully received.
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.
Command I'm using:

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)
Firmbyte
Posts: 12
Joined: 07 Feb 2017, 17:23

Re: mc_issue_relationship_add

Post by Firmbyte »

Solution provided by Marsze on Stackoverflow
https://stackoverflow.com/questions/529 ... 3#52939443
Post Reply