Webservice returns XML_Parser: not well-formed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Simon Niederberger

    Webservice returns XML_Parser: not well-formed

    Hi

    I have a PHP webservice using PEAR::SOAP. When my C# .NET client sends a
    request, the server responds with

    XML_Parser: not well-formed (invalid token) at XML input line 2

    Funny enough, if I call the local development copy of that webservice,
    everything works fine. On production, I get that error.

    Development:
    Windows XP Pro SP2, English, running Apache 1.3.33 + PHP 4.4.1

    Production:
    Linux h3 2.6.14.3, running Apache 2.0.52 + PHP 4.3.9

    Does anyone know of any differences in the two systems which might account
    for the problem?

    Thanks
    Simon


  • Simon Niederberger

    #2
    Re: Webservice returns XML_Parser: not well-formed

    It turns out that the error was not SOAP-related at all. The request
    contained an XML document which was further processed and subsequently
    resulted in an error.
    Found this by adding some debug log statements.

    Cheers
    Simon


    "Simon Niederberger" <simon@sincore. ch> wrote in message
    news:4446a55d$1 @news201.datazu g.ch...[color=blue]
    > Hi
    >
    > I have a PHP webservice using PEAR::SOAP. When my C# .NET client sends a
    > request, the server responds with
    >
    > XML_Parser: not well-formed (invalid token) at XML input line 2
    >
    > Funny enough, if I call the local development copy of that webservice,
    > everything works fine. On production, I get that error.
    >
    > Development:
    > Windows XP Pro SP2, English, running Apache 1.3.33 + PHP 4.4.1
    >
    > Production:
    > Linux h3 2.6.14.3, running Apache 2.0.52 + PHP 4.3.9
    >
    > Does anyone know of any differences in the two systems which might account
    > for the problem?
    >
    > Thanks
    > Simon
    >[/color]


    Comment

    Working...