V4run4
05-17-2007, 10:03 AM
HI!!!
I need help.
I have to bind this xml file, sent by a servlet, to a tree.
----------------------------------------------------------
This is my XML
<?xml version="1.0" encoding="UTF-8"?>
<root>
<abstractServiceInfosList>
<abstractServiceInfos
bindingKey="6C5C5A30-023B-11DC-B84C-AD22846FA417" serviceKey="6C59E930-023B-11DC-B84C-A52B7BFAAC79">
<serviceDescriptionInfo>
<confidenceLevel type="percentage">0.0pts[0%]</confidenceLevel>
<tModel authorizedName="test supplier"
operator="adsl.rcost.unisannio.it" tModelKey="uuid:62E87600-023B-11DC-B84C-BBA864D66FD3">
<name>Accomodation</name>
<overviewDoc>
<overviewURL>http://dini.eng.it:8080/axis/services/Hrs?wsdl</overviewURL>
</overviewDoc>
<categoryBag>
<keyedReference keyName="WSDL entity type"
keyValue="portType" tModelKey="uuid:6E090AFA-33E5-36EB-81B7-1CA18373F457"/>
<keyedReference keyName="OWL ontology"
keyValue="http://eng.it/MAIS_PE/ontology/service/" tModelKey="uuid:A3AD3BF0-022F-11DC-B84C-A4750E4D8C26"/>
<keyedReference keyName="SAWSDL concept"
keyValue="bookHotel" tModelKey="uuid:1F4179B0-0231-11DC-B84C-EFA0F435418A"/>
</categoryBag>
</tModel>
</serviceDescriptionInfo>
</abstractServiceInfos>
<abstractServiceInfos
bindingKey="FF547790-0205-11DC-B84C-FAAB07968950" serviceKey="FF520690-0205-11DC-B84C-9A0333989FD9">
<serviceDescriptionInfo>
<confidenceLevel type="semantic">0.0pts[0%]</confidenceLevel>
<tModel authorizedName="rcost supplier"
operator="adsl.rcost.unisannio.it" tModelKey="uuid:FF24B500-0205-11DC-B84C-E628CE62EF8D">
<name>MonographShopping</name>
<description>This service adds Monograph as an item in the session of a authorised person.</description>
<overviewDoc>
<overviewURL>http://127.0.0.1/services/1.1/monographperson__service.owls</overviewURL>
</overviewDoc>
<categoryBag>
<keyedReference keyName="Ontology entity type"
keyValue="OWL" tModelKey="uuid:E10750E0-D8A8-11DB-90E0-8981555019BE"/>
<keyedReference keyName="OWLS entity type"
keyValue="profile" tModelKey="uuid:A504F060-D935-11DB-B060-FBD6FDC08CB1"/>
<keyedReference keyName="WSDL portType reference"
keyValue="uuid:FED3AED0-0205-11DC-B84C-94F679404286" tModelKey="uuid:082B0851-25D8-303C-B332-F24A6D53E38E"/>
<keyedReference keyName="OWL ontology reference"
keyValue="uuid:F0B9F290-DE11-11DB-B290-ED906EF1F3B8" tModelKey="uuid:23E596D0-D933-11DB-96D0-C0363660F654"/>
</categoryBag>
</tModel>
</serviceDescriptionInfo>
<serviceDescriptionInfo>
<confidenceLevel type="percentage">0.0pts[0%]</confidenceLevel>
<tModel authorizedName="rcost supplier"
operator="adsl.rcost.unisannio.it" tModelKey="uuid:FED3AED0-0205-11DC-B84C-94F679404286">
<name>BinaryMathSrv</name>
<overviewDoc>
<overviewURL>http://127.0.0.1/wsdl/monographperson__service.wsdl</overviewURL>
</overviewDoc>
<categoryBag>
<keyedReference keyName="WSDL entity type"
keyValue="portType" tModelKey="uuid:6E090AFA-33E5-36EB-81B7-1CA18373F457"/>
<keyedReference keyName="namespace"
keyValue="http://DefaultNamespace" tModelKey="uuid:D01987D1-AB2E-3013-9BE2-2A66EB99D824"/>
</categoryBag>
</tModel>
</serviceDescriptionInfo>
</abstractServiceInfos>
</abstractServiceInfosList>
</root>
---------------------------------------------------------------------------------------
This is how I declared the tree
<dataset id="find_Abstract" name="find_Abstract" src="http://localhost:8080/helo2/app/action/BroogleInquiry.FindAbstract"/>
<tree datapath="find_Abstract:/" clip="true" height="400" autoscroll="true" showroot="false">
<tree data text="service" autoscroll="true">
<tree text="BindingKey" autoscroll="true">
<tree text="$path{'abstractServiceInfosList/abstractServiceInfos/@bindingKey'}" icon="null" isleaf="true" autoscroll="true"/>
</tree>
<tree text="ServiceKey" autoscroll="true">
<tree text="$path{'abstractServiceInfosList/abstractServiceInfos/'@serviceKey'}" icon="null" isleaf="true" autoscroll="true"/>
</tree>
<tree text="confidenceLevel" autoscroll="true">
<tree text="$path{'serviceDescriptionInfo/confidenceLevel/text()'}" icon="null" isleaf="true" ></tree>
</tree>
<tree text="TModel" autoscroll="true">
<tree text="TModelKey" autoscroll="true">
<tree text="$path{'serviceDescriptionInfo/tModel/@tModelKey'}" icon="null" isleaf="true" autoscroll="true"></tree>
</tree>
<tree text="Name" autoscroll="true">
<tree text="$path{'serviceDescriptionInfo/tModel/name/text()'}" icon="null" isleaf="true" autoscroll="true"></tree>
</tree>
<tree text="category">
<tree text="keyRef">
<tree text="keyName" icon="null">
<tree text="$path{'serviceDescriptionInfo/tModel/categoryBag/keyedReference/@keyName'}" icon="null" isleaf="true">
</tree>
</tree>
<tree text="keyValue">
<tree text="$path{'serviceDescriptionInfo/tModel/categoryBag/keyedReference/@keyValue'}" icon="null" isleaf="true"/>
</tree>
<tree text="TModelKey">
<tree text="$path{'serviceDescriptionInfo/tModel/categoryBag/keyedReference/@tModelKey'}" icon="null" isleaf="true"/>
</tree>
</tree>
</tree>
</tree>
</tree>
</tree>
I'm not able to show keyedReference. Any idea?? And the autoscroll doesn't work!
I've tried opttree and k_tree too, without results.
Please help me!!
I need help.
I have to bind this xml file, sent by a servlet, to a tree.
----------------------------------------------------------
This is my XML
<?xml version="1.0" encoding="UTF-8"?>
<root>
<abstractServiceInfosList>
<abstractServiceInfos
bindingKey="6C5C5A30-023B-11DC-B84C-AD22846FA417" serviceKey="6C59E930-023B-11DC-B84C-A52B7BFAAC79">
<serviceDescriptionInfo>
<confidenceLevel type="percentage">0.0pts[0%]</confidenceLevel>
<tModel authorizedName="test supplier"
operator="adsl.rcost.unisannio.it" tModelKey="uuid:62E87600-023B-11DC-B84C-BBA864D66FD3">
<name>Accomodation</name>
<overviewDoc>
<overviewURL>http://dini.eng.it:8080/axis/services/Hrs?wsdl</overviewURL>
</overviewDoc>
<categoryBag>
<keyedReference keyName="WSDL entity type"
keyValue="portType" tModelKey="uuid:6E090AFA-33E5-36EB-81B7-1CA18373F457"/>
<keyedReference keyName="OWL ontology"
keyValue="http://eng.it/MAIS_PE/ontology/service/" tModelKey="uuid:A3AD3BF0-022F-11DC-B84C-A4750E4D8C26"/>
<keyedReference keyName="SAWSDL concept"
keyValue="bookHotel" tModelKey="uuid:1F4179B0-0231-11DC-B84C-EFA0F435418A"/>
</categoryBag>
</tModel>
</serviceDescriptionInfo>
</abstractServiceInfos>
<abstractServiceInfos
bindingKey="FF547790-0205-11DC-B84C-FAAB07968950" serviceKey="FF520690-0205-11DC-B84C-9A0333989FD9">
<serviceDescriptionInfo>
<confidenceLevel type="semantic">0.0pts[0%]</confidenceLevel>
<tModel authorizedName="rcost supplier"
operator="adsl.rcost.unisannio.it" tModelKey="uuid:FF24B500-0205-11DC-B84C-E628CE62EF8D">
<name>MonographShopping</name>
<description>This service adds Monograph as an item in the session of a authorised person.</description>
<overviewDoc>
<overviewURL>http://127.0.0.1/services/1.1/monographperson__service.owls</overviewURL>
</overviewDoc>
<categoryBag>
<keyedReference keyName="Ontology entity type"
keyValue="OWL" tModelKey="uuid:E10750E0-D8A8-11DB-90E0-8981555019BE"/>
<keyedReference keyName="OWLS entity type"
keyValue="profile" tModelKey="uuid:A504F060-D935-11DB-B060-FBD6FDC08CB1"/>
<keyedReference keyName="WSDL portType reference"
keyValue="uuid:FED3AED0-0205-11DC-B84C-94F679404286" tModelKey="uuid:082B0851-25D8-303C-B332-F24A6D53E38E"/>
<keyedReference keyName="OWL ontology reference"
keyValue="uuid:F0B9F290-DE11-11DB-B290-ED906EF1F3B8" tModelKey="uuid:23E596D0-D933-11DB-96D0-C0363660F654"/>
</categoryBag>
</tModel>
</serviceDescriptionInfo>
<serviceDescriptionInfo>
<confidenceLevel type="percentage">0.0pts[0%]</confidenceLevel>
<tModel authorizedName="rcost supplier"
operator="adsl.rcost.unisannio.it" tModelKey="uuid:FED3AED0-0205-11DC-B84C-94F679404286">
<name>BinaryMathSrv</name>
<overviewDoc>
<overviewURL>http://127.0.0.1/wsdl/monographperson__service.wsdl</overviewURL>
</overviewDoc>
<categoryBag>
<keyedReference keyName="WSDL entity type"
keyValue="portType" tModelKey="uuid:6E090AFA-33E5-36EB-81B7-1CA18373F457"/>
<keyedReference keyName="namespace"
keyValue="http://DefaultNamespace" tModelKey="uuid:D01987D1-AB2E-3013-9BE2-2A66EB99D824"/>
</categoryBag>
</tModel>
</serviceDescriptionInfo>
</abstractServiceInfos>
</abstractServiceInfosList>
</root>
---------------------------------------------------------------------------------------
This is how I declared the tree
<dataset id="find_Abstract" name="find_Abstract" src="http://localhost:8080/helo2/app/action/BroogleInquiry.FindAbstract"/>
<tree datapath="find_Abstract:/" clip="true" height="400" autoscroll="true" showroot="false">
<tree data text="service" autoscroll="true">
<tree text="BindingKey" autoscroll="true">
<tree text="$path{'abstractServiceInfosList/abstractServiceInfos/@bindingKey'}" icon="null" isleaf="true" autoscroll="true"/>
</tree>
<tree text="ServiceKey" autoscroll="true">
<tree text="$path{'abstractServiceInfosList/abstractServiceInfos/'@serviceKey'}" icon="null" isleaf="true" autoscroll="true"/>
</tree>
<tree text="confidenceLevel" autoscroll="true">
<tree text="$path{'serviceDescriptionInfo/confidenceLevel/text()'}" icon="null" isleaf="true" ></tree>
</tree>
<tree text="TModel" autoscroll="true">
<tree text="TModelKey" autoscroll="true">
<tree text="$path{'serviceDescriptionInfo/tModel/@tModelKey'}" icon="null" isleaf="true" autoscroll="true"></tree>
</tree>
<tree text="Name" autoscroll="true">
<tree text="$path{'serviceDescriptionInfo/tModel/name/text()'}" icon="null" isleaf="true" autoscroll="true"></tree>
</tree>
<tree text="category">
<tree text="keyRef">
<tree text="keyName" icon="null">
<tree text="$path{'serviceDescriptionInfo/tModel/categoryBag/keyedReference/@keyName'}" icon="null" isleaf="true">
</tree>
</tree>
<tree text="keyValue">
<tree text="$path{'serviceDescriptionInfo/tModel/categoryBag/keyedReference/@keyValue'}" icon="null" isleaf="true"/>
</tree>
<tree text="TModelKey">
<tree text="$path{'serviceDescriptionInfo/tModel/categoryBag/keyedReference/@tModelKey'}" icon="null" isleaf="true"/>
</tree>
</tree>
</tree>
</tree>
</tree>
</tree>
I'm not able to show keyedReference. Any idea?? And the autoscroll doesn't work!
I've tried opttree and k_tree too, without results.
Please help me!!