Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to configure cachespec.xml to cache Object Array

 
Ashok Haluvarthi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I have requirement to cache the soap request which includes object array. I was able to cache individual parameters, but not able to cache array objects.

Here is my SoapRequest.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="http://xmlns.mmc.com/common/headers/2005/12/ServiceCallContext" xmlns:m1="http://xmlns.mmc.com/common/headers/2005/12/ServiceProcessingDirectives">
<SOAP-ENV:Header>
<m0 perationName>0</m0 perationName>
<m0:LogTrackingID>0</m0:LogTrackingID>
<m0:SessionId>0</m0:SessionId>
<m0:From>http://www.altova.com</m0:From>
<m0:Version>0</m0:Version>
<m0:SecurityReference>0</m0:SecurityReference>
<m1:RequestLoggingLevel>DEBUG</m1:RequestLoggingLevel>
<m1:TimeoutMillis>0</m1:TimeoutMillis>
<m1:ReturnPerfStats>true</m1:ReturnPerfStats>
<m1:MockUpdate>true</m1:MockUpdate>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<m:getAsset xmlns:m="http://cds.dcl.microsys.com">
<assetRequest>
<depth>0</depth>
<guid />
<name>/AB/TestArea/TestJames</name>
<revision>0</revision>
<status />
<asOfDate xsi:nil="true" />
</assetRequest>
<contexts>
<appContext>
<id>NB</id>
<realm />
<securityId>ECM021458795</securityId>
</appContext>
<userContext>
<userProperties>
<UserProperty>
<name>Language</name>
<value>ES</value>
<name>Language</name>
<value>KA</value>
</UserProperty>
</userProperties>
</userContext>
</contexts>
<templates>
<templatesToApply>
<Template>
<targetAssetGuid/>
<templateName>0</templateName>
<templateGuid/>
<targetAssetName/>
</Template>
</templatesToApply>

</templates>
</m:getAsset>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

And here is my cachespec.xml for above soap request.

<cache-id>
<component id="" type="serviceOperation">
<value>http://cds.dcl.microsys.com:getAsset</value>
<required>true</required>
</component>
<component id="depth" type="serviceOperationParameter"/>
<component id="guid" type="serviceOperationParameter"/>
<component id="name" type="serviceOperationParameter"/>
<component id="revision" type="serviceOperationParameter"/>
<component id="status" type="serviceOperationParameter"/>
<component id="id" type="serviceOperationParameter"/>
<component id="realm" type="serviceOperationParameter"/>
<component id="securityId" type="serviceOperationParameter"/>
<component id="templateName" type="serviceOperationParameter"/>
<component id="targetAssetGuid" type="serviceOperationParameter"/>
<component id="templateGuid" type="serviceOperationParameter"/>
<component id="targetAssetName" type="serviceOperationParameter"/>

<component id="name" type="serviceOperationParameter" multipleIDs="true">
<required>true</required>
</component>
<component id="value" type="serviceOperationParameter" multipleIDs="true">
<required>true</required>
</component>

<component id="name" type="serviceOperationParameter" multipleIDs="true">
<required>true</required>
</component>
<component id="value" type="serviceOperationParameter" multipleIDs="true">
<required>true</required>
</component>

<timeout>86400</timeout>
</cache-id>

Here I was able to cache all the SOAPRequest attributes but I was not able to configure if multiple name value exist in the UserProperty element

<UserProperty>
<name>Language</name>
<value>ES</value>
<name>Language</name>
<value>KA</value>
</UserProperty>

If any one have idea how to configure for the same.

Thanks
Ashok
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic