Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 11560

Different out when using the XMLAPI with Java and CLI

$
0
0

Hi,

 

I have an issue regarding the xmlapi option.

 

My problem is that using the option --xmlapi with the CLI or using com.mks.connect.AbstractCmdRunner.executeWithXML(String[] cmd) with the java API gives different output for the node Response//WorkItems//WorkItem//Field//Value

 

While the CLI has an additional node TokenValue containing the value of the "Value", the java API gives the value as part of the Value node.

 

Example:

<Field name="projectType">
  <Value dataType="string">
    <TokenValue>Variant</TokenValue>
  </Value>
</Field>
 

vs.

<Field name="projectType">
  <Value dataType="string">Variant</Value>
</Field>

I wonder if one of you has an explanation - or even better a solution to align both outputs to whatever version.

 

This example is part of result from si sandboxinfo --xmlapi

 

Veikko


Viewing all articles
Browse latest Browse all 11560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>