mc_issue_relationship_add

Get help from other users here.

Moderators: Contributor, Developer

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

mc_issue_relationship_add

Post by Firmbyte » Oct 19, 2018 1:38 pm

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: 9
Joined: Feb 07, 2017 12:23 pm

Re: mc_issue_relationship_add

Post by Firmbyte » Oct 23, 2018 8:38 am

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

Post Reply