powershell コマンド New-WebServiceProxy を使用して、ITSM インシデントを照会しています。WSDL定義を取得できました..
$uri='http://pitsm.mydomain.net/arsys/WSDL/public/pitsmapp/HPD_IncidentInterface_WS'
$itsm=New-WebServiceProxy -Uri $uri -Namespace ITSM
$auth= New-Object ITSM.AuthenticationInfo
$cred=get-credential
$auth.username=$cred.username
$auth.password= [System.Runtime.InteropServices.marshal]::PtrToStringAuto([System.Runtime.InteropServices.marshal]::SecureStringToBSTR($cred.password))
$auth.authentication="Domain Authentication"
$itsm.AuthenticationInfoValue=$auth
$itsm.RequestEncoding = [System.Text.Encoding]::UTF8
$tid="INC000002237910"
$criteria="'Incident Number' = ""$tid"""
Web サービスを使用すると、次のエラー メッセージが表示されます。
$answer=$itsm.HelpDesk_QueryList_Service($criteria,0,100)
"3" 個の引数を指定して "HelpDesk_QueryList_Service" を呼び出し中に例外が発生しました: "XML ドキュメント (3、4) にエラーがあります。" 行:1 文字:1
$answer=$itsm.HelpDesk_QueryList_Service($criteria,0,100)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
CategoryInfo : NotSpecified: (:) []、MethodInvocationException
FullyQualifiedErrorId : InvalidOperationException
誰が何が間違っているのか考えていますか?