<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div>Hi,<span></span></div><div><br></div><div>I wants to creating my own service under ../vms/{vmid}/myservice.Here is my methods:</div><div><br></div><div>1. create VmMytestService in&nbsp;<i>https://github.com/oVirt/ovirt-engine-api-model project.</i></div><div><span style="color: rgb(0, 0, 0); font-style: italic; background-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp;&nbsp;</span><img src="cid:_Foxmail.1@11bbd275-ddef-0e04-de4b-dcaf41bd89eb" border="0" style="font-size: 10.5pt; line-height: 1.5; background-color: transparent;"></div><div><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">add</span><span style="font-style: italic; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">&nbsp;</span><span style="background-color: transparent;"><i>@Service VmMytestService mytests() in </i>VmService .java&nbsp;</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp;&nbsp;</span></div><div>2. mvn install it and change the root pom.xml&nbsp;<i>&lt;model.version&gt;4.3.9-SNAPSHOT&lt;/model.version&gt; </i>&nbsp;in my Ovirt project.</div><div>3.create BackendVmMytestService implements VmMytestResource</div><div>4.override <i>get() and add() </i>methods.</div><div><br></div><div>After that, I use <i>curl</i>&nbsp; tool to send GET and POST request. GET is working and return.</div><div>However, I get this return after POST request.</div><div><img src="cid:_Foxmail.1@b462724f-a213-bd0b-c34e-fd04bdd75893" border="0"></div><div><img src="cid:_Foxmail.1@a853e96a-ca52-0493-f43b-8453d53742de" border="0" style="font-size: 10.5pt; line-height: 1.5; background-color: transparent;">&nbsp; &nbsp;</div><div><br></div><div>Would you help me with that issue?</div><div><br></div><div>Thanks,</div><div>wenzt</div>
</body></html>