Using RestDataSource, and recent upgrade from SVN, now i'have errors with syntax of XML :
RestDataSource XML : document is not well-formed : Firebug alert, and SAX Exception
Firebug :
Server siden when reading/parsing XML :
On your showcase, i obtain same result :
Why have you add $ character ?
Previously it was like :
How to remove $ char, for a well formed XML ? Something to set ?
RestDataSource XML : document is not well-formed : Firebug alert, and SAX Exception
Firebug :
Code:
XML Erreur d'analyse XML : mal formé Emplacement : moz-nullprincipal:{a26ffc1e-5705-40eb-beb9-0a7670b7044b} Numéro de ligne 4, Colonne 19 : <isc_Class$RestDataSource_1> ------------------^ Source <request> <data> <isc_Class$RestDataSource_1> <myfield>7AS</myfield> </isc_Class$RestDataSource_1> </data> <dataSource>isc_Class$RestDataSource_1</dataSource> <operationType>add</operationType> <oldValues></oldValues> </request>
Code:
org.xml.sax.SAXParseException: Element type "isc_Class" must be followed by either attribute specifications, ">" or "/>".
Code:
POST http://www.smartclient.com/smartgwt/showcase/data/dataIntegration/xml/responses/country_add_rest.xml 200 OK 362ms In POST : XML Erreur d'analyse XML : mal formé Emplacement : moz-nullprincipal:{625bac02-16b7-4f45-92f3-07af4b61cb92} Numéro de ligne 4, Colonne 37 : <isc_RestfulDataSourceSample$1_1> ------------------------------------^ Source <request> <data> <isc_RestfulDataSourceSample$1_1> <countryCode>A1</countryCode> <countryName>New Value</countryName> <capital>New Value</capital> <continent>New Value</continent> </isc_RestfulDataSourceSample$1_1> </data> <dataSource>isc_RestfulDataSourceSample$1_1</dataSource> <operationType>add</operationType> <componentId>isc_ListGrid_1</componentId> <oldValues></oldValues> </request>
Previously it was like :
Code:
<request> <data> <isc_OID_1> <myfield>ALI</myfield> </isc_OID_1> </data> <dataSource>isc_OID_1</dataSource> <operationType>remove</operationType> <operationId></operationId> <startRow></startRow> <endRow></endRow> <sortBy></sortBy> <textMatchStyle></textMatchStyle> <oldValues></oldValues> </request>
Comment