Back to Collection Items
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Text.StringBuilder.ToString()
at System.IO.StreamReader.ReadToEnd()
at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
at System.IO.File.ReadAllText(String path)
at ChilkatApi.GenBase.ApiDefData(String className)
at ChilkatApi.XClass.LoadClass(String className, Log log)
at ChilkatApi.ApiCache.getApiClass(String className, Log log)
at ChilkatApi.ApiCache.getApiProperty(String className, String propName, Log log)
at ChilkatCode.CodeGen.getXProp(String className, String propName)
at ChilkatCode.CodeGen.getPropType(String varName, String propName)
at ChilkatCode.CodeGen.emitAssignment(String varName, String propName, String op, Xml xml)
at ChilkatCode.Parser.assignment()
at ChilkatCode.Parser.statement()
at ChilkatCode.Parser.Chilkat()
at ChilkatCode.Parser.Parse()
at ChilkatCode.Compile.CompileForToolsIO(String srcCode, String langHashKey, StringBuilder sbHtmlOut)
Curl Command
curl -X POST
-u '{{webservice_key}}:password'
-d '<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<article>
<title>
<language id="1">
<![CDATA[My title in english]]>
</language>
<language id="2">
<![CDATA[Mon titre en français]]>
</language>
</title>
<type>
<![CDATA[Blog post]]>
</type>
</article>
</prestashop>'
https://localhost:8080/api/articles
Postman Collection Item JSON
{
"name": "Create article",
"request": {
"method": "POST",
"header": [
],
"body": {
"mode": "raw",
"raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<prestashop xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <article>\n <title>\n <language id=\"1\">\n <![CDATA[My title in english]]>\n </language>\n <language id=\"2\">\n <![CDATA[Mon titre en français]]>\n </language>\n </title>\n <type>\n <![CDATA[Blog post]]>\n </type>\n </article>\n</prestashop>",
"options": {
"raw": {
"language": "xml"
}
}
},
"url": {
"raw": "{{webservice_url}}/api/articles",
"host": [
"{{webservice_url}}"
],
"path": [
"api",
"articles"
]
}
},
"response": [
]
}