Hi all
i will need your brain a few minutes , :-) - I try to execute a workflow via SOAPui, and ADD XmlContent in the SOAP request , let me explain :
Here an request :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservice.vso.dunes.ch">
<soapenv:Header/>
<soapenv:Body>
<web:executeWorkflow>
<web:workflowId></web:workflowId>
<web:username></web:username>
<web:password></web:password>
<!--Zero or more repetitions:-->
<web:workflowInputs>
<web:name></web:name>
<web:type></web:type>
<web:value></web:value>
</web:workflowInputs>
</web:executeWorkflow>
</soapenv:Body>
</soapenv:Envelope>
I would like to know , if it is possible to add XML Content as value for the workflowinputs paramater ?
Exemple of XML Element :
<VM>
<os></os>
<cluster></cluster>
<hostname></hostname>
<datastore></datastore>
<FinalDatastore />
<Folder></Folder>
<ResourcePool />
<cpu></cpu>
<memory></memory>
<vlan></vlan>
<baselinesecurity />
<domain></domain>
<ou></ou>
<disks>
<disk>
<letter>C</letter>
<size>80</size>
</disk>
<disk>
<letter>D</letter>
<size>20</size>
</disk>
</disks>
</VM>
Why ? To use this XML value as parameter for my powershell script ... is it possible ? Or should i split each parameters in workflowinput (dc, cluster, ...)?
I also try this :
From : vSphere 6.0 Documentation Center
In value - dunes://service.dunes.ch/CustomSDKObject?id='<object_ID>'&dunesName='<plug-in_name>:<object_type>' --- When i start the soap request, it tell me that ";" is missing ... even if i put it.
Well, i m lost ... So if you have a few minutes to explain me how to executeworklow via SOAP to create VM ..... many thanks in advance ...
Best regards
Raphael