viewing published webservices /ws-doc/ on server

2
When trying to access the wsdl or just the .../ws-doc/ link i get the following xml <?xml version="1.0" encoding="utf-8" ?> - <soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> - <soap:Body> - <soap:Fault> <faultcode>Server</faultcode> <faultstring>com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0]</faultstring> </soap:Fault> </soap:Body> </soap:Envelope> It works fine on a different production server, what could be the cause? Gzip again?
asked
2 answers
3

Are you sure you're using the correct URL? I can produce this same fault by using an URL like http://localhost:8080/ws/ws-doc/; the correct URL should look like this: http://localhost:8080/ws-doc/.

answered
2

Your are using the wrong URL, or the webserver is redirecting something wrong, this message is the default response when you navigate to a webservice operation, without providing any data. The soap envelope tells that the request reached the server on a webservice endpoint, not the generated documentation (which is just HTML).

answered