on 05-10-2016 3:35 PM
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>
Can anyone suggest me how to get the output of transaction.
Regards,
Rana Balusu
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Can you pls try this
http://<server>/XMII/Runner?Transaction=MII_Yash/Rathnaji/Arithmetic&OutputParameter=w_res&Content-Type=text/xml
Regards,
Sriram
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
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.