Hi,
Im trying to use VimPortType 's createTask function to create a custome task. the calling is like:
taskInfo = _vimPort.createTask(taskManagerMoref, hostMoref, taskId,null, false, null, null);
the taskManagerMoref is Mof of TaskManager, taskId is a string , why it throw this taskType not correct exception? is there any restriction of the taskId? thanks.
[2018-05-18T02:37:30.135Z] [ERROR] http-bio-5090-exec-7 com.huawei.esdk.storage.model.task.TaskProcessor com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: A specified parameter was not correct: taskType Please see the server log to find more detail regarding exact cause of the failure.
at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:124)
at com.sun.xml.internal.ws.client.sei.StubHandler.readResponse(StubHandler.java:238)
at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:189)
at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:276)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:104)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:77)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:147)
at com.sun.proxy.$Proxy701.createTask(Unknown Source)
Hi,
The Client SDK is just demonstrating how to use vim25. Your question is specific to the vim25 API itself (the vSphere Web Services SDK which is part of the Management SDK).
Please ask in the vSphere Management SDK forum to get suggestions.
Cheers,
Vladi
Hi there,
You need to have a task type specified. The task type is taken from your Extension't taskList - see https://pubs.vmware.com/vsphere-6-5/topic/com.vmware.wssdk.apiref.doc/vim.Extension.html and https://pubs.vmware.com/vsphere-6-5/topic/com.vmware.wssdk.apiref.doc/vim.Extension.TaskTypeInfo.htm... for more info.
Tony