unable to get Resourceshape in 9.6.1 doors version [message #1817082] |
Fri, 15 November 2019 04:44  |
Eclipse User |
|
|
|
Hello Team,
I had used DoorsOauthSample example to get the requirements from doors 9.5.1 version and I can perform other operations like create/update successfully.
But when I start using this example for 9.6.1 doors version its failing at
RmUtil -> lookupRequirementsInstanceShapes method
ResourceShape resourceShape = response.getEntity(ResourceShape.class);
The above line returns null.
I had compared the xml responses for 9.5.1 & 9.6.1 versions but could not see much differences.
Why this getEntity failed to get the response in ResourceShape pojo format even though the responses looks similar.
I have pasted first few lines of xml responses below for both versions,
in doors 9.5.1 :
------------------
<?xml version="1.0"?>
<rdf:RDF
xmlns:dcterms="http: //purl.org/dc/terms/"
xmlns:rdf="http: //www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:oslc="http: //open-services.net/ns/core#"
xmlns:oslc_rm="http: //open-services.net/ns/rm#">
<oslc:ResourceShape rdf:about="http: //brt6-107-192:8080/dwa/rm/oslc/shape/requirement/urn:rational:ers-5cac4c35148b45a3:1-5cac4c35148b45a3-M-00000042">
<oslc:property>
<oslc:Property>
<oslc:readOnly rdf:datatype="http: //www.w3.org/2001/XMLSchema#boolean"
>true</oslc:readOnly>
<dcterms:title rdf:parseType="Literal">Last Modified Time</dcterms:title>
<oslc:valueType rdf:resource="http: //www.w3.org/2001/XMLSchema#dateTime"/>
<oslc:occurs rdf:resource="http: //open-services.net/ns/core#Exactly-one"/>
<oslc:propertyDefinition rdf:resource="http: //brt6-107-192:8080/dwa/rm/urn:rational::1-5cac4c35148b45a3-M-00000042/types/attrDef-8"/>
<oslc:name rdf:datatype="http: //www.w3.org/2001/XMLSchema#string"
>attrDef-8</oslc:name>
</oslc:Property>
</oslc:property>
.......
In Doors 9.6.1:
------------------
<?xml version="1.0"?>
<rdf:RDF
xmlns:dcterms="http: //purl.org/dc/terms/"
xmlns:rdf="http: //www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:oslc="http: //open-services.net/ns/core#"
xmlns:oslc_rm="http: //open-services.net/ns/rm#"
xmlns:doorsAttribute="http: //jazz.net/ns/rm/doors/attribute#">
<oslc:ResourceShape rdf:about="http: //abc.com:8080/dwa/rm/oslc/shape/requirement/urn:rational::1-5da752e716151945-M-00000082">
<oslc:property>
<oslc:Property>
<oslc:readOnly rdf:datatype="http: //www.w3.org/2001/XMLSchema#boolean"
>true</oslc:readOnly>
<dcterms:title rdf:parseType="Literal">Last Modified Time</dcterms:title>
<oslc:valueType rdf:resource="http: //www.w3.org/2001/XMLSchema#dateTime"/>
<oslc:occurs rdf:resource="http: //open-services.net/ns/core#Exactly-one"/>
<oslc:propertyDefinition rdf:resource="http: //abc.com:8080/dwa/rm/urn:rational::1-5da752e716151945-M-00000082/types/attrDef-8"/>
<oslc:name rdf:datatype="http: //www.w3.org/2001/XMLSchema#string"
>attrDef-8</oslc:name>
</oslc:Property>
</oslc:property>
<oslc:property>
..........
If you see the above response only addition in 9.6.1 version is
xmlns:doorsAttribute="http: //jazz.net/ns/rm/doors/attribute#">
<oslc:ResourceShape
But is this causing the issue or is there any property do i need to set for fixing this issue?
Please help me to fix this issue.
Thanks in advance.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02776 seconds