Webservice string problem

Discussion in 'ASP .Net' started by Erik, Jan 27, 2004.

  1. Erik

    Erik Guest

    Does anyone know why this happens? When returning the XML string through the
    webservice the XML string is filled with escape characters:

    XML string before webservice transfer:

    <Node ObjectID="d0bf7c3a-5305-4020-be1f-75bcb23adab4"
    MasterID="d8665536-2ebe-4bd8-a176-9fc53ab8fadf"
    ParentID="f5ea1f44-5cbf-44d9-846d-74a81ec57786" ObjectName="Folder1"
    ObjectTypeID="afed7347-d07e-44b4-b467-3a15dbd8dfbc"
    ObjectTypeName="lblFolder" ObjectTypeIconsName="folder"
    TemplatePath="abc.aspx" Children="161" ChildsVisibleInTree="1">

    XML string after webservice transfer (browser):

    <Node ObjectID=\"d0bf7c3a-5305-4020-be1f-75bcb23adab4\"
    MasterID=\"d8665536-2ebe-4bd8-a176-9fc53ab8fadf\"
    ParentID=\"f5ea1f44-5cbf-44d9-846d-74a81ec57786\" ObjectName=\"Folder1\"
    ObjectTypeID=\"afed7347-d07e-44b4-b467-3a15dbd8dfbc\"
    ObjectTypeName=\"lblFolder\" ObjectTypeIconsName=\"folder\"
    TemplatePath=\"abc.aspx.aspx\" Children=\"161\" ChildsVisibleInTree=\"1\">

    Example 2:

    Before transfer:

    <Node ObjectID="43d3bd44-4a53-4fdb-bf68-68bb679f0c60"
    MasterID="e595fb24-3d6f-4ffb-a86f-3f97f90ee84f"
    ParentID="d8665536-2ebe-4bd8-a176-9fc53ab8fadf" ObjectName="a text.
    Kompetenscentrum
    Erfarenheter och möjligheter"
    ObjectTypeID="28f907bd-3981-4540-8bd4-3c673f8362ec"
    ObjectTypeName="lblDocument" ObjectTypeIconsName="document" TemplatePath=""
    Children="0" ChildsVisibleInTree="1" />

    after:

    <Node ObjectID=\"43d3bd44-4a53-4fdb-bf68-68bb679f0c60\"
    MasterID=\"e595fb24-3d6f-4ffb-a86f-3f97f90ee84f\"
    ParentID=\"d8665536-2ebe-4bd8-a176-9fc53ab8fadf\" ObjectName=\"a text.
    Kompetenscentrum Erfarenheter och möjligheter\"
    ObjectTypeID=\"28f907bd-3981-4540-8bd4-3c673f8362ec\"
    ObjectTypeName=\"lblDocument\" ObjectTypeIconsName=\"document\"
    TemplatePath=\"\" Children=\"0\" ChildsVisibleInTree=\"1\"/>

    Any clues?

    Rgrds

    Erik
     
    Erik, Jan 27, 2004
    #1
    1. Advertising

  2. Erik

    Hans Kesting Guest

    "Erik" <> wrote in message
    news:...
    > Does anyone know why this happens? When returning the XML string through

    the
    > webservice the XML string is filled with escape characters:
    >
    > XML string before webservice transfer:
    >
    > <Node ObjectID="d0bf7c3a-5305-4020-be1f-75bcb23adab4"
    > MasterID="d8665536-2ebe-4bd8-a176-9fc53ab8fadf"
    > ParentID="f5ea1f44-5cbf-44d9-846d-74a81ec57786" ObjectName="Folder1"
    > ObjectTypeID="afed7347-d07e-44b4-b467-3a15dbd8dfbc"
    > ObjectTypeName="lblFolder" ObjectTypeIconsName="folder"
    > TemplatePath="abc.aspx" Children="161" ChildsVisibleInTree="1">
    >
    > XML string after webservice transfer (browser):
    >
    > <Node ObjectID=\"d0bf7c3a-5305-4020-be1f-75bcb23adab4\"
    > MasterID=\"d8665536-2ebe-4bd8-a176-9fc53ab8fadf\"
    > ParentID=\"f5ea1f44-5cbf-44d9-846d-74a81ec57786\" ObjectName=\"Folder1\"
    > ObjectTypeID=\"afed7347-d07e-44b4-b467-3a15dbd8dfbc\"
    > ObjectTypeName=\"lblFolder\" ObjectTypeIconsName=\"folder\"
    > TemplatePath=\"abc.aspx.aspx\" Children=\"161\" ChildsVisibleInTree=\"1\">
    >
    >
    > Any clues?
    >
    > Rgrds
    >
    > Erik
    >
    >


    How did you see that string after transfer? In the debug window? In that
    case
    there is no problem, this window just *displays* the string in "escaped"
    format.
    Try getting the stringlength before and after transfer and see if indeed
    lots of
    characters have been added.

    Hans Kesting
     
    Hans Kesting, Jan 27, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. batista
    Replies:
    1
    Views:
    940
    Laurent Bugnion
    Jan 26, 2006
  2. batista
    Replies:
    0
    Views:
    576
    batista
    Jan 26, 2006
  3. Mr. x
    Replies:
    2
    Views:
    731
    Andrew
    Oct 10, 2003
  4. Cyril
    Replies:
    2
    Views:
    4,524
    Cyril
    Jun 1, 2006
  5. batista
    Replies:
    0
    Views:
    264
    batista
    Jan 26, 2006
Loading...

Share This Page