Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes

Comments

 Hi All,

It's blocking the flow so please let me know if any solution for this.



One answer

Permanent link
Follow the instructions in this article, if you want to programmatically add members to a project area and assign roles to them.
https://jazz.net/library/article/633

0 votes

Comments

 Hi Donald,


Thanks for the response.

Is there any documentation available to construct this request xml using JAVA (for POST).

Note: I can able to update/write to server using RTC API's. But I would like to know is there a way to get the server response xml and update the xml then again just POST the updated xml to the server.
So this scenario I would like to know how to construct it and send the request.

You do realize that the service that you are using is an internal one, don't you? As we don't have much publicly available documentation on internal APIs, I doubt that any further information can be provided in this regard.

 Ok. Thanks Donald for the input.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 479
× 457
× 137

Question asked: Sep 15 '16, 6:29 a.m.

Question was seen: 2,957 times

Last updated: Sep 19 '16, 4:25 a.m.

Confirmation Cancel Confirm