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

[email protected] ("Christian Gilman") Tue, 4 May 2010 13:26:42 +0200
Newsgroups php.soap
Message-ID <003601caeb7c$ad122500$07366f00$@com>
No, i included no <documentation> tags. You can load the file under: http://www.sonrye.de/WebService/SonryeWebService.php?wsdl

-----Ursprüngliche Nachricht-----
Von: Richard Quadling [mailto:[email protected]] 
Gesendet: Dienstag, 4. Mai 2010 13:25
An: Christian Gilman
Cc: [email protected]
Betreff: Re: [SOAP] WSDL: SOAP-ERROR: Parsing WSDL => End of document

On 4 May 2010 11:28, Christian Gilman <[email protected]> wrote:
> There are no errors. The output is as is should be.
>
> -----Ursprüngliche Nachricht-----
> Von: Richard Quadling [mailto:[email protected]]
> Gesendet: Dienstag, 4. Mai 2010 12:09
> An: Christian Gilman
> Cc: [email protected]
> Betreff: Re: [SOAP] WSDL: SOAP-ERROR: Parsing WSDL => End of document
>
> On 3 May 2010 21:18, Christian Gilman <[email protected]> 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
>>
>>
>>
>>
>
>
> Put the wsdl URL ( http://localhost/SonryeWebService.php?WSDL ) into
> your browser and do a view source to see the results. What is shown?
> Is the server generating errors in the output?
>
>
> --
> -----
> Richard Quadling
> "Standing on the shoulders of some very clever giants!"
> EE : http://www.experts-exchange.com/M_248814.html
> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
> ZOPA : http://uk.zopa.com/member/RQuadling
>
>

Are you able to post it?

Do you include <documentation> tags? Do they have any unencoded
characters interfering with the xml?



-- 
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling