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

[email protected] ("Christian Gilman") Tue, 4 May 2010 13:51:56 +0200
Newsgroups php.soap
Message-ID <003c01caeb80$3367c3a0$9a374ae0$@com>
Thanks for your help.

You can test some functions with: user => Christian , password => Christian

I created the wsdl file manually but it validates. I also tried the eclipse tool to add an operation to the wsdl file but it creates the same file as i did.

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

On 4 May 2010 12:26, Christian Gilman <[email protected]> wrote:
> No, i included no <documentation> tags. You can load the file under: 
> http://www.sonrye.de/WebService/SonryeWebService.php?wsdl

I've just generated my client side classes for this WSDL with no problem.

The file was generated using the wsdl2php code from SourceForge (with a few minor mods).

If you can provide a username/password, I can test it further, but the WSDL file read fine.


Interestingly, I use Google Chrome with the XML Tree extension which displays XML like IE does.

The wsdl file you've supplied doesn't have an XML header.

Maybe that is your problem?

Add the next line to the output - maybe.

<?xml version="1.0" encoding="utf-8"?>


How are you generating the WSDL file? Manually?

There are many tools out there to construct one automatically. I use (and have a few patches for) the Zend Framework's Zend_Soap_AutoDiscover, which uses DocBlocks from the server class(es) to construct the WSDL file. Very easy and useful.

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