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

https://server:port/qm/process/project-areas doesn't work to create a Project Area in RQM

Hi,

This is what I'm doing,

I'm using REST services through https://server:port/qm/process/project-areas to GET PA already created in RQM and seems to work.

The problem comes when I try to POST a XML request to create a PA in RQM using https://server:port/qm/process/project-areas

This is the code, (basically is a POST XML request to the server to create a PA using documentation found in https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi#POST_project_areas_collection)

my ($name, $userAgent) = @_;

    #Post to create PA
    my $message = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<jp06:project-area xmlns:jp06=\"http://jazz.net/xmlns/prod/jazz/process/0.6/\" jp06:name=\"${name}\" jp06:templateId=\"rqm.process.ibm.com.v3\" jp06:templateLocale=\"es\">
    <jp06:summary>${name}</jp06:summary>
    <jp06:description>${name}</jp06:description>
    <jp06:visibility jp06:access=\"PUBLIC\"/>
</jp06:project-area>";   
   
    my $response = $userAgent->request(POST 'https://ccrat.cc.mercadona.es:9443/qm/process/project-areas',
    Content_Type => 'text/xml', Content => $message);
   
    print $response->error_as_HTML unless $response->is_success;

    print $response->as_string;

And this is the answer from the server,

C:\Documents and Settings\Administrator>cqperl C:\tmp\example.pl
<HTML>
<HEAD><TITLE>An Error Occurred</TITLE></HEAD>
<BODY>
<H1>An Error Occurred</H1>
403 Forbidden
</BODY>
</HTML>
HTTP/1.1 403 Forbidden
Cache-Control: no-cache="set-cookie, set-cookie2"
Connection: Close
Date: Thu, 02 Aug 2012 15:46:18 GMT
Server: WebSphere Application Server/7.0
Content-Language: es-ES
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Client-Date: Thu, 02 Aug 2012 16:02:59 GMT
Client-Peer: 172.18.52.34:9443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=US/O=IBM/OU=n1467Node01/OU=n1467Node01Cell/OU=Root Ce
rtificate/CN=n1467.cc1.mercadona.es
Client-SSL-Cert-Subject: /C=US/O=IBM/OU=n1467Node01/OU=n1467Node01Cell/CN=n1467.
cc1.mercadona.es
Client-SSL-Cipher: EDH-RSA-DES-CBC3-SHA
Client-SSL-Warning: Peer certificate not verified
Client-Transfer-Encoding: chunked
Set-Cookie: JSESSIONID=0000o_CMwfaMqCfA05P9TQFvV46:-1; Path=/

Forbidden: is not allowed to use https://server:port/qm/process/project-areas with RQM? I'd like to confirm that.

Is there any possibility to create a PA programatically in RQM???

Thanks!!!

0 votes



3 answers

Permanent link
Hello,

Are you logged in as a user who is a member of the JazzAdmins privileges? Can you create a project area through the RM UI?

Martha (Ruby) Andrews
Jazz L3 Developer

0 votes


Permanent link
Thanks for your response.

Yes, I'm logged as jtsadmin and he can create project areas in RQM UI and belongs to JazzAdmins.

Is it supported to use https://server:port/qm/process/project-areas as entry point to create PA in RQM? That would be nice to know if this is possible/supported.

Thanks a lot!!!

0 votes


Permanent link
Hi issue has gone!!!

I had to set up a header in the request

Referer=https://<host>:9443/qm/admin

And then it works!!!

0 votes

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
× 89

Question asked: Aug 02 '12, 12:16 p.m.

Question was seen: 4,953 times

Last updated: Aug 03 '12, 7:52 a.m.

Confirmation Cancel Confirm