AW: WSDL: SOAP-ERROR: Parsing WSDL => End of document

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I disabled soap caching and also cleared the tmp folder, but the error still
occurs. A reason against the cache is also that i can replace a method in
the wsdl file and the change works, but if i add a operation, the error
occurs.

 

Even if I only add some new messages to the wsdl file without adding a new
operation, only to make the file bigger, the error occurs. 

 

Thats very strange. Maybe this information helps to find a solution.

 

It seems that the SoapClient class don't parse the whole file and so there
are parsing errors.

 

Thank you.

 

Von: George Secrieru [mailto:george.secrieru@gmail.com] 
Gesendet: Montag, 3. Mai 2010 22:29
An: Ivan Rodriguez
Cc: Christian Gilman; soap@lists.php.net
Betreff: Re:  WSDL: SOAP-ERROR: Parsing WSDL => End of document

 

I had this problem in a particular test. PHP caches your WSDL file. So if
you added any new operation, you have to clean that cache first.

Take a look at http://br2.php.net/manual/en/soap.configuration.php

Regards,
George

On Mon, May 3, 2010 at 5:23 PM, Ivan Rodriguez <epplestun@gmail.com> wrote:

Try to clean temporary files, if you are developing under Linux the files
are in /tmp directory ...

On Mon, May 3, 2010 at 10:18 PM, Christian Gilman
<gille08@googlemail.com>wrote:


> Hello together,
>
>
>
> i am using SOAP PHP to create a web service. Untill I added a new
operation
> to the wsdl file, it worked very well. Today, i added a new operation to
> the
> wsdl file, like I did it all the time, but then the the following error
> occured:
>
>
>
> "WSDL: SOAP-ERROR: Parsing WSDL: Couldn't load from
> 'http://localhost/SonryeWebService.php?WSDL' : Extra content at the end of
> the document ( )"
>
>
>
> After some testing, it seems that the parser didn't read the whole file.
If
> I refresh the site, the error changes:
>
>
>
> "WSDL: SOAP-ERROR: Parsing WSDL: Couldn't load from
> 'http://localhost/SonryeWebService.php?WSDL' : Couldn't find end of Start
> Tag body line 229 ( )"
>
>
>
> And so on, the errors are switching unconstantly.
>
>
>
> I used: libxml_get_last_error() to get more information but with the first
> error the method returns:
>
>
>
> "object(LibXMLError)#1 (6) { ["level"]=>  int(3) ["code"]=>  int(5)
> ["column"]=>  int(1) ["message"]=>  string(41) "Extra content at the end
of
> the document " ["file"]=>  string(42)
> "http://localhost/SonryeWebService.php?WSDL"; ["line"]=>  int(280) }"
>
>
>
> And with the second error:
>
>
>
> "object(LibXMLError)#1 (6) { ["level"]=>  int(3) ["code"]=>  int(73)
> ["column"]=>  int(55) ["message"]=>  string(45) "Couldn't find end of
Start
> Tag body line 229 " ["file"]=>  string(42)
> "http://localhost/SonryeWebService.php?WSDL"; ["line"]=>  int(230) }"
>
>
>
> The WSDL file is correct. I have no idea anymore. What could explain this
> behaviour. The PHP Version is 5.3.1.
>
>
>
> Thanks for help
>
>
>
>




-- 
George Secrieru
51 - 9725 39 29


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux