リストまたは検索機能から正常に Client Automation オブジェクトが取得されると、そのオブジェクトのプロパティを含む構造体が返されます。
この例では、WSDL で記述された出力構造体がホルダ クラスにマッピングされています。 たとえば、findComputer 関数から dsm:ComputerProperties タイプの構造体を取得した場合は、ComputerPropertiesHolder タイプの Java オブジェクトが取得されます。 このオブジェクトから UUID を取得するには、以下の操作を行います。
ComputerPropertiesHolder methodOutput = new ComputerPropertiesHolder(); //コンピュータを検索します … String computerId = methodOutput.value.getComputerUUID();
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|