Thanks Steve! I will look into that. While it still does not work properly, I can get further by using an ImportTextFromURL module then save the text to a file with a .xml extension then immediately import it back into the flow... the import works fine which seems to indicate TBC can parse the on-disk version... maybe this is related to what Steve suggested...
However, when the imported XML hits the next module, a ConvertXMLToRDF, it fails with the same parsing error... I'm very stuck... all of this worked fine on 4.3.1. On Wed, Jul 16, 2014 at 5:57 PM, Steve Ray <[email protected]> wrote: > I had a similar issue, which turned out to be the web server was sending > compressed data. I found that the header issued by TBC was saying it could > accept a compressed result, but it really cannot. Check the header on your > outgoing http message and see what it says. > > > > My workaround for now is to fetch my (JSON) data using a browser (that > knows how to uncompress data), saving to a file, and then having TBC open > the file instead of the URL. Not ideal. > > > > > > - Steve > > > > Steven R. Ray, Ph.D. > > Distinguished Research Fellow > > Carnegie Mellon University > > NASA Research Park > > Building 23 (MS 23-11) > > P.O. Box 1 > Moffett Field, CA 94305-0001 > > Email: [email protected] > > Phone: (650) 587-3780 > > Cell: (202) 316-6481 > > Skype: steverayconsulting > > [image: 10yr-logo-sm] > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Tim Smith > *Sent:* Wednesday, July 16, 2014 2:48 PM > *To:* [email protected] > *Subject:* [topbraid-users] XML processing 4.3.1 vs 4.4.1 > > > > I have an XML to RDF processing pipeline that begins with a call to a web > service that returns XML. > > Everything worked in 4.3.1 but using 4.4.1, once I get past the "get XML > from URL" module (e.g.. to a convert XML to RDF or a Save XML... module) > TBC errors with the following: > > org.topbraid.spin.sparqlmotion.modules.SMException: Failed to parse XML > document for variable xml: > com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: > Invalid byte 1 of 1-byte UTF-8 sequence. > > at > org.topbraid.spin.sparqlmotion.modules.AbstractSMModule.getConfigXMLDocument(AbstractSMModule.java:734) > > I have saved the XML as text and loaded it into XMLSpy and it parses just > fine. I've also pulled it directly from the web service into XMLSpy, again > with no issues. Lastly, I opened it in TBC as an XML file and the Eclipse > XML editor has no issues parsing it. > > What has changed? How to I debug this? I cannot find a way to get TBC to > tell me where in the file the error occurs. > > This is a critical issue for me since we have to move to 4.4.1 and this is > a key web service that we routinely consume. > > Thanks for your help. > > Tim > > -- > -- You received this message because you are subscribed to the Google > Group "TopBraid Suite Users", the topics of which include Enterprise > Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid > Insight, SPARQLMotion, SPARQL Web Pages and SPIN. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/topbraid-users?hl=en > --- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > > -- > -- You received this message because you are subscribed to the Google > Group "TopBraid Suite Users", the topics of which include Enterprise > Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid > Insight, SPARQLMotion, SPARQL Web Pages and SPIN. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/topbraid-users?hl=en > --- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
