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. Advertisements

  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. Advertisements

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:
    1,140
    Laurent Bugnion
    Jan 26, 2006
  2. batista
    Replies:
    0
    Views:
    730
    batista
    Jan 26, 2006
  3. Mr. x
    Replies:
    2
    Views:
    874
    Andrew
    Oct 10, 2003
  4. Cyril
    Replies:
    2
    Views:
    4,812
    Cyril
    Jun 1, 2006
  5. Mr. x

    use another webservice in a webservice

    Mr. x, Sep 26, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    260
    Mr. x
    Sep 26, 2003
  6. Peter Nordström

    Webservice calling a webservice.....Error

    Peter Nordström, Oct 21, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    300
    Peter Nordström
    Oct 21, 2003
  7. Dotnet developer

    How to communicates with another webservice with another webservice

    Dotnet developer, Apr 9, 2004, in forum: ASP .Net Web Services
    Replies:
    3
    Views:
    289
    Jan Tielens
    Apr 13, 2004
  8. batista
    Replies:
    0
    Views:
    384
    batista
    Jan 26, 2006
Loading...