Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Harm-Jan Abbing 62 posts 102 karma points
    Sep 17, 2012 @ 12:17
    Harm-Jan Abbing
    0

    Error importing XML from webservice

    When importing an xml file from a webservice i get the following error:

    "Error validating the Data source: Data at the root level is invalid. Line 1, position 1."

    De xml is well formed. What could be the problem?

    Harm-Jan

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 17, 2012 @ 12:32
    Richard Soeteman
    0

    What kind of webservice are you consuming? I think you get the full xml from the webservice including the soap message. Could that be the case?

  • Harm-Jan Abbing 62 posts 102 karma points
    Sep 17, 2012 @ 13:12
    Harm-Jan Abbing
    0

    Well, the response contains only the data xml. When copying everything, pasting it in a local xml file and pointing to that from CMSImport it all goes well.

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 17, 2012 @ 13:19
    Richard Soeteman
    0

    Do you have an Url of the webservice then I can take a look.

  • Harm-Jan Abbing 62 posts 102 karma points
    Sep 17, 2012 @ 13:24
    Harm-Jan Abbing
    0

    I just send it to you at [email protected]

  • Harm-Jan Abbing 62 posts 102 karma points
    Oct 02, 2012 @ 08:53
    Harm-Jan Abbing
    0

    To wrap this up:

    The webservice i was using needed a content-type header set for xml. A custom CMSImport add-on package provided by Richard did the trick.

    All running smoothly now. Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft