Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8392

REST call response encoding

$
0
0

Hi All,


I have a json message received from http call. If I set <par id="htta.returnpltypeforce" value="json"> in call payload then my response is fine, for example:

<bfa:io>

    <bfa:object>

        <bfa:object name="response">

            <bfa:string name="error">1</bfa:string>

            <bfa:string name="errorMessage">Błąd autoaryzacji</bfa:string>

        </bfa:object>

    </bfa:object>

</bfa:io>

If I don't make B1if to automatically convert response from JSON to XML and set <par id="htta.returnpltypeforce" value=""> then my response is: {"response": { "error" : "1", "errorMessage" : "Błąd autoryzacji"}}.


The thing is that when the response is not converted then Błąd looks like Błąd.How to solve this?


Kind Regards,

Szymon


Viewing all articles
Browse latest Browse all 8392

Trending Articles



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