Quantcast
Viewing all articles
Browse latest Browse all 2504

Getting invalid xml when making post call for get operation using XML API (1 Comment)

Topic by Prabhat Ranjan

Hi, I want to get all the field with the given id in below request.

 <?xml version="1.0" encoding="UTF8"?>
 <Get xmlns="http://www.rightnow.com/objects">
    <RNObject xmlns:p0="http://www.rightnow.com/objects" xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xsi:type="p0:RNIncident">
        <idinteger>26047</idinteger>
     </RNObject>
  </Get>
 

Response:

<?xml version="1.0" encoding="UTF-8"?>
<connector_ret>
    <function name = "incident_get">
        <ret_val name = "incident" type = "pair">
            <pair name = "thread" type = "pair">
                <pair name = "thread_entry0" type = "pair"> 
                    <pair name = "note" type = "string">Adding attchement -PPT & PDF</pair>
                </pair>
            </pair>
            <pair name = "updated" type = "integer">1370366587</pair>
        </ret_val>
    </function>
</connector_ret>

In the above response I can see "&" and XML doesn't allow "&". So the response looks like  invalid XML which I am getting from Rightnow Server.

So I am wondering..if that is issue with RightNow because It should return the valid xml.

appreciate your response

Thanks

Prabhat Ranjan


 

 

 


Viewing all articles
Browse latest Browse all 2504

Trending Articles