<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 <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);"> </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);"> </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);"> </span><span style="background-color: transparent;"><i>@Service VmMytestService mytests() in </i>VmService .java </span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> </span></div><div>2. mvn install it and change the root pom.xml <i><model.version>4.3.9-SNAPSHOT</model.version> </i> 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> 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;"> </div><div><br></div><div>Would you help me with that issue?</div><div><br></div><div>Thanks,</div><div>wenzt</div>
</body></html>