cancel
Showing results for 
Search instead for 
Did you mean: 

unable to get the output of transaction using URLs in the format of XML

rathnaji_balusu
Explorer
0 Kudos

Hi All,

I am using following URL http://<servername>/XMII/Runner?Transaction=MII_Ran/Arithmetic_transaction&LogType=Info&OutputParame... to get the output in XML format. I am unable to get the output of transaction but it gives the following XML ouput.

<?xml version="1.0" encoding="UTF-8" ?>

- <Rowsets DateCreated="2016-05-10T20:01:29" EndDate="2016-05-10T20:01:29" StartDate="2016-05-10T20:01:29" Version="15.0 SP0 Patch 0 (May 7, 2014)" TransactionID="74">

- <Messages>

<Message>TRANSACTION EXECUTED OK</Message>

</Messages>

</Rowsets>


Can anyone suggest me how to get the output of transaction.


Regards,

Rana Balusu





Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rathna,

The URL format which you are using to Run the transaction is correct.

You need to add 2 more things to that.

Mention the output parameter [xml variable in transaction which holds your result] name

and add content type as xml

Ex : In my Transaction i have output parameter named "OutputXML" and it has the xml result of the transaction.

Then I Run my URL like this.

http://<server>/XMII/Runner?Transaction=<Path of Txn> &Server=XacuteConnector&Mode=Query&OutputParameter=OutputXML&Content-Type=text/xml

in the outputparameter variable i mentioned the name as "OutputXML"

and content type as text/xml

It results me the Transaction result in the format of xml.

Regards,

Sriram

rathnaji_balusu
Explorer
0 Kudos

Hi Sriram,

Thank you for your reply.

Still i am facing the problem. I have added two thigs which was mentioned by you but i couldn't get the   output of transaction.

I have developed the transaction and mapped the Trx output to transaction variable w_res. I need to get the w_res value in the XML. I am using below link. Can you please suggest me how to get the output of transaction using URLs.

http://<server>/XMII/Runner?Transaction=MII_Yash/Rathnaji/Arithmetic&OutputParameter=,*&Content-Type...

Former Member
0 Kudos

Can you pls try this

http://<server>/XMII/Runner?Transaction=MII_Yash/Rathnaji/Arithmetic&OutputParameter=w_res&Content-Type=text/xml

Regards,

Sriram

0 Kudos

Hi Rathnaji,

wrap the transaction into the xacute query and select the output parameter, map the input parameters of the transaction to the input parameters of the Xacute_Query and then call the url.

if you are using the url in ajax call then you can use the following code.

jQuery.ajax({

  url: "/XMII/Illuminator?QueryTemplate=XACUTE_QUERY name",

  type:"GET",

  data:{

  "Param.1":Param.1_value,    // specify the parameters like this

  "Param.2":Param.2_value,

  "Content-Type":"text/xml"     //output content in xml

  },

  success: function(data, txt, jqXHR){

      //success

  },

  error: function( jqXHR, textStatus, errorThrown){

      //failure

  }

  });

hope this may work

Regards,

Mallesh