Hi.
I have two a little different configurations (why a little, in both configurations exist catalog Items, but the attribues are different. in both configurations exist document Customer Orders, but the attributes are different).
Between them configured exchange plan within Web-Service. In first configuration save the XML of exchange plan to Value Storage and send it via Web-Service.
But in second configuration at moment reading XML I get the error as:
Quote |
---|
Error calling context method (ReadXML) Data = ReadXML(XMLReader); because: Error transforming XML dat a: [19,38] |
The code in second configuration is:
Code |
---|
StringXML = XMLVAlueStorage.Değer.Get(); XMLReader = New XMLReader; XMLReader.SetString(StringXML); MessageReader = ExchangePlans.CreateMessageReader(); MessageReader.BeginRead(XMLReader); ExchangePlans.DeleteChangeRecords(MessageReader.Sender,MessageReader.ReceivedNo); BeginTransaction(); While CanReadXML(XMLReader) Do Data = ReadXML(XMLReader); If Not Data = Undefined Then Data.DataExchange.Sender = MessageReader.Sender; Data.DataExchange.Load = True; Data.Write(); EndIf; EndDo; CommitTransaction(); MessageReader.EndRead(); XMLReader.Close(); |
When calling method ReadXML(XMLReader) which is startes reading as exchange plan I get error.
But when I debug it, while exchange plan starts reading, it can recognize the type of value (for example, XMLReader.LocalName = "CatalogObject.Items"). But at moment converting the the XML value to DATA it gives me the error. I think it is related with the difference of attributes? Isn't it?
So, any examples for exchange plan works between different configurations?