How to create a request xml to update/create in jazz server via REST service?
![]()
Hi Team,
I am new to REST services and I can able to get the response using REST service "GET".
The content is as below, (Permissions for role)
<?xml version="1.0" encoding="UTF-8" ?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
.
.
<soapenv:Body>
<response>
<method>getPermissions</method>
<interface>com.ibm.team.process.internal.service.web.IProcessWebUIService</interface>
<returnValue xsi:type="com.ibm.team.repository.common.services:ComplexArrayDataArg">
<type>COMPLEX</type>
<values xsi:type="rest:PermissionConfigurationDTO">
<id>com.ibm.team.dashboard.server.saveProjectDashboard</id>
<enabled>true</enabled>
<finalOp>false</finalOp>
<denialExplanation xsi:nil="true"/>
</values>
</returnValue>
</response>
</soapenv:Body>
</soapenv:Envelope>
I am planning to update some permission for the role and update into the server via POST.
I just updated some fields in the xml and directly calling the doPost(..) method, and then i got Bad request error.
As I am new to the REST service I am not sure how to construct this request xml to doPost(...) .
Please let me know how to resolve this issue.
|
Comments
Hi All,