Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

[Urgent]Issue with passing xml as input to OData service - Malformed URI literal syntax

$
0
0

Dear Experts,

 

I have developed an OData service in my Gateway system. I have created a function import in the service.

 

I have a requirement to pass xml as data to import parameter of this function import.

Below is my xml data which i am passing to import parameter i_xml_value

 

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

<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">

     <asx:values>

          <DATA SEMANTIC_OBJECT="Recommendation-maintainScenario&amp;/Scenarios/SAP_CROSS_SELL_WEB_CHECKOUT "                         COMPLETE_URL="">

          </DATA>

     </asx:values>

</asx:abap>

 

Below is the complete call

 

/sap/opu/odata/sap/MyServiceName/MyFunctionImportName?I_XML_VALUE='

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

<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"><asx:values><DATA SEMANTIC_OBJECT="Recommendation-maintainScenario&amp;/Scenarios/SAP_CROSS_SELL_WEB_CHECKOUT " COMPLETE_URL=""></DATA></asx:values></asx:abap>

'

 

I am getting repose as "Malformed URI literal syntax" (please find attachment), Could you please guide me about how can i send xml as input value to my service function import.

 

Help is much appreciated.

 

Thanks,

Anurag.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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