I'm doing this:
Code: Select all
$id = "C:\Users\me\Documents\me.xml"
# Read XML configuration file
[xml]$config = Get-Content $id
$UserName = $config.ID.UserName
$Password = $config.ID.Password
$mantis = New-WebServiceProxy -Uri http://tickets.empyreanbenefits.com/api/soap/mantisconnect.php?wsdl
$ticket = "0198346"
$note = @(
('text'),
('testing mc_issue_note_add')
)
$mantis.mc_issue_note_add($username,$password,$ticket,$note)
Any guidance gratefully received.Cannot convert argument "note", with value: "System.Object[]", for "mc_issue_note_add" to type
"Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1pi_soap_mantisconnect_php_wsdl.IssueNoteData":
"Cannot convert the "System.Object[]" value of type "System.Object[]" to type
"Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1pi_soap_mantisconnect_php_wsdl.IssueNoteData"."
At line:1 char:1
+ $mantis.mc_issue_note_add($username,$password,$ticket,$note)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument