AnsweredAssumed Answered

I am facing a problem while parsing an XML and to create an arguments while creating a VS. Could you please tell me how I can parse the XML without writing scriptable protocol.

Question asked by DeepuSrinivas on Feb 28, 2017
Latest reply on Feb 28, 2017 by Joel NeSmith

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ActivateNumberRequest SYSTEM "ActivateNumberRequest.dtd">
<ActivateNumberRequest>
<Header>
<UserId>OPT1234</UserId>
<TransactId>OPT2000022412345</TransactId>
<MessageId>OPT2000022412341</MessageId>
</Header>
<CPSD>OPT</CPSD>
<ServiceNumber>1800500500</ServiceNumber>
<ServiceNumber>1800500400</ServiceNumber>
<ROUHolder/>
<ROUHolder>Mr. ROBERT JONES</ROUHolder>
</ActivateNumberRequest>

 

The problem is <!DOCTYPE ActivateNumberRequest SYSTEM "ActivateNumberRequest.dtd">, how I remove this before creating a request body.

 

Works perfectly fine when I test online - XPATH Tester and Evaluator - Online Toolz  and writing xpath as /ActivateNumberRequest/Header/UserId/text()

 

Arguments are not created in VSI, eventhough I am able to add arguments when creating VS.

 

Is it bug in CA DevTest as arguments are not created?

Outcomes